Trying to uninstall a program with msixec from powershell

Of course you can tailor your msiexec session however you like. The syntax for the msiexec command can be found here:
https://technet.microsoft.com/en-us/library/cc759262%28v=ws.10%29.aspx

I have attempted the following methods. I either get the msiexec window popping up, or exit code: "This action is only valid for products that are currently installed."Powershell $app = Get-WmiObject -Class Win32_Product -Filter "Name = 'StorageCraft ShadowControl'" $app.IdentifyingNumber (Start-Process -FilePath "msiexec.exe" -ArgumentList "/x $($app.IdentifyingNumber) /qn" -Wait -Passthru).ExitCode Start-Process msiexec.exe '/x {DABFF9C1-048E-43B1-ACEB-C47FB9502DB0} /qn' Start-Process -FilePath "$env:systemroot\system32\msiexec.exe" -ArgumentList "/x {DABFF9C1-048E-43B1-ACEB-C47FB9502DB0} /qn" -Wait $command = "msiexec.exe /x {DABFF9C1-048E-43B1-ACEB-C47FB9502DB0} /qn" Invoke-Expression -Command:$command $allArgs = @('/x', '{DABFF9C1-048E-43B1-ACEB-C47FB9502DB0}', '/qn') & $env:systemroot\system32\msiexec.exe $allArgsPowershellI ...
This topic first appeared in the Spiceworks Community

