leegend 0 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 Share this post Link to post Share on other sites
wakillon 404 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 Share this post Link to post Share on other sites
Mat 376 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 Share this post Link to post Share on other sites
wakillon 404 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 Share this post Link to post Share on other sites
Mat 376 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 Share this post Link to post Share on other sites
wakillon 404 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 Share this post Link to post Share on other sites
leegend 0 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 Share this post Link to post Share on other sites
leegend 0 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? Share this post Link to post Share on other sites