GeneratorCZ Posted February 2, 2010 Share Posted February 2, 2010 (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 February 2, 2010 by GeneratorCZ Link to comment Share on other sites More sharing options...
Juvigy Posted February 2, 2010 Share Posted February 2, 2010 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) Link to comment Share on other sites More sharing options...
GeneratorCZ Posted February 2, 2010 Author Share Posted February 2, 2010 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 Link to comment Share on other sites More sharing options...
GeneratorCZ Posted February 2, 2010 Author Share Posted February 2, 2010 (edited) Ohhh SOLVED ! 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 February 2, 2010 by GeneratorCZ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now