Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to force a "random" MSI to do a single user install?

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?

like image 606
LostKaleb Avatar asked Oct 04 '11 14:10

LostKaleb


2 Answers

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.

like image 165
Roman R. Avatar answered Oct 17 '22 13:10

Roman R.


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

like image 21
Bogdan Mitrache Avatar answered Oct 17 '22 13:10

Bogdan Mitrache