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 ?