Skip to content

Commit 4ea7e2f

Browse files
committed
Remove Prizrak-Box.exe duplication from Product.wxs
Проблема: MSI всё ещё 393 MB вместо ожидаемых 160 MB Причина: Prizrak-Box.exe (~100-120 MB) включался ДВАЖДЫ: 1. Через MainExecutable Component в Product.wxs (вручную) 2. Через heat.exe в ApplicationFiles ComponentGroup (автоматически) Решение: - Удалён File элемент из MainExecutable Component - Component переименован в AppRegistration - Теперь содержит только Registry entries (протокол handler, app metadata) - KeyPath перенесён на InstallPath registry value - Prizrak-Box.exe включается ТОЛЬКО через heat.exe Изменения: - Component MainExecutable → AppRegistration (только Registry) - Feature MainApplication: ComponentRef MainExecutable → AppRegistration - Удалено дублирование ~100-120 MB Ожидаемый размер MSI после этого: ~160-170 MB (как ZIP) https://claude.ai/code/session_01VUrZHjfJqKPGnULwyktVjc
1 parent 53dd121 commit 4ea7e2f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

installer/wix/Product.wxs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@
6262
<Directory Id="DesktopFolder" Name="Desktop" />
6363
</Directory>
6464

65-
<!-- Main Application Component -->
65+
<!-- Protocol Handler and App Registration -->
6666
<DirectoryRef Id="INSTALLDIR">
67-
<Component Id="MainExecutable" Guid="12345678-1234-1234-1234-123456789abc" Win64="$(var.Win64)">
68-
<File Id="PrizrakBoxEXE"
69-
Source="$(var.SourceDir)\Prizrak-Box.exe"
70-
KeyPath="yes"
71-
Checksum="yes" />
72-
67+
<Component Id="AppRegistration" Guid="12345678-1234-1234-1234-123456789abc" Win64="$(var.Win64)">
7368
<!-- Registry for Protocol Handler prizrak-box:// -->
7469
<RegistryKey Root="HKCR" Key="prizrak-box">
7570
<RegistryValue Type="string" Value="URL:Prizrak-Box Protocol" />
@@ -88,7 +83,7 @@
8883
Name="InstallPath"
8984
Type="string"
9085
Value="[INSTALLDIR]"
91-
KeyPath="no" />
86+
KeyPath="yes" />
9287

9388
<RegistryValue Root="HKLM"
9489
Key="Software\$(var.Manufacturer)\$(var.ProductName)"
@@ -193,7 +188,7 @@
193188
ConfigurableDirectory="INSTALLDIR"
194189
AllowAdvertise="no"
195190
Absent="disallow">
196-
<ComponentRef Id="MainExecutable" />
191+
<ComponentRef Id="AppRegistration" />
197192
<ComponentRef Id="DesktopShortcut" />
198193
<ComponentRef Id="StartMenuShortcut" />
199194
<ComponentGroupRef Id="ApplicationFiles" />

0 commit comments

Comments
 (0)