Office Installation

Microsoft provides an uniform way of silent customizing Office products’ installations: OCT (Office Customization Tool).

In order to start it, run the setup executable of the office installation you want to start (32 or 64-bit) with /admin parameter. (setup.exe /admin)

This will start a wizard where you can configure many options, from feature selection, to the smallest details one can imagine.

Once you’re done with the configuration, save the changes. This will create an MSP file that you can use for the silent installation.

In order to install it, run the following command line:

setup.exe /adminfile <pathToMsp>

However, there’s also the possibility of using a configuration xml file for the silent installation, based on the template config.xml that can be found in the core_product_folder_name.WW folder.

Also, an XML file can be created for a silent uninstall.

 

 

OCT is available for Office (2007 or later) but other related software such as Microsoft Lync, Visio, Project, OneNote etc.

Internet Explorer Silent Installation and Uninstall

This article applies to Internet Explorer 9, Internet Explorer 10 and Internet Explorer 11.

Internet Explorer Silent Installation

Download

IE 9 can be downloaded here. SourceFile = IE9-Windows7-x64-enu.exe
I’ve downloaded the English 64bit version, for Windows 7. It’s not really relevant, the command line will be the same.

IE 10 can be downloaded here. SourceFile = IE10-Windows6.1-x64-en-us.exe
IE 11 can be downloaded here. SourceFile = IE11-Windows6.1-x64-en-us.exe

Silent Install

PathtoSourceFile\SourceFile /quiet /update-no /norestart /log:LogFolder

Attention: the log parameter refers to the folder in which a log file will be created.

With this command line, you can safely upgrade an existing installation; no extra actions are required.

Internet Explorer Silent Uninstall (Rollback)

Uninstalling is the trickier part.

Create a batch file with the following content:

FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*~XXX.?.????.?????.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart /quiet”

where XXX is “9”, “10” or “11”, depending on which version you need to remove.
This command line will remove the mum files belonging to the corresponding version of IE, from Windows\servicing\Packages.

The end result will be a rollback to the previous version of IE. If you’re uninstalling “11” and you had 9, then that’s what you’ll obtain. If you apply the same removal procedure for “9”, then you’ll rollback to 8 or whatever was present on the machine initially.

A reboot will be needed after each installation OR uninstall.

Error 40007

If, during the installation of IE, you get an error code of 40007, it means that some prerequisites (hotfixes) are missing. It can also be that they’ve just been installed, but the PC hasn’t rebooted. Reboot the machine and try the installation again.

Adobe Shockwave Player 12

In order to deploy Adobe Shockwave Player, you must first apply for a distribution license here.

Download the MSI file.

For a silent installation with no extra configuration, run the following command line:

 msiexec /i sw_lic_full_installer.msi /qb

That’s it.

 

IF you want to disable the AutoUpdates and/or CollectStatistics (or other options), you can do that easily by editing the corresponding registry values, in an MST:

SOFTWARE\Macromedia\Shockwave 10\collectstats

SOFTWARE\Adobe\Shockwave 12\collectstats

SOFTWARE\Macromedia\Shockwave 10\AutoUpdate

SOFTWARE\Adobe\Shockwave 12\AutoUpdate

SOFTWARE\Adobe\Shockwave 12\AutoUpdate

SOFTWARE\Macromedia\Shockwave 10\CollectStatistics

SOFTWARE\Macromedia\Shockwave 10\CollectStatistics

SOFTWARE\Adobe\Shockwave 12\collectstats

Set them all to n.

Other options can be found in SOFTWARE\Adobe\Shockwave 12\

 

Citrix Online Plugin 12.3 Silent Installation

 

One of our customers needed recently a package for the Citrix Online Plugin, version 12.3. We were given an exe file: CitrixOnlinePluginFull.exe (16.3 MB) made by Citrix System and a list of command line params (they’re not relevant yet).

The EXE file is an archive and contains 6 msi files and some auxiliary tools used during the installation. The installation can be done using the EXE file directly, or by installing the needed MSIs one by one.

 

I. Installation using CitrixOnlinePluginFull.exe

The EXE can be installed and uninstalled silently by using the /silent command line parameter.

A list of parameters can be found on the Citrix’s support website.

The most important are

  • /silent – used to run a silent installation
  • /noreboot – used to prevent a reboot of the machine
  • ADDLOCAL=”features” – selects the features/products to be installed
    • example: ADDLOCAL=”ICA_Client,PN_Agent,SSON,Flash,USB” – this will install the 5 features (out of 6)
  • /uninstall – obviously, used for uninstall
  • Properties can be passed to the MSIs:
    • ENABLE_SSON=yes
    • ENABLE_DYNAMIC_CLIENT_NAME=Yes
    • SERVER_LOCATION=”http://server.location.com”

Please check the full list of parameters in order to see which can be useful if you need to do a silent installation or a package for this.

Cisco claims that THIS is the recommended way to go, because of future possible updates. They might fail if you decide to extract the MSIs or choose a different way. There is, however, an issue with it: there is no repair functionality provided. That means that if something affects the integrity of the software (i.e. deleting certain files from Program Files\Citrix\ICA Client), the setup won’t be able to repair. You can try by removing all the EXEcutables from that folder. What will happen? The re-installation will fail constantly. The uninstallation as well. You’ll be stuck with a non-working citrix client and no way to fix it.

Sometimes, the EXE might fail because its location has a very long path.

That’s why we chose option #2:

 

II. Installation using the extracted MSIs

First, we need to extract everything from the EXE. Use your default compression tool and extract the files in a single folder.

According to Cisco, the MSIs have to be installed in the following order:

  •     ICAWebWrapper.msi
  •     SSONWrapper.msi
  •     GenericUSB.msi
  •     DesktopViewer.msi
  •     CitrixHDXMediaStreamForFlash-ClientInstall.msi
  •     PNAWrapper.msi

For the uninstall, the order has to be reversed (start with PNAWrapper).

You should also know that the MSIs accept extra parameters (properties).

  • ICAWebWrapper.msi – you can pass ENABLE_DYNAMIC_CLIENT_NAME=Yes to it
  • SSONWrapper.msi – it can use ENABLE_SSON=yes
  • PNAWrapper.msi – it uses SERVER_LOCATION=.. and SILENT=1. The latter is used in a custom action launch condition. Set it to 1 if you do not want the process PNAMain.exe to start.

The MSIs have to be launched from a location that has a not too long path. Copying them somewhere on C drive will do the trick. Otherwise, they might fail.

Using this option will give you install/repair/uninstall functionality and more control over the package components.