Results 1 to 2 of 2

Thread: skip LaunchCondition when uninstalling

  1. #1
    Join Date
    Jul 2002
    Location
    Deutschland
    Posts
    209

    skip LaunchCondition when uninstalling

    i set up some LaunchConditions via systemsearch.

    • systemsearch fills the property SETUPREQUIREMENT_A
    • launchcondition is: (SETUPREQUIREMENT_A<>"")


    now, when hitting "remove" at add/remove programs the uninstallation aborts because of the launchcondition.

    how would you skip the launchcondition when in uninstall mode?
    the scenarios are:
    • ARP (add/remove programs): hit "remove"
    • msiexec /x
    • setup.exe /x


    maybe launchconditions should be something like:
    (SETUPREQUIREMENT_A<>"") OR (REMOVE="ALL")

    but i seriously doubt the following:
    - is the property REMOVE="ALL" set prior to evaluating LaunchConditions
    - do all the scenarios listed above populate the REMOVE property?

    cheers, graven (ISDev 7.04, basic MSI)

  2. #2
    Join Date
    Jan 2002
    Location
    Oakland, CA, USA
    Posts
    5,348
    Clicking Remove button in ARP, running setup with /x switch will skip UI sequence.

    In your Execute sequence, make sure AppSearch action comes before LaunchCondition action. Also, make sure the sequence number for AppSearch action isn't 0 (zero) after the move.

    You can also put a condition on LaunchCondition action, such as,
    Code:
    Not Installed
    Note that if the product is removed by setting its top feature to absent, the REMOVE property may not equal ALL until after the InstallValidate action.
    Tsung-Huang Hsieh
    "A problem well stated is a problem half solved." --Charles F. Kettering

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •