You are here

RunAsAdmin - elevated rights

3 posts / 0 new
Last post
englishman
Offline
Last seen: 11 years 3 months ago
Joined: 2010-02-03 11:10
RunAsAdmin - elevated rights

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

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 22 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Sure, But Same

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!

englishman
Offline
Last seen: 11 years 3 months ago
Joined: 2010-02-03 11:10
Thanks John

As far as I can tell, running under elevated rights means the HKCU entries will be those of the Admin user.

Log in or register to post comments