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.

Condition for file replacement in minor update

1 reply to this topic


  • Full Members
  • 4 posts

Posted 04 July 2011 - 00:53

How can you determine if a component or file is being replaced during a minor upgrade? I need to condition a custom action to run only if a new file is replacing an old one. If the standard file versioning logic indicates the file is not be be replaced, I don't want the CA to run. Statements such as $Component=3 won't work because that will be true if the original install added the file and the file is not changed during the update.

Thanks in advance.


  • Moderators
  • 1,447 posts

Posted 04 July 2011 - 04:57

Perhaps check this SDK help topic: http://msdn.microsof...1(v=vs.85).aspx

Would the "Run action only on the reinstallation of a component" work?:

There are both action states and installation states, the action state should specify what "is about to happen".
-Stein Åsmul