Sign in to follow this  
Followers 0
leegend

Uninstall Office 2010

8 posts in this topic

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



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

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

A working dir is not a command line switch...

And?? I don't see how that has any relevance to my post.

Share this post


Link to post
Share on other sites

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

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

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  
Followers 0