Announcement

Collapse
No announcement yet.

Question RE: _UninstallStages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question RE: _UninstallStages

    We're running our product uninstall on a scheduled task; it's a companion to another product and won't be needed if its' companion product is uninstalled. To accomplish this, in Uninstall OnStartup, I check for the existence of the companion product's uninstall key; if found, we bail, if it's not found, we proceed with the uninstall.

    The problem I'm having is that even if we bail in OnStartup, Uninstall.exe is deleting itself, so isn't there the next time the scheduled task runs. My question is: if I set _UninstallStages{RemoveUninstallFiles=false}, will this prevent the uninstall.exe from being deleted?

    Thanks!
    DDoutelMS

    Update: No, that doesn't work; is there a way to prevent uninstall.exe from deleting itself if I bail without uninstalling the archive files?
    Last edited by DDoutelMS; 06-10-2014, 09:07 AM.

  • #2
    Originally posted by DDoutelMS View Post
    No, that doesn't work; is there a way to prevent uninstall.exe from deleting itself if I bail without uninstalling the archive files?
    Use
    Code:
    Application.Exit(EXIT_REASON_USER_ABORTED);
    to abort the script and uninstall.exe won't be removed.

    Ulrich

    Comment


    • #3
      Thank you VERY MUCH, Ulrich! Greatly appreciated!

      Best regards,
      DDoutelMS

      Comment

      Working...
      X