Archive: admin user is wrong user


admin user is wrong user
When I run my installer on Vista it asks for an Admin account in order to install (which make sense).

At the end of the install I execute:

nsExec::Exec $INSTDIR\myapp.exe

However myapp.exe is now running under this Admin user so its creates its application files in the wrong place.

In other words, I am running as user1 and when I install I use admin1 credentials (a dialog request an admin user's credentials)... so now when myapp.exe is run, it creates its temp files under:

c:/users/admin1/appdata/roaming

and not

c:/users/user1/appdata/roaming

How can I get the nsExec::Exec to operate as user1 ?


Try playing with SetShellVarContext current|all


Originally posted by T.Slappy
Try playing with SetShellVarContext current|all
That will not help.


You need to use the UAC plugin or just have the user run the command on their own...

If you coded App2 have App1 pass the path info to App2 so it will write in user1's folders and not admin1's.