Archive: How to run app for every one?


How to run app for every one?
I have successfully created EXE file.The problem is my app is run only for admin user.
In my script i have specified user level is admin.

RequestExecutionLevel is admin

I have tried to change into the userlevel specified as follows

RequestExecutionLevel is user

But this is not working fine.If i run normal user i cant run install successfully.

How to run my app for all users?


This is how UAC works. For all users, install into $programfiles, HKLM and use setshellvarcontext all with requestexecutionlevel admin...


Thanks Anders.
I have tried but not working well.

Function .onInit
setshallvarcontext all
Function End
Also i have specified requestedExectionlevel is admin.

can you share me what am i missed?


It is not clear what is "not working well". What exactly do you want to achieve?


Thanks MSG.
Did you read my question?
I want to run my Exe for all users.Currently it was run only admin users.
This is how UAC works. For all users, install into $programfiles, HKLM and use setshellvarcontext all with requestexecutionlevel admin...
Based on Anders suggestion I have tried following code changes in my script.

Function .onInit
setshallvarcontext all
FunctionEnd
requestexecutionlevel admin

but its not working for normal users.Again admin users only able to run the app.

How to run my app for all users?


Yes, I read all of it. My question is: What exactly do you mean with "run your exe for all users"? I can interpret that in at least four different ways.

Do you mean you want Windows to run your exe each time any user logs on? Or maybe once, next time the users log on?

Or do you mean your exe needs specific access rights (such as writing access), regardless of which user runs the app? Or do you simply want to install your app for each user so it shows up in each user's start menu folder?


Thanks Msg.
I think your fourth point is correct.
do you simply want to install your app for each user so it shows up in each user's start menu folder?

Currently my exe run only for, who are all have admin privilege those users only can able to do.
If the normal users[Non-admin users] run asking permission for admin privilege.
I want to remove this restriction.
Simply, who all are login into the system those users want to run my app.


You need to install to alluser shellvar context, and stop your application from trying to write to admin-only locations.

1. In the installer, use requestexecutionlevel admin.
2. In the installer, use setshellvarcontext all.
3. In your application, request executionlevel user.
4. In your application, write all user settings and user data to application data or alluser application data.