Jump to content

Recommended Posts

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
Posted

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)

Posted

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...