|
83 | 83 | Schedule='afterInstallInitialize'
|
84 | 84 | DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>
|
85 | 85 |
|
| 86 | + <Icon Id='SetupIcon' SourceFile='.\icons\icon.ico'/> |
| 87 | + |
86 | 88 | <Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
|
87 | 89 | <Property Id='DiskPrompt' Value='serial-monitor-rust Installation'/>
|
88 | 90 |
|
|
126 | 128 | </Directory>
|
127 | 129 | </Directory>
|
128 | 130 | </Directory>
|
129 |
| - </Directory> |
| 131 | + <Directory Id="ProgramMenuFolder"> |
| 132 | + <Directory Id="ApplicationProgramsFolder" Name="Serial Monitor"/> |
| 133 | + </Directory> |
| 134 | + <Directory Id="DesktopFolder" Name="Desktop"> |
| 135 | + </Directory> </Directory> |
| 136 | +<DirectoryRef Id="ApplicationProgramsFolder"> |
| 137 | + <Component Id="AppStart" Guid="d5886d8d-009d-4468-9db3-1ebc72f7c201"> |
| 138 | + <Shortcut Id="AppStartShortcut" |
| 139 | + Name="Serial Monitor" |
| 140 | + Description="Serial Monitor and Plotter written in rust." |
| 141 | + Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe" |
| 142 | + WorkingDirectory="APPLICATIONROOTDIRECTORY" |
| 143 | + Icon="SetupIcon"/> |
| 144 | + <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> |
| 145 | + <RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="StartShortcut" Type="integer" Value="1" KeyPath="yes"/> |
| 146 | + </Component> |
| 147 | + </DirectoryRef> |
130 | 148 |
|
| 149 | + <DirectoryRef Id="DesktopFolder"> |
| 150 | + <Component Id="AppDesk" Guid="e7261bca-c8c3-4f7f-be81-eb3a7470bc7d"> |
| 151 | + <Shortcut Id="AppDeskShortcut" |
| 152 | + Name="Serial Monitor" |
| 153 | + Description="Serial Monitor and Plotter written in rust." |
| 154 | + Target="[APPLICATIONFOLDER]bin\serial-monitor-rust.exe" |
| 155 | + WorkingDirectory="APPLICATIONROOTDIRECTORY" |
| 156 | + Icon="SetupIcon"/> |
| 157 | + <RemoveFolder Id="DesktopFolder" On="uninstall"/> |
| 158 | + <RegistryValue Root="HKCU" Key="Software\SerialMonitor" Name="DeskShortcut" Type="integer" Value="1" KeyPath="yes"/> |
| 159 | + </Component> |
| 160 | + </DirectoryRef> |
131 | 161 | <Feature
|
132 | 162 | Id='Binaries'
|
133 | 163 | Title='Application'
|
|
155 | 185 | </Feature>
|
156 | 186 | </Feature>
|
157 | 187 |
|
| 188 | + <Feature |
| 189 | + Id='StartShort' |
| 190 | + Title='Start menu shortcut' |
| 191 | + Description='Add a shortcut to the start menu' |
| 192 | + Level='1' |
| 193 | + AllowAdvertise='no' |
| 194 | + Display='expand' |
| 195 | + Absent='disallow'> |
| 196 | + |
| 197 | + <ComponentRef Id="AppStart" /> |
| 198 | + </Feature> |
| 199 | + |
| 200 | + <Feature |
| 201 | + Id='DeskShort' |
| 202 | + Title='Desktop shortcut' |
| 203 | + Description='Add a shortcut to the desktop' |
| 204 | + Level='1' |
| 205 | + AllowAdvertise='no' |
| 206 | + Display='expand' |
| 207 | + Absent='disallow'> |
| 208 | + |
| 209 | + <ComponentRef Id="AppDesk" /> |
| 210 | + </Feature> |
| 211 | + |
158 | 212 | <SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
|
159 | 213 |
|
160 |
| - |
| 214 | + |
161 | 215 | <!--
|
162 | 216 | Uncomment the following `Icon` and `Property` tags to change the product icon.
|
163 | 217 |
|
164 | 218 | The product icon is the graphic that appears in the Add/Remove
|
165 | 219 | Programs control panel for the application.
|
166 | 220 | -->
|
167 |
| - <!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>--> |
168 |
| - <!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />--> |
| 221 | + <Icon Id='ProductICO' SourceFile='.\icons\icon.ico'/> |
169 | 222 |
|
170 | 223 | <Property Id='ARPHELPLINK' Value='https://github.com/hacknus/serial-monitor-rust'/>
|
171 | 224 |
|
|
0 commit comments