Skip to content

Commit c67d984

Browse files
Fix duplicate component GUID by simplifying to single Files harvest with separate shortcut
Co-authored-by: danielchalmers <7112040+danielchalmers@users.noreply.github.com>
1 parent e2ece81 commit c67d984

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

Package.wxs

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,17 @@
88
<MajorUpgrade DowngradeErrorMessage="A newer version is already installed." />
99
<MediaTemplate EmbedCab="yes" />
1010

11-
<Feature Id="MainFeature">
12-
<ComponentGroupRef Id="MainExecutable" />
13-
<ComponentGroupRef Id="HarvestedFiles" />
14-
</Feature>
15-
1611
<StandardDirectory Id="ProgramFiles6432Folder">
17-
<Directory Id="INSTALLFOLDER" Name="SentryReplay" />
12+
<Directory Id="INSTALLFOLDER" Name="SentryReplay">
13+
<Files Include="*" />
14+
</Directory>
1815
</StandardDirectory>
19-
</Package>
20-
21-
<Fragment>
22-
<ComponentGroup Id="MainExecutable" Directory="INSTALLFOLDER">
16+
17+
<StandardDirectory Id="ProgramMenuFolder">
2318
<Component>
24-
<File Source="TeslaCam.exe">
25-
<Shortcut Directory="ProgramMenuFolder" Name="Sentry Replay" WorkingDirectory="INSTALLFOLDER" />
26-
</File>
19+
<Shortcut Name="Sentry Replay" Target="[INSTALLFOLDER]TeslaCam.exe" WorkingDirectory="INSTALLFOLDER" />
20+
<RegistryValue Root="HKCU" Key="Software\SentryReplay" Name="installed" Type="integer" Value="1" KeyPath="yes" />
2721
</Component>
28-
</ComponentGroup>
29-
</Fragment>
30-
31-
<Fragment>
32-
<ComponentGroup Id="HarvestedFiles" Directory="INSTALLFOLDER">
33-
<Files Include="*" />
34-
</ComponentGroup>
35-
</Fragment>
22+
</StandardDirectory>
23+
</Package>
3624
</Wix>

0 commit comments

Comments
 (0)