Skip to content

Commit d1edfa6

Browse files
Fix Windows installer WiX XML structure
- Move ProgramMenuFolder inside TARGETDIR (fixes CNDL0205 error) - Fix WorkingDirectory attribute to use INSTALLFOLDER - Properly reference all components in Feature - Fix directory structure to comply with WiX requirements
1 parent c5f8a02 commit d1edfa6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build-installers.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,35 @@ jobs:
5050
<Feature Id="ProductFeature" Title="Digstore Min" Level="1">
5151
<ComponentGroupRef Id="ProductComponents" />
5252
<ComponentRef Id="Path" />
53+
<ComponentRef Id="ProgramMenuDir" />
5354
</Feature>
5455
5556
<Directory Id="TARGETDIR" Name="SourceDir">
5657
<Directory Id="ProgramFilesFolder">
5758
<Directory Id="INSTALLFOLDER" Name="Digstore" />
5859
</Directory>
60+
<Directory Id="ProgramMenuFolder" Name="Programs">
61+
<Directory Id="ProgramMenuDir" Name="Digstore Min" />
62+
</Directory>
5963
</Directory>
6064
6165
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
6266
<Component Id="MainExecutable">
6367
<File Id="digstore.exe" Source="..\..\target\release\digstore.exe" KeyPath="yes">
6468
<Shortcut Id="startmenuDigstore" Directory="ProgramMenuDir" Name="Digstore Min"
65-
WorkingDirectory="INSTALLDIR" Icon="digstore.exe" IconIndex="0" Advertise="yes" />
69+
WorkingDirectory="INSTALLFOLDER" Icon="digstore.exe" IconIndex="0" Advertise="yes" />
6670
</File>
6771
</Component>
6872
</ComponentGroup>
6973
70-
<Component Id="Path" Guid="B3F5C8D9-E2B1-F4A6-C9D8-E7F2A5B8C1D5" Directory="TARGETDIR">
74+
<Component Id="Path" Guid="B3F5C8D9-E2B1-F4A6-C9D8-E7F2A5B8C1D5" Directory="INSTALLFOLDER">
7175
<Environment Id="PATH" Name="PATH" Value="[INSTALLFOLDER]" Permanent="no" Part="last" Action="set" System="yes" />
7276
</Component>
7377
74-
<Directory Id="ProgramMenuFolder" Name="Programs">
75-
<Directory Id="ProgramMenuDir" Name="Digstore Min">
76-
<Component Id="ProgramMenuDir" Guid="C3F5C8D9-E2B1-F4A6-C9D8-E7F2A5B8C1D6">
77-
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
78-
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" KeyPath="yes" />
79-
</Component>
80-
</Directory>
81-
</Directory>
78+
<Component Id="ProgramMenuDir" Guid="C3F5C8D9-E2B1-F4A6-C9D8-E7F2A5B8C1D6" Directory="ProgramMenuDir">
79+
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
80+
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" KeyPath="yes" />
81+
</Component>
8282
8383
<Icon Id="digstore.exe" SourceFile="..\..\target\release\digstore.exe" />
8484
</Product>

0 commit comments

Comments
 (0)