Guest getsome Posted March 21, 2005 Share Posted March 21, 2005 Can't get the following to work RunAsSet("admin", "domain", "pass") RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q") RunAsSet() If I take out the RunAsSet I get the program to run properly. If I put in my user and pass I get the error Unable to execute the external program The directory name is invalid I have tried both local admin accounts and domain admins. I have tried the Run command instead I have tried "C:\DwfViewerSetup" instead nothing works. I just want to make a simple installation to run via a login script. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 21, 2005 Developers Share Posted March 21, 2005 Can't get the following to worknothing works.<{POST_SNAPBACK}>Is the script running from a UNC or mapped drive ?Try adding the workdir parameter to RunWait:RunAsSet("admin", "domain", "pass") RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q","\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527") RunAsSet() 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. Link to comment Share on other sites More sharing options...
Guest getsome Posted March 21, 2005 Share Posted March 21, 2005 Is the script running from a UNC or mapped drive ?Try adding the workdir parameter to RunWait:RunAsSet("admin", "domain", "pass") RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q","\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527") RunAsSet()<{POST_SNAPBACK}>that did the trick thankxproblem is that after I posted this I discovered CPAUhttp://www.joeware.net/win/free/tools/cpau.htmSimpler solution.Not sure which I'm going to use now, but thankx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now