MSIEXEC – Windows CMD Command

Microsoft Windows Installer (Windows 7/2008).

Windows installer (and msiexec) have been updated with each major release of Windows (from 2000 to XP to 2008 R2) Windows Installer redistributables are available at the Microsoft Download Center.

Registry Keys:

Product codes – the ProductCode for each application is a GUID that can be retrieved with a WMI query in VBScript or PowerShell, Get-WmiObject Win32_Product will return the IdentifyingNumber which is the Product code:
PS C:\> gwmi Win32_Product -Filter “Name LIKE ‘ v3%'”

(n.b. Win32_Product should be used sparingly as it will reconfigure installed programs, see Q974524)

Do not use the domain controller SYSVOL folder as a Windows Installer installation point, doing so can result in the following error when you attempt to run the Windows Installer (.msi) package:

This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.

This is because the SYSVOL folder is created with the SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS attribute, which prevents it from being exclusively locked by Windows Installer. Having locked files on an SYSVOL will create Active Directory directory service synchronization problems.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *