Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    3

    Running setup as Local Aministrator

    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

  2. #2
    Join Date
    Sep 2006
    Posts
    3
    Forgot to say this is being done in Setup Factory 7

  3. #3
    Join Date
    Sep 2006
    Posts
    3

    Figured it out

    Removed the quotes from Compname.Host and it works.

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    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

Similar Threads

  1. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  2. New Features in Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 08-12-2004, 12:13 PM
  3. FAQ: Setup Factory 5.0 Frequently Asked Questions
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-10-2002, 09:50 AM
  4. HOWTO: Build a Setup from the Command Line
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-08-2002, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts