Installing Inno Setup for another user

When a user has limited rights on his computer and launches my Inno Setup installer, Windows will prompt you to log in to the administrator.

The problem is that when the administrator enters the username and password and logs in, Inno Setup considers that he or she is a registered user and installs my application for this user instead of the original one. (I install the files in the {userappdata} directory)

Is there a way to overcome this limitation and set for the original limited user?

+4
source share
2 answers

Set PrivilegesRequired = none and create your own script to work with administrator rights or without them. See here for more details:
http://www.kinook.com/blog/?p=53

+2
source

What you can consider is to first install all things in PF. Then, when the application runs for the first time, copy something from PF to {userappdata}.

As a user can run the application, we are sure that the necessary files can be copied from PF to {userappdata} successfully.

+4
source

Source: https://habr.com/ru/post/1307769/


All Articles