Does anyone know, if you are logged in with a limited account, and then run a PortableApp with elevated rights....
1. Will the HKCU RegistryKeys entries in the launcher.ini file refer to those for the Admin user or the limited account? If they refer to the Admin user, is there a way of coding for the limited users HKCU entries under elevated rights? I need to store some current desktop settings for the current user whilst the portableapp is running and revert them when the program exists. But I also need to capture some HKLM entries too.
2. Will environment variables such as APPDATA and LOCALAPPDATA in the ini file point to the admin users directories, or still be fixed to those for the limited account? (My guess is that they will point to the admin directories, as that seems to be what happen with a DOS window opened under elevated rights. Would appreciate confirmation though).
Thanks
I'm not sure which HKCU and APPDATA will be used offhand. The best bet is to just try it. I do know that the HKCU used will be the same for both the launcher and the app itself, which is why no one has bothered to worry about it before.
Sometimes, the impossible can become possible, if you're awesome!
As far as I can tell, running under elevated rights means the HKCU entries will be those of the Admin user.