Difference between revisions of "Skype"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Replaced the MSI section with a version 3.8 sample that includes syntax for an installation without desktop icons, plug-ins, and other distractions.)
(Adding a large description of the installer command parameters)
Line 50: Line 50:
 
</source>
 
</source>
  
 +
 +
The following information was found in [http://forum.skype.com/lofiversion/index.php/t80745.html Skype forum]. Post by andreskaasik at Tue May 15 2007, 13:00. Remember it only works on MSI.
 +
<source lang="text">
 +
Installation directory
 +
* The property INSTALLDIR determines the root directory of the Skype installation.
 +
msiexec /i SkypeSetup.msi INSTALLDIR=c:\temp\skype
 +
 +
Installation for All Users
 +
* Adding ALLUSERS=1 causes an installation for all users. By default, the non-interactive installation install the package just for the current user.
 +
msiexec /i SkypeSetup.msi ALLUSERS=1
 +
 +
Feature Selection
 +
* A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the Skype installer is
 +
+ Phone - the Skype executable with preloaded graphics and contacts.
 +
+ IEPlugin - the Internet Explorer plugin
 +
+ FFPlugin - the Mozilla Firefox plugin
 +
 +
Administrative installation
 +
* Use the following command to initiate an "administrative" (network) installation:
 +
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp\skype
 +
 +
The files get unpacked into the target directory (which should be a network directory), but no other modification is made to the local system. In addition, another (smaller) msi file is generated in the target directory, which clients can then use to perform a local installation. Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line. There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore. Yo can use the "feature properties" and install level to control what features preselected and available for installation.
 +
1. Installs only Skype, plugin features are hidden from end user.
 +
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp FEATURE_IEPLUGIN=0 FEATURE_FFPLUGIN=0 INSTALLLEVEL=1
 +
2. Installs only Skype, plugin features are visible to end user.
 +
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp INSTALLLEVEL=1
 +
3. Installs Skype, IE and FF plugins.
 +
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp INSTALLLEVEL=10
 +
 +
Customization transforms
 +
 +
To install without desktop shortcut
 +
Use the RemoveDesktopShortcut.mst transformation to remove Desktop icon.
 +
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveDesktopShortcut.mst
 +
 +
To install without any shortcuts
 +
Use the RemoveAllShortcuts.mst transformation to remove all shortcuts in "Start" and "Send To" menus and the Desktop icon.
 +
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveAllShortcuts.mst
 +
 +
To disable starting Skype automatically at logon
 +
Use the RemoveStartup.mst transformation to disable Skype starting automatically after user has logged in.
 +
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveStartup.mst
 +
 +
Launching Skype after installation
 +
* The property STARTSKYPE can be used to control the Skype launch at the end of installation (full user interface only). For example, the following command disables Skype launch after installation ends.
 +
msiexec /i SkypeSetup.msi STARTSKYPE=FALSE /qf
 +
 +
Removing previous Skype installations
 +
* The Skype MSI package is designed to remove old Skype (Inno) setups on install. The SKYPEREMOVAL=[DEFAULT|INNO|SCRIPT] property was introduced to control how this removal works.
 +
By default the version of installed Skype package determines the removal method: if version < 2.6 then custom uninstall script is run else the Inno uninstall action is executed. For example, the following command forces Skype to use custom JScript to remove previous installation.
 +
msiexec /i SkypeSetup.msi SKYPEREMOVAL=SCRIPT /qf
 +
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 17:26, 21 January 2009

This is a silent installer for the Skype. Download it from www.skype.com.

<?xml version="1.0" encoding="UTF-8"?>
<packages>
 <package
        id="skype"
        name="Skype"
        revision="1"
        reboot="false"
        priority="10">
        <check type="file" condition="exists" path="%PROGRAMFILES%\Skype\Phone\unins000.exe" />
        <install cmd='%SOFTWARE%\SkypeSetup.exe /norestart /silent /sp-' />
        <upgrade cmd='%SOFTWARE%\SkypeSetup.exe /norestart /silent /sp-' />
        <remove cmd='%PROGRAMFILES%\Skype\Phone\unins000.exe /SILENT' />
 </package>
</packages>


If you prefer to work with MSI files, download the Skype for Business version at http://c.skype.com/download/skype/windows/business/. The following package should work for Skype 3.8. Note that I added extra parameters to the installation string to eliminate the installation of everything except the Skype application and Start/Send To shortcuts.

<?xml version="1.0" encoding="UTF-8"?>

<packages>

	<package
		id="skype"
		name="Skype"
		revision="380"
		reboot="false"
		priority="0">

		<!-- Skype uses the special TM character in its Add/Remove Programs DisplayName, and WPKG does not like that, so I am doing a version check on Skype.exe. -->
		<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Skype\Phone\Skype.exe" value="3.8" />
	
		<install cmd='msiexec.exe /i "%SOFTWARE%\SkypeSetup.msi" INSTALLLEVEL=1 ALLUSERS=1 TRANSFORMS=:RemoveDesktopShortcut.mst;:RemoveStartup.mst /qn' />

		<upgrade cmd='msiexec.exe /i "%SOFTWARE%\SkypeSetup.msi" INSTALLLEVEL=1 ALLUSERS=1 TRANSFORMS=:RemoveDesktopShortcut.mst;:RemoveStartup.mst /qn' />

		<remove cmd='"%PROGRAMFILES%\Skype\Phone\Skype.exe" /shutdown' />
		<remove cmd='msiexec.exe /x{375943E2-B268-4AD7-B7A4-0FD90E9C2AC7} /qn /norestart' />

	</package>

</packages>


The following information was found in Skype forum. Post by andreskaasik at Tue May 15 2007, 13:00. Remember it only works on MSI.

Installation directory
* The property INSTALLDIR determines the root directory of the Skype installation.
msiexec /i SkypeSetup.msi INSTALLDIR=c:\temp\skype

Installation for All Users
* Adding ALLUSERS=1 causes an installation for all users. By default, the non-interactive installation install the package just for the current user.
msiexec /i SkypeSetup.msi ALLUSERS=1

Feature Selection
* A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the Skype installer is
+ Phone - the Skype executable with preloaded graphics and contacts.
+ IEPlugin - the Internet Explorer plugin
+ FFPlugin - the Mozilla Firefox plugin

Administrative installation
* Use the following command to initiate an "administrative" (network) installation:
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp\skype

The files get unpacked into the target directory (which should be a network directory), but no other modification is made to the local system. In addition, another (smaller) msi file is generated in the target directory, which clients can then use to perform a local installation. Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line. There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore. Yo can use the "feature properties" and install level to control what features preselected and available for installation.
1. Installs only Skype, plugin features are hidden from end user.
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp FEATURE_IEPLUGIN=0 FEATURE_FFPLUGIN=0 INSTALLLEVEL=1
2. Installs only Skype, plugin features are visible to end user.
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp INSTALLLEVEL=1
3. Installs Skype, IE and FF plugins.
msiexec /a SkypeSetup.msi TARGETDIR=c:\temp INSTALLLEVEL=10

Customization transforms

To install without desktop shortcut
Use the RemoveDesktopShortcut.mst transformation to remove Desktop icon.
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveDesktopShortcut.mst

To install without any shortcuts
Use the RemoveAllShortcuts.mst transformation to remove all shortcuts in "Start" and "Send To" menus and the Desktop icon.
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveAllShortcuts.mst

To disable starting Skype automatically at logon
Use the RemoveStartup.mst transformation to disable Skype starting automatically after user has logged in.
msiexec /i SkypeSetup.msi TRANSFORMS=:RemoveStartup.mst

Launching Skype after installation
* The property STARTSKYPE can be used to control the Skype launch at the end of installation (full user interface only). For example, the following command disables Skype launch after installation ends.
msiexec /i SkypeSetup.msi STARTSKYPE=FALSE /qf

Removing previous Skype installations
* The Skype MSI package is designed to remove old Skype (Inno) setups on install. The SKYPEREMOVAL=[DEFAULT|INNO|SCRIPT] property was introduced to control how this removal works.
By default the version of installed Skype package determines the removal method: if version < 2.6 then custom uninstall script is run else the Inno uninstall action is executed. For example, the following command forces Skype to use custom JScript to remove previous installation.
msiexec /i SkypeSetup.msi SKYPEREMOVAL=SCRIPT /qf