Jump to content

Recommended Posts

Posted

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

Posted (edited)

I don't see any error in the uninstall command line syntax and runaswait function...

May be the xml content ? Posted Image

Edit : try to add a workingdir in runaswait...

Edited by wakillon

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted (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 by wakillon

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted

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 :x

Posted

Hi guys, I tried changing the 0 to a 2 and now it works...strange :x

Can you think of any idea why changing the visability options would make it work?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...