Sign in to follow this  
Followers 0
GeneratorCZ

RunAsWait msiexec /x with QUIET

4 posts in this topic

#1 ·  Posted (edited)

Hello,

i try uninstall previously installed version of .msi fil but I can't get RunAsWait msiexec running with /quiet option.

Everything works fine with attended uninstalation :

RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x C:\_script\PDFSigner.msi', @SystemDir)

This woks fine with admin rights, but uninstaller waits with "Really uninstall" question.

When I add /quiet option with RunAsWait, then nothing happens, uninstaller won't run

RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x C:\_script\PDFSigner.msi /quiet', @SystemDir)

When I try just RunWait and then run script as administrator, then is everything OK, uninstalation works quietly without any problem:

RunWait('msiexec /x "C:\_script\PDFSigner.msi" /quiet')

Any hlep ?

Thanx

Edited by GeneratorCZ

Share this post


Link to post
Share on other sites



How do you use it ?

1 RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x C:\_script\PDFSigner.msi /quiet', @SystemDir)

2 RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x "C:\_script\PDFSigner.msi" /quiet', @SystemDir)

Share this post


Link to post
Share on other sites

How do you use it ?

1 RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x C:\_script\PDFSigner.msi /quiet', @SystemDir)

2 RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /x "C:\_script\PDFSigner.msi" /quiet', @SystemDir)

I've tryed both versions with or without quotes around .msi file. Strange is, that INSTALL proces works fine with /PASSIVE or /QUIET option .. or any other option ...

I can RunAsWait any .msi installation without any problems like this:

RunAsWait( $sAdminName, @ComputerName, $sAdminPsw, 0, 'msiexec /i 602xmlfiller.msi /q UPDATE="-3"', 'C:\_script', @SW_MINIMIZE )

But UNINSTALLATION of .msi file don't accept any /"OPTION" with RunAsWait or RunAs command

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ohhh SOLVED ! :D Aftes xmany time of trying every possible combination I found working sollution.

Just don't use "msiexec /x" for uninstallation but "msiexec /uninstall" and WORKS!

I don't know about difference between /x or /uninstall parameters, I've think, that they are same ... but one shorter ...

Edited by GeneratorCZ

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