I've got an MSI for an application that automatically installs for every user in the computer. I want it to install the application for just the current user. Is there any way to force this upon running the MSI?
msiexec /ju command line switch? Msiexec (command-line options)
Note, this performs a kind of 'lazy' installation, nothing is installed immediately. Instead it adds a shortcut to the users desktop, when this is run the application then installs for the current user only.
For this you can try setting the property "ALLUSERS" http://msdn.microsoft.com/en-us/library/aa367559(VS.85).aspx
If you are installing the package on Win7 this article could also be useful: http://blogs.msdn.com/b/windows_installer_team/archive/2009/09/02/authoring-a-single-package-for-per-user-or-per-machine-installation-context-in-windows-7.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With