WiX share code through custom actions

103 views Asked by At

I am using WiX 3.9 and I have a need for CustomActions. These CustomActions are executing VBScript, it does not matter what they are doing. I just want to know if I can share code trough different CustomActions.

What I have tried so far:

<Property Id="VBS_Logging">
  <![CDATA[
    MSgBox "Property injection worked"
  ]]>
</Property>

<CustomAction Id="ExecuteThis"
    Script="vbscript">
  [VBS_Logging]
  <![CDATA[
    MsgBox "Bye!"
  ]]>
</CustomAction>

<CustomAction Id="ExecuteSomewhereElse"
    Script="vbscript">
  [VBS_Logging]
  <![CDATA[
    MsgBox "Hi!"
  ]]>
</CustomAction>

Unfortunately this does not work, does somebody know an approach how I could achieve my goal?

0

There are 0 answers