Results 1 to 2 of 2

Thread: How to stop and uninstall services during uninstall

  1. #1
    Join Date
    Dec 2012
    Location
    France
    Posts
    2

    How to stop and uninstall services during uninstall

    Hi !

    I want to stop and delete my service during my program uninstall.

    In Organization > Component, I've add 2 events.
    One event with Install Start & Install Stop = Yes. (others = No)
    One event with Uninstall Stop & Uninstall Delete = Yes (Others = No)

    My service is starting during the install, but during the uninstall, it's not stopping and not uninstalling.

    I don't know why.

    How to uninstall my service ?

  2. #2
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,410
    "Uninstall" refers to uninstall of the component not uninstall of the product. For example, the service could belong to a component that belongs to a feature. During a maintenance operation you could select the feature for removal which would remove the component and service even though you aren't removing the product.

    Now, the devil in that is there are scenarios where MSI doesn't remove a component therefore the service wouldn't be stopped or deleted. Examples include components marked as Permenant or scenarios where you've violated the component rules and or reference counting of the component.

    You have to log the install and examine the entries that indicate the requests / actions being performed on the component to know if that is the problem.
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

Posting Permissions

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