Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a windows installer MSI that does not require admin access

I've created an MSI windows installer that installs a plug-in which I wrote for a piece of software used at my office. However, a number of users here don't have admin rights to their computers, and IT is getting frustrated having to install the plug-in for them.

My installer does nothing but copy a couple files, to locations that the users would otherwise have access to copy files to. Is there some way to modify my Setup project so that the resulting MSI does not require administrator rights?

like image 763
Eric Anastas Avatar asked Nov 11 '10 17:11

Eric Anastas


People also ask

How do I install an MSI file without administrator?

Right-click on it and select the “Edit with MSI Wrapper” option. MSI Wrapper will now open up and prompt you to select an output location. Just choose any location and then click on the “Build” button. MSI Wrapper will now create a new EXE file that can be installed without admin rights.

Do you need admin rights to install MSI?

No, MSI files do not require admin rights. They can be installed by any user, provided they have the necessary permissions. According to LiquidSky.com, the following is the procedure for installing Msi files without having admin privileges. Windows Installer Server can be configured in the standard msi format.


2 Answers

I don't have a setup to test this on at the moment, but assuming Wix, in the Package element, try setting InstallPrivileges='limited' and InstallScope='perUser'.

That said, if all you really need to do is copy some files, considered using a simple batch script instead.

like image 142
chezy525 Avatar answered Sep 27 '22 23:09

chezy525


There's two approaches here:

1) Create an installer that doesn't require Admin privs because it doesn't install anything that needs it. If you can really do this, you might want to consider a ClickOnce installation and see if it meets your needs.

2) Educate your IT department on how to drop your MSI onto a network share and publish it through Group Policy. This way the users can go to Add/Remove programs and initial the installation but have it run elevated without a SysAdmin having to walk from desk to desk doing it by hand. ( I'm kind of suprised they don't already know how to do that. )

like image 22
Christopher Painter Avatar answered Sep 28 '22 00:09

Christopher Painter