简体   繁体   中英

WixUI_Mondo and WixUI_InstallDir

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!

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM