I need to write an ini file to the current user directory in Windows 7 (C: \ Users \ CurUser). CurUser is not an administrator. My installer requires administrator rights. Therefore, my setup looks like this:
[Setup]
PrivilegesRequired=admin
When I run the installer, it asks the administrator for login. From now on, all user constants, userappdata, etc. is C: \ Users \ AdminUser ... So I need to find CurUser when starting the installation as AdminUser.
Code examples are welcome. Thank.
source
share