Skip to content

Instantly share code, notes, and snippets.

@Tocchann
Created September 29, 2016 01:51
Show Gist options
  • Save Tocchann/84a11048d22438c635ffae37445cd674 to your computer and use it in GitHub Desktop.
Save Tocchann/84a11048d22438c635ffae37445cd674 to your computer and use it in GitHub Desktop.
<!--どこかに適当に定義しておく-->
<CustomAction Id="DirCA_SetProductDir" Directory="PRODUCTDIR" Value="[INSTALLDIR][ProductName]\" Execute="firstSequence"/>
<!--BrowseDlgのOKボタン-->
<Control Id="OK" Type="PushButton" X="240" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUIOK)">
<Publish Event="SetTargetPath" Value="[_BrowseProperty]">1</Publish>
<Publish Event="EndDialog" Value="Return">1</Publish>
<Publish Event="DoAction" Value="DirCA_SetProductDir">1</Publish>
</Control>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment