Changes

Jump to: navigation, search

MSI: Windows Installer

1,411 bytes added, 11:11, 23 June 2016
m
Tips
Most MSI packages support using the MSI file instead of the GUID, only in rare cases one needs to use the GUID, which can be retrieved in the following ways.
 
===Using Orca===
This method does not require you to install the MSI before finding the uninstall string or GUID.
 
* You will need to install Orca on you own machine, which is a MSI inspector/editor. (There are various ways to obtain this. Perhaps best to start here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs.85).aspx)
* Open the MSI in Orca
* Select the `Property` table in the left hand column
* Note the `ProductName` and `ProductCode` values. You can right-click to copy and paste cell values.
 
[Insert screenshot]
 
The ProductName can normally be used as the check path value for an uninstall check.
The ProductCode can normally be used within the remove command for an MSI.
 
So for the above screenshot:
 
<code>
<package id="dell_wlan_hotkey" name="Network Driver GPW8G WN32 1.0.0.5 A01" revision="2016015.1" reboot="false" priority="0">
<check type="uninstall" condition="exists" path="Dell WLAN Hotkey Driver" />
<install cmd='msiexec /i "%software\delldrivers\HKDellDrSetup64.msi" /norestart /qn' >
<exit code='3010' reboot="delayed" />
<exit code='0' />
</install>
<upgrade include="install" />
<remove cmd='msiexec /x {1845470B-EB14-4ABC-835B-E36C693DC07D} /qn /norestart' >
<exit code='3010' reboot="delayed" />
<exit code='0' />
</install>
</package>
</code>
 
===Using the uninstall log===
2
edits

Navigation menu