wix SetProperty After attribute won't take custom action Id

后端 未结 1 1018
庸人自扰
庸人自扰 2021-02-12 09:32

After reading the page on SetProperty and looking at as many examples as I could find here and elsewhere, I\'m still not able to get my SetProperty to work with After or Before

1条回答
  •  再見小時候
    2021-02-12 10:10

    I'm not sure, but the following thing looks suspicious.

    The (link) element has Sequence attribute, which is optional. If you don't specify it (like in the sample you posted), it gets the value of both, which means the custom action of type 51 (which is what SetProperty translates to) is scheduled into both InstallUISequence and InstallExecuteSequence.

    However, as far as I can see, you only schedule MyWonderfulCA into the InstallExecuteSequence. Hence, it makes me think that when WiX tries to schedule SetProperty into the InstallUISequence, it can't find the custom action specified in After attribute and fails.

    Check this out by either specifying the Sequence='execute' explicitly, or by scheduling your wonderful CA into both sequence. If it is the case, then just choose the most appropriate way out of these two.

    0 讨论(0)
提交回复
热议问题