Similar Messages

  • Trying to restore new phone with backup from previous.  itunes can not finish due to "unable to load SyncUICoreLocalized.dll"  what do i do now?

    trying to restore new phone with backup from previous.  itunes can not finish due to "unable to load SyncUICoreLocalized.dll"  what do i do now?

    See this discussion: iTunes Sync Error with iPhone

  • Error in calling SQL plus program with parameter from Shell script

    This is my Shell script. I am trying to call in the SQL plus program with the parameter and the shell script is registered as a concurrent program.
    PARAMETERS=`echo $1 |tr -d '\"'`
    DB_USER_ID=`echo $PARAMETERS|cut -d" " -f3|cut -d"=" -f2`
    CONN_STRING=$DB_USER_ID
    REQ_DATE=`echo $PARAMETERS|cut -d" " -f9|cut -d"=" -f2`
    timestamp=`date +%m-%d-%y-%H:%M:%S-%Z`
    timestam=`date +%y-%m-%d`
    sqlplus -s $CONN_STRING @ar_statement.sql $REQ_DATE
    chmod 755 statement.sh
    . statement.sh
    My Sql plus program is like this.
    set pagesize 0
    set heading off
    set feedback off
    spool $GEC_TOP/log/ge_ar_statement.sh
    select output_file_name
    from fnd_concurrent_requests
    where trunc(actual_completion_date) = '&2';
    spool off;
    exit;
    When i run the concurrent program, i am getting the following error:
    ar_statement: line 14: REQ_DATE: command not found
    Enter value for 2:
    User requested Interrupt or EOF detected.
    ar_statement.sh: line 1: Enter: command not found
    ar_statement.sh: line 2: User: command not found
    ar_statement
    Program exited with status 127
    I am not strong at Unix Porgamming and i would request someone who can
    help me out as soon as possible.
    I need this solution quickly and thank everyone in advance.
    Thanks.

    Can you put your coding between code statements, like shown in the FAQ. It will be easier to read.
    Looking at your script, my first guess is that crontab will not find your sqlplus since your script does not have $HOME/bin in the $PATH. From what I understand, running .profile in your script will not work either because variables are exported to sub-shells, not to the shell above. You can call your script with a dot like . ./script which means that the script will run like it was typed at the command prompt. But it will be less confusing to define appropriate variables in the script. eg.
    ORACLE_SID=my_instance_name
    ORACLE_HOME=/my_path_to_oracle_home_directory
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    PATH=$ORACLE_HOME/bin:$PATH
    I remember some slightly different way of coding to handle the sqlplus return codes.
    For instance:
    sqlplus -s /nolog > /dev/null <<-EOF
    connect system/manager
    @ssm.sql
    whenever oserror exit failure
    whenever sqlerror exit failure
    EOF
    sql_err=$?
    if [ $sql_err -ne 0 ]; then
       echo "FAILURE"
    else
       echo "SUCCESS"
    fiThe - in -EOF supresses tab's
    Using connect will prevent ps from showing your login credentials
    In some versions of bash the ending EOF needs to be at the beginning of the line to work.
    Edited by: waldorfm on Jul 14, 2010 7:05 PM
    complaining about putting code between code delimiters and forgot myself ;-)
    Edited by: waldorfm on Jul 14, 2010 7:08 PM
    Btw, if you "source" a script running it like . .script, than an exit in that script will log you out.

  • I am trying to uninstall a program that is running in the background but does not show when I force quit.  How do I remove it?

    How do I uninstall a program that is running in the background but does not show in Force Quit?

    Open Activity Monitor and look for the program.  Select it and Quit or Force quit it from within Acitiviy Monitor.
    Search for the application with Find Any File as it can search areas that Spotlight can't, like invisible folders, system folders and packages.  You can drag the app and any associated files from the search result window to the Trash bin in the Dock.
    OT

  • Hi i am trying to write a program which reads from a properties file the pr

    hi,
    this is ayesha.
    I am trying to write a program wherein i will be reading the value of a property from a properties file which will be true initially. I want to loop in there till the time when the value of the property is false.
    The code is as follows:
    public static void main(String[] args) {
              ReadingAPropertiesFile propers=new ReadingAPropertiesFile();
              propers.ReadingFileRegularly("F:\\ayesha.properties");
    public String ReadingFileRegularly(String FilePath){
              Properties props = new Properties();
              String message;
              String filePath=FilePath;
              try {
    props.load(new FileInputStream(filePath));
    message = props.getProperty("ayesha");
         boolean theValue = Boolean.parseBoolean(message);
         while(theValue){
              System.out.println("trueeeeeeeeeeeeeeeeeeeeeee");
              Thread.sleep(60000);
              ReadingFileRegularly(filePath);
              catch(Exception ex){
                   ex.printStackTrace();
              String messagean="something";
              return messagean;
    The contents of ayesha.properties are :
    ayesha=true
    After 5 minutes it will be set to false so i want to loop in there till the value of ayesha=false at which time i will return
    But i dont know how to loop in there for that time:
    while(theValue) ?????????????/ what after this???????????
    Any suggestons are awaited.

    ayeshaparween wrote:
    hi,
    this is ayesha.
    I am trying to write a program wherein i will be reading the value of a property from a properties file which will be true initially. I want to loop in there till the time when the value of the property is false.
    The code is as follows:
    public static void main(String[] args) {
              ReadingAPropertiesFile propers=new ReadingAPropertiesFile();
              propers.ReadingFileRegularly("F:\\ayesha.properties");
    public String ReadingFileRegularly(String FilePath){
              Properties props = new Properties();
              String message;
              String filePath=FilePath;
              try {
    props.load(new FileInputStream(filePath));
    message = props.getProperty("ayesha");
         boolean theValue = Boolean.parseBoolean(message);
         while(theValue){
              System.out.println("trueeeeeeeeeeeeeeeeeeeeeee");
              Thread.sleep(60000);
              ReadingFileRegularly(filePath);//recursive call this is a bad idea might result in stack overflow error
              catch(Exception ex){
                   ex.printStackTrace();
              String messagean="something";
              return messagean;
    The contents of ayesha.properties are :
    ayesha=true
    After 5 minutes it will be set to false so i want to loop in there till the value of ayesha=false at which time i will return
    But i dont know how to loop in there for that time:
    while(theValue) ?????????????/ what after this???????????
    Any suggestons are awaited.I think you better rethink your design , do not use recursion, I would normally use a loop like you did but without loading the content of the file each time, I would use File.l lastModified() method and compare with previous results from this method to see if the file was modified. Then if it was modified then load the new File and check if the property value has changed.

  • Trying to uninstall itunes 11.0.4 from my Windows 7 computer. I get an error message that say "This Installation package could not be opened. Contatc the application vendor to verify that this is a valid windows installer package. Any solutions???

    Trying to uninstall itunes 11.0.4 in order to update to the most recent itunes. I get an error message that say..."This installation package could not be opened. Contact the application vender to verify that this is a valid windows installer package.

    Hello JAH1961,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Trying to populate a table with data from WebRowset

    Hi,
    I want to be able to populate my tables with data from WebRowsets that have been saved to files. Everything goes good until I get to acceptChanges(). At which point I get a NullPointerException.
    Here's the code...
    WebRowSet wrs = new WebRowSetImpl();
    FileReader reader = new FileReader(inputFile);
    wrs.readXml(reader);
    wrs.beforeFirst();
    CachedRowSet crs = new CachedRowSetImpl();
    crs.setSyncProvider("com.sun.rowset.providers.RIXMLProvider");
    crs.populate(wrs);
    crs.beforeFirst();
    crs.acceptChanges(con);
    Results in...
    java.lang.NullPointerException
    at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:867)
    at com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:919)
    I'm using Java 1.5_02. I looked at the source code for CachedRowSetImpl, and the only thing I could think of is that maybe "provider.getRowSetWriter()" in the following snippet is returning null....
    public void setSyncProvider(String s)
    throws SQLException
    provider = SyncFactory.getInstance(s);
    rowSetReader = provider.getRowSetReader();
    rowSetWriter = (TransactionalWriter)provider.getRowSetWriter();
    Any ideas?? Thanks!

    I have the same problem after setting com.sun.rowset.providers.RIXMLProvider.
    Looks like a bug to me.
    By the way, why are you creating a new CachedRowSet and populate it with a WebRowset (which extends CachedRowSet)?

  • Calling DB2 Stored procedure(with parameters) from powershell

    Hi 
    I am trying to call a DB2 stored procedure that has parameters from Powershell scrip and I am not able to can some one help me here?
    $ServerName = 'XXXX'
    $dbalias='XXXXX'
     $conn_string = "Provider=IBMDADB2;DBALIAS=$dbalias;Uid=;Pwd=;"
     $conn = new-Object system.data.Oledb.OleDbconnection
     $conn.ConnectionString = $conn_string
     $conn.open()
     $query="CALL DBID_CONTROL.GET_TABLE_MAINT_CTL(?,?,?,'MSAS','DATABASE_CONNECTIONS_CUBE','CUBE_PARTITION');"
     $cmd = new-Object system.data.Oledb.OleDbcommand($query,$conn)
      $ds=New-Object system.Data.DataSet
     $da=New-Object System.Data.OleDb.OleDbDataAdapter($cmd)
      $da.Fill($ds) [int]$cur_utc_date_key = $ds.Tables[0].Rows[0][0]
     $cur_utc_date          = $ds.Tables[0].Rows[0][1]
     ###list current date key & current date values
     write-output "current date key value is $cur_utc_date_key"
     write-output "current date value is $cur_utc_date"
     write-output " "
    Thanks

    Hi 
    This is the error message i get when i run the script
    Exception calling "Fill" with "1" argument(s): " CLI0100E  Wrong number of parameters. SQLSTATE=07001"
    At line:45 char:10
    +  $da.Fill <<<< ($ds)
        + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : DotNetMethodException

  • After upgrading to Foxfire 8, I cannot connect to Foxfire...have tried to uninstall and reinstall with no luck

    When I click on Firefox I see restore session but no options to do so....cannot get firefox to load....it just sits and tries to run but will not load....I have uninstalled Firefox several times and downloaded with NO luck...help!

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • When trying to uninstall a program, I am getting a 1316 error

    I have been trying to remove the Ask toolbar and Ask.com from my system. I have been using the control panel. I keep getting a 1316 error. What is that error and how can I accomplish my task?

    hello plottc, you could try if this microsoft fixit tool helps you uninstalling the ask toolbar: http://support2.microsoft.com/mats/program_install_and_uninstall
    ...or you could try a third-party tool like [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] in order to remove unwanted adware.

  • I'm trying to uninstall a program and it's teeling me i don't have suffiicent access to to uninstal

    I need to access the system administrator,   What can i do so I can install this upgraded version of the program

    Try Here  >  http://support.apple.com/kb/TS1646
    If no joy... Contact iTunes Customer Service and request assistance
    Apple  Support  iTunes Store  Contact Us

  • Firefox won't open. I get a message to restart and when I restart it still doesn't work. It won't even let me uninstall the program so I can re-install. Help!!!

    I upgraded from version 3.6.15 to 4.0.1. After upgrading the program doesn't open. I keep getting a message that "Firefox must be restarted to complete a previous upgrade. Do you want to reboot now?" I rebooted 3 times with no success. I also tried to uninstall the program and I get the same message! In other words I can't even uninstall. The previous version ran fine. Any suggestions?

    Download and Install Java: http://support.apple.com/kb/DL1421

  • Error 1321 when trying to uninstall GoLive v8

    I am trying to uninstall Go Live CS2 v8.0 from my computer because a lot of the features are not working. This program was received from 1and1.com as a "program package" when our nonprofit foundation purchased the domain and Web hosting from them and received the programs for the shipping/handling charges. I have been unable to get any response from tech support at 1and1.com. Can anyone help me out with this? As the Webmaster for the foundation, I am needing to get this issue resolved quickly and any help will be greatly appreciated.
    This is the error message that I am getting when trying to uninstall the program: Error 1321=Installer has insufficient privileges to modify the file C:\programdata\Adobe\updater\certs\golive.cer.
    We did register the program and I would have like to of used it for the foundations Website, but I am only able to "build" the site on the program. I am really disappointed in both the program and 1and1.com over this issue.
    Thank you,
    Michelle Holt

    Thank you for this information. I am more of an applications user than tech. My knowledge of what is on the other side of the applications is very limited. I followed the directions and got the Admin. account activated, but was unsuccessful at uninstalling the program. I finally received an email from tech support at 1and1.com, but it was just an initial email stating that they have received my statement and will be in contact within the next 12-24 hours with a possible resolution. 1and1.com is great for hosting a Website, don't get me wrong there, but the software that they include with their packages are junk. I will continue to use 1and1.com for my Webhosting, but would recommend to anyone else not to get the "program package".
    Thank you again for your help. If you think of anything else, let me know. This program is taking up space on my computer that I could use for a program that actually works right.

  • I am trying to download a program off the internet.

    I am trying to download a program for school from this website http://snap2007.emcp.com/login/login.php It's telling me that I need internet explorer (which I have IE8) in order to download the training assessment I need for school. Does anyone know of a way I can download this program without changing firefox?

    You're welcome.
    Be aware that using the IE browser comes with all its vulnerabilities, so only use it on trusted websites.

  • Spacebar shortcut for hand tool not working in Photoshop CC - have tried closing all other programs

    The spacebar shortcut for hand tool is not working in Photoshop CC - as suggested in this form & others I have tried closing all other programs with no result. I have also reset photoshop to default settings & this did not make any difference either.

    There may be a software conflict. I went through this today. When I did a search in Adobe foruns actually found tha answer on the Illustrator forum:  http://forums.adobe.com/thread/1027227?
    What the problem for me was an app called - 1Password.  I had opened it, but not given my password to login and it was on in the background. As soon as I quit 1Password, the spacebar Hand Tool worked.
    Then I opened 1Password again, and logged in. This time the spacebar works.
    Others mentioned conflict with Spotify. And Chrome too. Couple other things. Read that thread in the link above.
    Good luck!

Maybe you are looking for