You are here

Usage of a portable app within an user account without admin rights

5 posts / 0 new
Last post
tapsklaps
Offline
Last seen: 5 years 11 months ago
Developer
Joined: 2010-10-17 08:11
Usage of a portable app within an user account without admin rights

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:

  1. Case 1: App requires admin rights
  2. 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).

  3. 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.

Aluísio A. S. G.
Offline
Last seen: 8 years 2 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Correct

Did you wanted to ask something?

Previously known as kAlug.

tapsklaps
Offline
Last seen: 5 years 11 months ago
Developer
Joined: 2010-10-17 08:11
Case 2

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?

Aluísio A. S. G.
Offline
Last seen: 8 years 2 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
I see

It will try, and will fail.

Previously known as kAlug.

tapsklaps
Offline
Last seen: 5 years 11 months ago
Developer
Joined: 2010-10-17 08:11
Example of a portable app

Do you know a portable app, so that I can check it?

Log in or register to post comments