Skip to content

Commit 8bce964

Browse files
committed
Add shortcut
1 parent f89a061 commit 8bce964

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

Installer/Loginator/Product.wxs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<Feature Id="Application" Title="Application" Level="1" TypicalDefault="install">
2727
<ComponentGroupRef Id="ApplicationGrp"/>
2828
<ComponentGroupRef Id="ApplicationManualGrp"/>
29+
<!-- Step 3: Tell WiX to install the shortcut -->
30+
<ComponentRef Id="ApplicationShortcut" />
2931
</Feature>
3032
</Feature>
3133
</Product>
@@ -44,7 +46,24 @@
4446
<Directory Id="ProgramFilesFolder">
4547
<Directory Id="INSTALLFOLDER" Name="Loginator"/>
4648
</Directory>
49+
<!-- Step 1: Define the directory structure -->
50+
<Directory Id="ProgramMenuFolder">
51+
<Directory Id="ApplicationProgramsFolder" Name="Loginator"/>
52+
</Directory>
4753
</Directory>
4854

55+
<!-- Step 2: Add the shortcut to your installer package -->
56+
<DirectoryRef Id="ApplicationProgramsFolder">
57+
<Component Id="ApplicationShortcut" Guid="E0D99EAA-DC64-4C63-82F2-4EA4D22EC6B0">
58+
<Shortcut Id="ApplicationStartMenuShortcut"
59+
Name="Loginator"
60+
Description="The best logger there is"
61+
Target="[#filApplicationExe]"
62+
WorkingDirectory="INSTALLFOLDER"/>
63+
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
64+
<RegistryValue Root="HKCU" Key="Software\Microsoft\Loginator" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
65+
</Component>
66+
</DirectoryRef>
67+
4968
</Fragment>
5069
</Wix>

Loginator/Version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
versionCode=5
2-
versionName=1.3.8
1+
versionCode=6
2+
versionName=1.4.0

0 commit comments

Comments
 (0)