Jump to content

Recommended Posts

Posted

Hello,

Have created a very basic script to install a couple of MSI files on mmachine where the user does not have admin privledges. I'm new to this and it's basic, but it works with one small problem. After the installations, the entries do not appear in the ADD/REMOVE Programs when logged in as user. If you log in as local admin they are there. NOTE ... when the install.exe was run, I was logged in as the user.

Any help or suggestions would be greatly appreciated.

Bill F.

MsgBox(64, "Sales Installer"

RunAsSet ("Administrator","","xxxxxxxxxxx")

Run ("regedit.exe /s GPNetwork.reg")

Sleep (1000)

RunWait ("msiexec /i polseccl.msi /qb")

RunWait ("msiexec /i polregcl.msi /qb")

RunWait ("msiexec /i updateagent.msi /qb")

RunWait ("msiexec /i ASMBaseMSI.msi /qb")

Run ("updatentfs.exe")

Sleep (5000)

Send ("ENTER")

Sleep (8000)

Send ("ENTER")

Sleep (3000)

RunWait ("gpupdate.exe")

Sleep (2000)

MsgBox(4160, "Done!", "All updates are complete")

  • Developers
Posted

Hello,

Have created a very basic script to install a couple of MSI files on mmachine where the user does not have admin privledges. I'm new to this and it's basic, but it works with one small problem. After the installations, the entries do not appear in the ADD/REMOVE Programs when logged in as user. If you log in as local admin they are there. NOTE ... when the install.exe was run, I was logged in as the user.

Any help or suggestions would be greatly appreciated.

The programs are run with the Administrator account and that Registry Hive is loaded by default.

check this option for RunAsSet:

RunAsSet ( ["user", "domain", "password" [, options]] )

options [optional]

0 = do not load the user profile, 1 = (default) load the user profile, 2 = use for net credentials only

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

The programs are run with the Administrator account and that Registry Hive is loaded by default.

check this option for RunAsSet:

Thanks .. that helped. The final solution was to use the MSI option, ALLUSERS=1

Bill

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...