WiX - Set Installdirectory dynamically over CustomAction [C#]

不想你离开。 提交于 2019-12-06 07:45:09

could solve the problem with SetProperty:

<Property Id="TARGETDIRECTORY" Value="C:\Win7\" />
<SetProperty Id="TARGETDIRECTORY" Before="CostFinalize" Value="C:\WinXP\">
  <![CDATA[VersionNT = 501]]>
</SetProperty>

This could happen if you change the install path before CostFinalize. If this is the case you need to use a different custom action to set the path, that allows Windows Installer to be notified about the change and update the child directories.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!