Jump to content
Sign in to follow this  
leegend

Uninstall Office 2010

Recommended Posts

leegend

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

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.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Mat

What about:

RunAsWait('User', "Domain", 'Password',0, "\\server\share\office2010\setup.exe /uninstall proplus /config ""\\server\share\office2010\ProPlus.WW\SilentRepairConfig.xml""")

Share this post


Link to post
Share on other sites
wakillon

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.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
wakillon

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.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
leegend

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

Share this post


Link to post
Share on other sites
leegend

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?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.