What is value of SUCCESS after uninstall?

Got a problem you cannot solve? Try here.
get101
Posts: 48
Joined: Wed May 16, 2007 1:58 am

What is value of SUCCESS after uninstall?

Postby get101 » Mon Jul 02, 2007 12:31 am

I am having problems with the value of SUCCESS during uninstall. Here is my code:

Code: Select all

if Variable REMOVE Equals TRUE
  Comment: Uninstall product
  Comment: TO-DO: Insert any additional uninstall commands here
  Apply Uninstall (get result into variable SUCCESS)
  Set Variable PROGRESS to 100
  MessageBox: Uninstall - variable success, $SUCCESS$


The MessageBox shows COMPLETE. That means the rest of the code below does not run!

Code: Select all

  if Variable SUCCESS Equals TRUE
    if Variable SUCCESS not Equals Cancel
     
      Unregister Library $TARGETDIR$\\ctText.ocx



I don't know why SUCCESS = COMPLETE when I was expecting SUCCESS to be TRUE.

Do I need to change the IF test for SUCCESS, or have I done something wrong?

Please help!

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Jul 02, 2007 2:46 pm

Why were you expecting SUCCESS to be TRUE? Just open the help file entry for the Apply Changes command - easiest way to do this is by double-clicking the Apply Uninstall line, and then pressing F1. This will bring up the help file topic for the Apply Changes command (you can use the same technique to view context sensitive help for other MSIcode commands). The values that are returned by Apply Changes are enumerated in that topic.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: pfennig and 107 guests