PDA

View Full Version : Running setup as Local Aministrator


eljefe357
09-05-2006, 03:07 PM
Hi,

I'm new to scripting and was wondering if someone could help me out?? I have been tasked to run a setup from CD on user's PCs that are not local administrators. What I am trying to accomplish is to get the install to use the local administrator account. I'm not sure how to script this:

this is what I got so far....am I going in the right direction????

Compname = System.GetLANInfo();

result = File.RunAs(_TempFolder.."\\setup.exe", "/s", "", SW_SHOWNORMAL, false, "Administrator", "Password", "Compname.Host", LOGON_NO_OPTION, nil, nil);

any help would be great:)

eljefe357
09-05-2006, 04:40 PM
Forgot to say this is being done in Setup Factory 7

eljefe357
09-06-2006, 07:23 AM
Removed the quotes from Compname.Host and it works.

Adam
09-06-2006, 10:42 AM
Good stuff.

When you reference a value in a table from script then you do not need the quotes. Adding quotes will make the reference into a literal string.

Adam Kapilik