Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2004
    Posts
    8

    Problems with file.RunAs

    I keep trying to use the File.RunAs but when I try using the action wizard, I get a Data Validation Error.

    If I enter the syntax manually, the setup file returns an error "Attempt to call field RunAs (a nil value)".

    I am trying to execute a VBS Script as the local administrator.

    file.RunAs("%SystemFolder%\\CScript.exe %AppFolder%\\LostAccount.vbs", "", "", SW_SHOWNORMAL, true, "Administrator", "DTL%058", "", LOGON_NO_OPTION, nil, nil)

  2. #2
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    ..make sure you are'nt missing a parameter, also, you may need to
    use the action SessionVar.Expand(..for your %SystemFolder% and %Appfolder% variables).

    you also may need to move your target vbs path into the command line args
    parameter.

    HTH

    (not at my SUF7 PC , so going on memory here )

  3. #3
    Join Date
    Jan 2004
    Posts
    8
    Quote Originally Posted by Eagle
    ..make sure you are'nt missing a parameter, also, you may need to
    use the action SessionVar.Expand(..for your %SystemFolder% and %Appfolder% variables).

    you also may need to move your target vbs path into the command line args
    parameter.

    HTH

    (not at my SUF7 PC , so going on memory here )
    Unfortunately, I tried that. Even testing I changed the command to "notepad.exe" just to seee if the command was not expanding properly. Running on W2K SP4. I also used the example from the help file and it didn't work either.

    I find it strange that the Wizard gives an error without changing any info. You would think that at least the wizard's default info would atleast write the line.

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    What version of Setup Factory are you using (Under help About)?

    I could not replicate using 7.0.3.0. If there was a problem with this action then it is a good time to find it and fix for the next service release. If you can confirm that this happens in the latest build then you may want to open a Support ticket with your serial number.

    Adam Kapilik

  5. #5
    Join Date
    Jan 2004
    Posts
    8
    Quote Originally Posted by Adam
    What version of Setup Factory are you using (Under help About)?

    I could not replicate using 7.0.3.0. If there was a problem with this action then it is a good time to find it and fix for the next service release. If you can confirm that this happens in the latest build then you may want to open a Support ticket with your serial number.

    Adam Kapilik

    I am using version 7.0.3.0 Trial Version.

  6. #6
    Join Date
    Jan 2004
    Posts
    8

    Peekaboo!

    Working now with 7.0.4.0. Thanks

Similar Threads

  1. Problems with OCX & DLL Registration
    By AdamW in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-22-2004, 04:26 PM
  2. 6.0.1.4 Problems, Problems!
    By smack in forum Setup Factory 6.0
    Replies: 1
    Last Post: 02-17-2004, 04:26 AM
  3. Problems with flash.....
    By RobbyH in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 02-10-2003, 04:11 PM
  4. TU problems with ZIP
    By clindemann in forum TrueUpdate 1.0
    Replies: 1
    Last Post: 10-16-2002, 08:50 AM
  5. PROBLEMS EXECUTE ACTIONS
    By Laura-2 in forum AutoPlay Menu Studio 3.0
    Replies: 9
    Last Post: 02-04-2002, 09:39 AM

Posting Permissions

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