LostKaleb
LostKaleb

Reputation: 417

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?

Upvotes: 7

Views: 9987

Answers (2)

Roman Ryltsov
Roman Ryltsov

Reputation: 69687

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.

Upvotes: 3

Bogdan Mitrache
Bogdan Mitrache

Reputation: 11013

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

Upvotes: 2

Related Questions