WiX: Changing the path of a directory does not change the path of a sub directory?

前端 未结 1 695
孤独总比滥情好
孤独总比滥情好 2021-01-13 15:21

I have a WiX installer that includes this declaration of directories:


    

        
相关标签:
1条回答
  • 2021-01-13 15:46

    Did you try using custom actions?

    You can use one of these custom action to change the property value during install:

    1. a custom action which changes the directory property value scheduled before CostFinalize
    2. a type 35 custom action which changes the directory path (should be scheduled after CostFinalize)

    For example:

    <CustomAction Id="ChangeDir" Directory="INSTALLFOLDER" Value="[SomeValueorPropertyhere]"/>
    

    2.Schedule the action during the InstallExecution phase (must be after the CostFinalize step):

    <Custom Action="ChangeDir" After="CostFinalize"></Custom>
    
    0 讨论(0)
提交回复
热议问题