简体   繁体   中英

Inno Setup install for another user

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 install for the original restricted user?

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.

Specify PrivilegesRequired=none and construct your script to work with or without admin rights. See here for more details:
http://www.kinook.com/blog/?p=53

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM