When we install new software we usually are given the options to either install it to “Everyone” or “Just Me”. Under normal conditions this is not an issue but suppose that we only want to install the software to either the person (“Just Me”) who installs it or to everyone who will be using the computer?
In the first case, i.e. “Just Me”, it’s rather easy to solve it when using the Windows Installer. What we need to do is to set the property InstallAllUsers to False in the User Interface Editor
To change this setting we first select the Setup’s root node in the Solution Explorer, right click on it and from the menu select the command View > User Interface. In the editor’s window right click on the Installation Folder under the root node Install. Right click on it and from the menu select Properties Window. The following screen shot shows that the property’s value is now set to False:
Save and rebuild the Setup project. When running the Windows Installer the output of the above actions is that the software will only be installed to the person who installs it, i.e. “Just Me”. The following screen shot shows how it looks when we have removed the “Everyone” option. In other words no visual options are available:
Of course, we need also tp update the settings accordingly in the Registry Editor so it reflect the visual design.
In the second case, install to everyone who use the computer, it’s more difficult to hide the option “Just Me”. At least, I have not yet find an easier way. The tool that comes to our rescue again is Orca (see UAC Compliant and The Orca Tool – A MSI Creator and Package Viewer). With Orca we can view the Setup package and also change the required settings.
I will not in detail describe the process as it is already documented by MSFT in their KB article 835460 – How to use the Orca database editor to remove the “Everyone” option and the “Just me” option from a Windows Installer package that you created by using Visual Studio .NET. Yes, that’s an impressive long title!