WixUI_Mondo and WixUI_InstallDir

被刻印的时光 ゝ 提交于 2020-01-25 00:05:06

问题


Is it possible to combine WixUI_Mondo and WixUI_InstallDir? I need a dialog where the user is able to change the destination folder then proceed to selecting instalation type. Please help, I am new to Wix toolset. Thanks!


回答1:


Mondo: I might be missing something essential you need here, but the Mondo dialog set does have a dialog like that - 3rd in sequence, select "Custom". Maybe this is all you need?:

For the Browse... button to be work (not be grayed out) you must set the feature directory to be configurable. See that link - some way down the page - or minimal markup at the bottom here:

<!-- A configurable directory feature -->
<Feature Id="MainApplication" Title="MainApplication" ConfigurableDirectory="MYCUSTOMDIR">
        <!-- your stuff here -->
</Feature>

And elsewhere in the WiX source, the actual configurable directory:

<Directory Id="MYCUSTOMDIR">
     <!-- Mock-up GUID that MUST be changed, custom target directories do not function with auto-GUIDs -->
     <Component Id="MyFile.exe" Guid="{00000000-0000-0000-0000-000000000000}" Feature="FeatureDirectory">
         <File Source="C:\SourceControl\MyFile.exe" />
     </Component>    
</Directory>


来源:https://stackoverflow.com/questions/56274374/wixui-mondo-and-wixui-installdir

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