leegend Posted December 17, 2010 Share Posted December 17, 2010 Hi, I am brand new to auto it and require a little bit of help. I’m creating a script that will uninstall office 2010 on windows 7 machines, my script looks like this: #RequireAdmin RunAsWait('User', "Domain", 'Password',0, "\\server\share\office2010\setup.exe /uninstall proplus /config \\server\share\office2010\ProPlus.WW\SilentRepairConfig.xml") Which doesn’t run the uninstaller, but if i run; #RequireAdmin RunAsWait('User', "Domain", 'Password',0, "\\server\share\office2010\setup.exe" The setup will start, is there a way to get the switches working? Thank You in anticipation Link to comment Share on other sites More sharing options...
wakillon Posted December 17, 2010 Share Posted December 17, 2010 (edited) I don't see any error in the uninstall command line syntax and runaswait function...May be the xml content ? Edit : try to add a workingdir in runaswait... Edited December 17, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Mat Posted December 17, 2010 Share Posted December 17, 2010 What about: RunAsWait('User', "Domain", 'Password',0, "\\server\share\office2010\setup.exe /uninstall proplus /config ""\\server\share\office2010\ProPlus.WW\SilentRepairConfig.xml""") AutoIt Project Listing Link to comment Share on other sites More sharing options...
wakillon Posted December 17, 2010 Share Posted December 17, 2010 (edited) What about: RunAsWait('User', "Domain", 'Password',0, "\\server\share\office2010\setup.exe /uninstall proplus /config ""\\server\share\office2010\ProPlus.WW\SilentRepairConfig.xml""") A working dir is not a command line switch... Edited December 17, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Mat Posted December 17, 2010 Share Posted December 17, 2010 A working dir is not a command line switch...And?? I don't see how that has any relevance to my post. AutoIt Project Listing Link to comment Share on other sites More sharing options...
wakillon Posted December 17, 2010 Share Posted December 17, 2010 And?? I don't see how that has any relevance to my post.Argh ! I thought I saw a comma between the programs argument and command line ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
leegend Posted December 17, 2010 Author Share Posted December 17, 2010 cheers for your replys, i have added the extra quotation marks which didnt make a difference. The unattend XML works fine if i run same script in CMD. Im not sure about changing the working directory? thanks Link to comment Share on other sites More sharing options...
leegend Posted December 17, 2010 Author Share Posted December 17, 2010 Hi guys, I tried changing the 0 to a 2 and now it works...strange Can you think of any idea why changing the visability options would make it work? 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