Microsoft Windows Installer (Windows 7/2008).
Administrative Installation Point (AIP). An AIP is not a file, but a special directory. It is created by extracting the contents of a self-contained MSI-file into a. Msiexec /i 'c:.msi' ALLUSERS=1 If you are presented with a dialog asking you whether to install for all users or for just this user, select 'All Users'. These are Microsoft's recommendations for installation on UAC-enabled systems.
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:
HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall
HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall
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 'Paint.net v3%'
PS C:> gwmi Win32_Product -Filter 'Name LIKE 'Paint.net v3%'
(n.b. Win32_Product should be used sparingly as it will reconfigure installed programmes, 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 a SYSVOL will create Active Directory directory service synchronization problems.
Examples:
Install:
msiexec /i 'C:Installss64app.msi'
UnInstall:
msiexec /uninstall '{5AFF6499-63BA-4A36-83B2-8D256404AC3D}' /log 'C:installss64app.txt'
msiexec /i 'C:Installss64app.msi'
UnInstall:
msiexec /uninstall '{5AFF6499-63BA-4A36-83B2-8D256404AC3D}' /log 'C:installss64app.txt'
or remotely with psexec
psexec $workstation -s msiexec /uninstall '{5AFF6499-63BA-4A36-83B2-8D256404AC3D}' /log 'C:installss64app.txt'
psexec $workstation -s msiexec /uninstall '{5AFF6499-63BA-4A36-83B2-8D256404AC3D}' /log 'C:installss64app.txt'
Extracting files from an MSI
msiexec /a MSIFile /qb TARGETDIR=DestinationDirectory
Extract the files from adminpak.msi:
msiexec /a adminpak.msi /qb TARGETDIR=C:reskitadminpak
“People don’t resist change. They resist being changed!” - Peter Senge.
Related:
CHANGE - Terminal Server session install mode.
REGSVR32 - Register or unregister a DLL.
RunDll32 - Uninstall DLL's e.g. MS Java.
docs.microsoft.com - Released Versions of Windows Installer.
Q310747 - System File Checker (Sfc.exe)
Equivalent bash command (Linux): RPM - Rpm Package Manager.
Related:
CHANGE - Terminal Server session install mode.
REGSVR32 - Register or unregister a DLL.
RunDll32 - Uninstall DLL's e.g. MS Java.
docs.microsoft.com - Released Versions of Windows Installer.
Q310747 - System File Checker (Sfc.exe)
Equivalent bash command (Linux): RPM - Rpm Package Manager.
![Create Msi Administrative Install Create Msi Administrative Install](/uploads/1/2/5/8/125860962/225988576.jpg)
Copyright © SS64.com 1999-2020
Some rights reserved
Some rights reserved