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.
精彩评论