Uninstall Napster

(imported topic written by ppomeroy91)

Hello,

I have been trying to uninstall Napster using several variations. The last one is this:

if exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1}” of registry then

wait MsiExec.exe /x {8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1} UIMODE=“NO” /q

endif

Can someone help me with the correct sytax? Everything I’ve tried fails.

Thanks,

Peggy

(imported comment written by jessewk)

In the wait command you need to escape your curly braces otherwise the string between the braces is evaluated as relevance.

In your if statement you need to add curly braces so that your relevance is treated as relevance.

Also, in actions there is no ‘then’ key word.

Try this:

if {exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1}” of registry}

wait MsiExec.exe /x {{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1} UIMODE=“NO” /q

endif

(imported comment written by ppomeroy91)

Hi Jesse,

Thanks for the info. I tried the command you provided, it still failed.

I also tried this:

if {exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1}” of registry}

wait MsiExec.exe /I {{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1} UIMODE=“NO” /q

endif

since the /I is in the uninstall string in the registry. Still failing.

Thanks,

Peggy

(imported comment written by jessewk)

This syntax should work:

if {exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall%7B8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1%7D” of registry}

wait MsiExec.exe /x {{8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1} UIMODE=“NO” /q

endif

I can’t tell you if the actual uninstall command will work. If you manually run the following on the command line, does it uninstall successfully?

MsiExec.exe /x {8DCE550C-CA43-4E82-92DF-FFC4A48F5BE1} UIMODE=“NO” /q

(imported comment written by ppomeroy91)

Unfortunately, no it does not work.

(imported comment written by jessewk)

You’ll need to figure out how to uninstall from the command line. After that it should be easy to add it to the action script.