Custom MSI installer parameters
What
FileWave can add custom parameters to MSI Filesets. This applies to Filesets created from MSI files, but not to Filesets that FileWave creates automatically from Windows software updates.
When/Why
Some MSI installers accept custom parameters that will change the way software is installed. For example, many MSI installers allow the software installation path to be defined via an additional option at runtime. Two such examples are:
| Application | Instal Path |
| UltraEdit | TARGETDIR="<my-desired.path>" |
| 7Zip |
INSTALLDIR="<my-desired.path>" |
You usually do not need to add a silent-install option here. FileWave already runs MSI installs silently.
How
Start with a Fileset created from the vendor’s MSI installer. If you have not created it yet, follow the MSI creation steps in Create and Update PKG and MSI Filesets. Then use either FileWave Central or FileWave Anywhere below. Check the vendor’s documentation for the properties accepted by that exact installer; the examples above are not interchangeable between packages.
FileWave Central
In Filesets, open the MSI Fileset and select Properties. Enter the required options in the appropriate field:
- "Custom MSI install options"
- "Custom MSI uninstall options"
FileWave Anywhere
In Filesets, open the MSI Fileset and select Fileset Settings. Older Anywhere versions label these areas Payloads and Payload Settings. Enter the required options in the appropriate field:
- "Custom MSI install options"
- "Custom MSI uninstall options"
These Central and Anywhere screenshots show where to enter options, not a recommended Firefox configuration. Although the example Fileset is named Firefox, the TARGETDIR value shown is the UltraEdit installation-path example above. Use only properties supported by your installer. The uninstall field shows REBOOT=Force; do not copy this forced-reboot example unless that behavior is intended and has been tested on a pilot device.
Multiple Options
Multiple options may be specified at the same time and should be separated by spaces. Keep a value that contains spaces inside double quotation marks, as in the installation-path examples above.
For example, to install TeamViewer Host with multiple properties, use a format like this: SETTINGSFILE="YOURPATH\yourfilename.tvopt" APITOKEN=xxxxxx CUSTOMCONFIGID=xxxxxx
FileWave Predefined Options
To ensure maximum compatibility of MSI installers through FileWave and to maintain maximum control over installation experience for users, MSI Filesets will ignore certain property keys, even if supplied. For example, REBOOT=, ALLUSERS=, TRANSFORMS=.
Considering these examples:
- Reboot is controlled by the Fileset Properties
- A Transform MST file must be placed in the same location as the MSI, with the same name as the MSI.
- ALLUSERS is set as 2.
Although, as suggested, an MST file could be supplied with the MSI containing differing options, it is not possible to override the ALLUSERS or REBOOT property values set by FileWave.
Reboot is not used by FileWave when an uninstall occurs. As such, the 'REBOOT=' property may be set in the 'Custom MSI uninstall Options'.
MSI Filesets will ignore all options that commence with a forward slash (including supplied values) or that do not include an equals symbol. The below workaround could be used if necessary.
Workaround
ALLUSERS, REBOOT or other items ignored by an MSI Fileset could be used otherwise, if absolutely desired. An empty Fileset could be created, the MSI added as a file and an Activation Script could trigger the installation; with any properties set as desired, for MSI installers where this is found to be required.
Parameters as Options
This feature is currently not working as expected, but is targeted to be fixed in an up coming release.
It should be possible to add parameters as values for options, for example Custom Fields or other standard inventory.
APITOKEN=%teamviewer_api_token%
Note, the parameter may only be the value of the property, not the property name itself.
Information
Option definitions:
| Custom MSI install options | Options passed to the MSI during Fileset activation. |
| Custom MSI uninstall options |
Options passed to the MSI when removal of the Fileset runs the MSI uninstaller. Entering uninstall options does not itself enable removal. Requires 'Use MSI Uninstaller' to be enabled and that the MSI uninstaller supports this option. (Firefox is an example of an MSI that does not support this feature) |
MSI removal settings in FileWave 17.0
These are native MSI Fileset properties, not the Executable tab launch arguments used for a staged EXE. Review both the MSI uninstaller option and the installer file's verification setting before deployment.
On a 17.0 Client, an MSI installer file set to Ignore At Verify (Left Behind) does not run its uninstaller when the Fileset is removed, even when the uninstaller option is checked. To run the uninstaller on removal, set the installer file to Self Healing and enable Use MSI uninstaller. In Central, review the file-level setting in the installer file's Get Info; use Central for this review if you are working in Anywhere.
New MSI Filesets imported in Central 17.0 default to Self Healing with the uninstaller enabled. Existing Filesets keep their settings; upgrading does not convert them. A Fileset created in 16.4 may therefore retain Left Behind. The changed removal behavior depends on the Client being 17.0, not just the console version. For 16.4 Clients, retain the existing uninstaller configuration and confirm the vendor's supported removal behavior.
The installer file's Self Healing setting does not repair application files installed by the MSI or guarantee automatic reinstallation after the application is removed.
Save and test the options
Save the Fileset settings (OK in the Central dialog), assign it to a representative Windows pilot using a Deployment, and run Update Model after reviewing the shared pending changes. After activation, check both the Fileset status and the actual result on the device, such as the installed path. For ordinary deployment, completion means that the intended application is installed and works; retain its Deployment while it should remain managed. If you need to validate uninstall options, use a separate approved removal test, protect required data, review dependencies and other assignments that still require the Fileset, and check the saved removal settings above first. Verify the actual removal result and vendor logs; a successful installation does not prove that the package accepts the same options during removal.
Related Content
- 7zip (Windows MSI) - Using a custom parameter to install 7zip on Windows


No comments to display
No comments to display