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

烈酒焚心 提交于 2019-11-29 17:58:52

问题


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?


回答1:


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. )




回答2:


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.



来源:https://stackoverflow.com/questions/4157365/how-can-i-create-a-windows-installer-msi-that-does-not-require-admin-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!