Assuming you have an MSI file you need to install as a non-Administrator user, open up a `cmd` window. (Press Windows Key-R and type 'cmd' in the box.)
💡 Drag and drop files and folders into the `cmd` window from the Explorer and it will insert the full path to the file or folder (thereby saving a lot of typing).
Type (and/or drag paths!):
msiexec.exe /i C:\Path\To\something.msi
INSTALLDIR=C:\Path\to\someplace\where\your\user\has\write\access\
MSIINSTALLPERUSER=1 ALLUSERS=2
Additional information:
➤ If the value of the ALLUSERS property is set to 2, the Windows Installer always resets the value of the ALLUSERS property to 1 and performs a per-machine installation or it resets the value of the ALLUSERS property to an empty string ("") and performs a per-user installation. The value ALLUSERS=2 enables the system to reset the value of ALLUSERS, and the installation context, dependent upon the user's privileges and the version of Windows.
➤ The MSIINSTALLPERUSER and the ALLUSERS
properties can be set by the user at installation time, through the
user interface or on a command line, to request that the Windows
Installer install a dual-purpose package for the current user or all
users of the computer. To use the MSIINSTALLPERUSER property, the value of the ALLUSERS
property must be 2 and the package has to have been authored to be
capable of installation into either the per-user or a per-machine
context. For information about authoring a dual-purpose package, see Single Package Authoring. If the value of the ALLUSERS property does not equal 2, the value of the MSIINSTALLPERUSER property is ignored and has no effect on the installation. The value of MSIINSTALLPERUSER property is ignored when installing the package using Windows Installer 4.5 or earlier.
No comments:
Post a Comment