Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

UnInstall condition


4 replies to this topic

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 31 May 2006 - 10:54

Hello,

I have a CA running during Uninstall. That CA has to be initiated only when called from ARP or by cmd line (MsiExec /x ...). I don't want it to be called during reinstall or any other..

Any help what to write in the Condition property..

Thanks in advance

-eelis

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 31 May 2006 - 19:19

The following evaluates to true only during uninstall:
REMOVE~="ALL"
However it doesn't matter how the uninstall was initiated.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 01 June 2006 - 06:57

Thanks Stefan!

Here is the problem:
I have settings and log files that should stay untouched during an upgrade, even if it's a major upgrade with RemovePreviousVersion. I created a CA that removes them during Uninstall. These files should be removed only in case of ARP uninstall.
Note also that some of the files are not copied during the installation (created by the program on run-time). Therefore they cannot be monitored on the File System Editor (VS).

I need a way to determine whether the uninstall is coming from ARP or a major upgrade that removes the previous version.

Thanks a lot!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 June 2006 - 23:19

In case of a Major Upgrade the UPGRADINGPRODUCTCODE property is set.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 05 June 2006 - 09:30

Thanks Stefan!