1

I am creating a bundle with several packages. One of these packages needs to be installed if the exit code of an executable has a certain value.

Is it possible to set the install condition of a package based on the exit code of an executable?

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
GHUI
  • 11
  • 1

2 Answers2

1

Burn only runs packages after it's already planned what to do with all of them. So no, you can't run an ExePackage and use its exit code to change the plan for another package. If you write a custom bootstrapper application, you could run an .exe, capture its exit code, and use it in the plan.

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
-1

You may be able to use Burn Bootstrapper - part of the WIX toolkit: Wix Burn: How to stop Bootstrapper from installing itself

Community
  • 1
  • 1
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
  • I am using Burn, but how do I link the exitcode of an executable to the installcondition of a package? – GHUI Mar 12 '14 at 07:13