Add WixUIExtension for enhanced installation UI in WindowsBuilder

- Included WixUIExtension in candle and light commands to enable UI features.
- Added references for minimal and error progress UI dialogs in the WiX XML configuration.
This commit is contained in:
claudi 2026-02-19 09:12:20 +01:00
parent f9cfb9f558
commit aeed311f53
5 changed files with 2881 additions and 2871 deletions

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,10 @@
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" /> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
<Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" /> <Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" />
<!-- Installation UI dialogs -->
<UIRef Id="WixUI_Minimal" />
<UIRef Id="WixUI_ErrorProgressText" />
<Feature Id="ProductFeature" Title="WebDrop Bridge" Level="1"> <Feature Id="ProductFeature" Title="WebDrop Bridge" Level="1">
<ComponentGroupRef Id="AppFiles" /> <ComponentGroupRef Id="AppFiles" />
<ComponentRef Id="ProgramMenuShortcut" /> <ComponentRef Id="ProgramMenuShortcut" />

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -248,6 +248,7 @@ class WindowsBuilder:
# Run candle compiler - make sure to use correct source directory # Run candle compiler - make sure to use correct source directory
candle_cmd = [ candle_cmd = [
str(candle_exe), str(candle_exe),
"-ext", "WixUIExtension",
f"-dDistDir={self.dist_dir}", f"-dDistDir={self.dist_dir}",
f"-dSourceDir={self.dist_dir}\\WebDropBridge", # Set SourceDir for Heat-generated files f"-dSourceDir={self.dist_dir}\\WebDropBridge", # Set SourceDir for Heat-generated files
"-o", str(self.build_dir) + "\\", "-o", str(self.build_dir) + "\\",
@ -266,6 +267,7 @@ class WindowsBuilder:
# Link MSI - include both obj files if harvest was successful # Link MSI - include both obj files if harvest was successful
light_cmd = [ light_cmd = [
str(light_exe), str(light_exe),
"-ext", "WixUIExtension",
"-b", str(self.dist_dir / "WebDropBridge"), # Base path for source files "-b", str(self.dist_dir / "WebDropBridge"), # Base path for source files
"-o", str(msi_output), "-o", str(msi_output),
str(wix_obj), str(wix_obj),
@ -306,6 +308,10 @@ class WindowsBuilder:
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" /> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
<Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" /> <Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" />
<!-- Installation UI dialogs -->
<UIRef Id="WixUI_Minimal" />
<UIRef Id="WixUI_ErrorProgressText" />
<Feature Id="ProductFeature" Title="WebDrop Bridge" Level="1"> <Feature Id="ProductFeature" Title="WebDrop Bridge" Level="1">
<ComponentGroupRef Id="AppFiles" /> <ComponentGroupRef Id="AppFiles" />
<ComponentRef Id="ProgramMenuShortcut" /> <ComponentRef Id="ProgramMenuShortcut" />