View Full Version : Problems with file.RunAs
Litschel
09-04-2005, 12:37 AM
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)
Eagle
09-05-2005, 12:29 AM
..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 :) )
Litschel
09-05-2005, 12:43 PM
..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.
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 (http://support.indigorose.com) ticket with your serial number.
Adam Kapilik
Litschel
09-09-2005, 05:05 PM
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 (http://support.indigorose.com) ticket with your serial number.
Adam Kapilik
I am using version 7.0.3.0 Trial Version.
Litschel
09-18-2005, 09:33 PM
Working now with 7.0.4.0. Thanks
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.