开发者

Inno Setup install for another user

开发者 https://www.devze.com 2022-12-28 10:32 出处:网络
When a user has restricted rights on his/her computer and runs my Inno Setup installer, Windows pop-up an administrator login prompt.

When a user has restricted rights on his/her computer and runs my Inno Setup installer, Windows pop-up an administrator login prompt.

The problem is that when the administrator types in his/her username and password and logs-in, Inno Setup thinks that he or she is the logged in user and installs my app for that user instead of the original one. (I'm installing files in the {userappdata} dir)

Is there a way to overcome this limitation and i开发者_JAVA技巧nstall for the original restricted user?


Specify PrivilegesRequired=none and construct your script to work with or without admin rights. See here for more details:
https://kinook.com/blog/inno-setup.html


A thing you can consider is to install all stuff into PF first. Then when the application executes for the first time, copy something from PF to {userappdata}.

As the user can execute the app, we are sure the necessary files can be copied from PF to {userappdata} successfully.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号