Archive: Help with RequestExecutionLevel


Help with RequestExecutionLevel
Hi, I was hoping someone might be able to assist with a query I have relating to the RequestExecutionLevel command...

To summarise, I have a NSIS .exe which is used to launch a Java application which accesses data in a MS Access database. Currently I have it set to RequestExecutionLevel admin, but users are complaining that they get the "Do you want to allow the following program to make changes to this computer" UAC security message every time they run the application, which I can understand will get annoying after a while. So, what I've done is set it to 'RequestExecutionLevel user', and this has worked in that it has got rid of the security message, but something weird then happens; it seem when the program is run for the first time with the 'user' right, the MS Access database is copied from the c:\program files folder to C:\users\John Doe\AppData\Local\VirtualStore\Program Files\MyApp\

I'm kinda split on whether this is good or not; it's good because it means every user that is setup on that computer will have their own settings. However, I can forsee that a problem will occur if the user buys a license and enters the key only for their user version and no one elses because the Access DB is no longer shared, when really I'd want all user's version to be regsitered. Our license key can only be used once you see.

So I guess my question is, is there a way of getting rid of the "Do you want to allow the following program to make changes to this computer" message, but not using the logged in user's VirtualStore, and instead just using the one in c:\program files\ edition of the data?

Many thanks,

BL


Originally posted by beaglelander
So I guess my question is, is there a way of getting rid of the "Do you want to allow the following program to make changes to this computer" message, but not using the logged in user's VirtualStore, and instead just using the one in c:\program files\ edition of the data?
Short answer: No. If you want to do something for all users, you must require admin access.

Long answer: You can use the accesscontrol plugin to give write access to all users, but you should not do this. Write-protected folders are protected for a reason.

hmmmm, not the answer i was hoping for. I guess I need to weigh things up.


About the registration thing, you could make your application start a new process as admin, and have that process write the registration info. This means that your app can only be registered by admins, but at least people can use the software without admin access.