Suppose the portable app named "Appname" stores its settings in a registry key HKLM\Software\AppName. Furthermore I will run this app within an user account without admin rights. Let me now distinguish the following 2 cases:
- Case 1: App requires admin rights
- Case 2: App requests (but not requires) admin rights
In this case the app will run and probably write nothing in the registry. But I can again insert the following code in the file AppNamePortable.ini:
[Launch] RunAsAdmin=try
Now the user will be warned that some features of the portable application will not work. The users can now decide, if he wish to run the app with admin rights, so that he can use all features of the app.
I think, that in this case the portable app will quit. The only possibility is, that I insert the following code in the file AppNamePortable.ini:
[Launch] RunAsAdmin=force
This code causes the user to be prompted to run the program as an administrator (or a UAC prompt on Windows Vista or Windows 7 when UAC is turned on).
Did you wanted to ask something?
Previously known as kAlug.
In my explanation regarding case 2 I expressed the assumption, that after the start of the program probably will nothing be written into the registry, because the appropriate registry key is not necessarily required for the start of the app. Is this statement correct so far?
It will try, and will fail.
Previously known as kAlug.
Do you know a portable app, so that I can check it?