fix(installer): WiX v4 syntax fixes and add build-exe.bat

This commit is contained in:
Finessse
2026-01-12 08:21:04 +07:00
parent aab559c781
commit e277e0f413
3 changed files with 8 additions and 7 deletions
+1
View File
@@ -115,3 +115,4 @@ build/
# Local files
PLAN-*.md
config-debug.yaml
.wix/
+2
View File
@@ -0,0 +1,2 @@
@echo off
"%LOCALAPPDATA%\Programs\Inno Setup 6\ISCC.exe" /DAppVersion=0.2.9 "%~dp0proxypilot.iss"
+5 -7
View File
@@ -3,7 +3,8 @@
ProxyPilot MSI Installer (WiX v4)
Build: wix build -o ProxyPilot.msi proxypilot.wxs
-->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package
Name="ProxyPilot"
Manufacturer="ProxyPilot"
@@ -100,8 +101,8 @@
</Component>
<!-- Custom actions -->
<CustomAction Id="KillTray" Execute="deferred" Impersonate="no" Return="ignore"
ExeCommand="[SystemFolder]taskkill.exe /F /IM proxypilot-tray.exe" />
<CustomAction Id="KillTray" Directory="SystemFolder" Execute="deferred" Impersonate="no" Return="ignore"
ExeCommand="taskkill.exe /F /IM proxypilot-tray.exe" />
<InstallExecuteSequence>
<Custom Action="KillTray" Before="RemoveFiles" Condition="Installed" />
@@ -114,10 +115,7 @@
Impersonate="yes"
Return="asyncNoWait" />
<UI>
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
</UI>
<ui:WixUI Id="WixUI_Minimal" />
</Package>
</Wix>