We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

saschab
Posts: 2
Joined: Tue Oct 31, 2006 10:57 pm

Allow .exe files to be run by restriced users like poweruser

Dear all,

i have got an .exe application which is very usefull to me.
This app must be run in power user mode because of its own protection. (probabelly it reads/writes in registry and file directory to prevent users from piracy. It has node locking, date check atc.)
Since my colleagues (all restricted users) in domain, as well as many other (restricted) users at home would like very much to use this application, I am looking for a way to allow this application to do everything it does when started in poweruser mode when it is started by a restricted user.

I hope the Advanced Installer can make it happen since someone told me it is possible to make a MSI file (maybe combined with GPO settings) so this exe will be once "installed" by admin and then the restricted users may run it.

Does anyone know if this is possible an if so, what does an (unexperienced) admin has to set up in order to allow restricted users to be run (just this) this app effectively like a power user.

Thanks a lot to those that will understand me and help,

Sascha

BTW I am willing to pay to those who can give the solution and make me able to accomplish this on my own !!! :-) No joke.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can create a msi package with Advanced Installer that install the exe and a simple script file (script to run the program as administrator) in the application folder. Create a shortcut of that script on the desktop (switch to the "Files and Folders" page). All the restricted users run the .exe from that shortcut (actually the script is a launcher for the file).

But you need to pass the password for the "Run As" command. You can pass it from UI. Switch to "Dialogs" page and create a "New Dialog" with one edit control for password.

Here is the script file:

Code: Select all

Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""YourApplication.exe"""
WScript.Sleep 100
'Replace the string PROPERTY below with
'the password used on your system.
oShell.Sendkeys PROPERTY + "~"
Wscript.Quit
Also you need a VBS custom action to find and replace a text in the script above. Please see this for more details on how you can do this:
http://www.motobit.com/tips/detpg_replfile/

PROPERTY is the property of the edit control that represent the password.

The second script must replace the "PROPERTY" text with Session.Property("PROPERTY"). Session.Property("PROPERTY") returns the value of the PROPERTY (entered by the administrator when the package is installed).

If it's something that you don't understand please let me know.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
saschab
Posts: 2
Joined: Tue Oct 31, 2006 10:57 pm

Thank you Gheorghe for your comprehensive reply.

I must atmit that for now I cannot understand it.
Anyway I have made already a compiled/encrypted runas function, but the admnin does not want to allow any encrypted files/scripts that contain admin/poweruser username/pw.

At the moment I am considering something else.
I have found a way to allocate any application I want to be run even by restricted users. I use w2003 standalone server and this worked fine when I changed setting of Software Security Policies on my Local Computer Policy (would work probabely for User Configuration od ad domain servers, but since I am standalone server I have only the User Cofiguration/Windows Settings/Security Settings without Software Security Policies folder displayed!!!!). Here I have added my app.exe as Additonal Rule --> Unrestricted.
Described under http://support.microsoft.com/kb/324036

So localy this works fine. Restricted users are still restricted exept for this app.exe.
Now, I have to test if this works fine also in a domain.

The problem that I have now is (because AI newbie and newbi at all) is how to implement this registry values in AI, because as a consequence of my change there was also a following change in registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{0D786B1B-1AB2-4846-907D-143B1BD95C7A}Machine\Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\262144\Paths\{de6639b9-a86a-4a08-967b-97afbba6f918}

So I do not know what all these numbers here mean in any part of the path. I suppose if I would write the same values by AI, this would not work on other computers that have the same app.exe on the same place in file directory.
As i said I have no Software Security Policies folder under User Cofiguration/Windows Settings/Security Settings displayed....so I cannot allow ther a certain group to run this app.exe with unrestricted priviledges.

As you see I have moved a bit but I am stacking now because I do not know what are the proper values to be entered in AI for the registry in order to work on other machines or for other users.

I hope you understood my writing. I know it can confuse one, but I know this is a problem that meny users would like to know how to solve.

Do you have any sugestions in this topic which is "how to make a MSI installation which allows restricted users to run urestricted an app.exe domainwide".

And also I am very thankfull to you and anyone else who has some comments, ideas, solutions, tips, explanations to this mine topic.

Regards,

Sascha[/img]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{0D786B1B-1AB2-4846-907D-143B1BD95C7A}Machine\Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\262144\Paths\{de6639b9-a86a-4a08-967b-97afbba6f918}
I'm afraid that I don't understand what those registry values means. Could you please provide more details on this.

On how to add registry values please take a look here:
http://www.advancedinstaller.com/user-g ... istry.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”