|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
3 |
| - <Product Id="*" Name="MyApp" Language="1033" Version="1.0.0" Manufacturer="MyCompany" UpgradeCode="PUT-GUID-HERE"> |
| 3 | + <Product Id="*" Name="PixelArtTool" Language="1033" Version="1.0.0.0" |
| 4 | + Manufacturer="Someone" UpgradeCode="cb24bedf-e361-4f25-9a06-ac84ce5d6f5c"> |
4 | 5 | <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
5 |
| - <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
6 | 6 |
|
| 7 | + <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
7 | 8 | <MediaTemplate EmbedCab="yes" />
|
8 | 9 |
|
9 |
| - <Feature Id="ProductFeature" Title="MyApp" Level="1"> |
10 |
| - <ComponentGroupRef Id="ProductComponents" /> |
11 |
| - </Feature> |
| 10 | + <UIRef Id="WixUI_Mondo" /> |
12 | 11 |
|
13 |
| - <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /> |
14 |
| - <UI> |
15 |
| - <UIRef Id="WixUI_Minimal" /> |
16 |
| - </UI> |
17 |
| - </Product> |
| 12 | + <Feature Id="Core" Title="Core" Level="1" ConfigurableDirectory="INSTALLFOLDER" /> |
18 | 13 |
|
19 |
| - <Fragment> |
20 | 14 | <Directory Id="TARGETDIR" Name="SourceDir">
|
21 | 15 | <Directory Id="ProgramFilesFolder">
|
22 |
| - <Directory Id="INSTALLFOLDER" Name="MyApp" /> |
| 16 | + <Directory Id="INSTALLFOLDER" Name="PixelArtTool"> |
| 17 | + <Component Feature="Core"> |
| 18 | + <File Source="%APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\PixelArtTool.exe" /> |
| 19 | + |
| 20 | + <!-- Start menu shortcut --> |
| 21 | + <Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="PixelArtTool" Icon="IPixelArtTool\Resources\Icons\appicon.ico" Advertise="yes" /> |
| 22 | + |
| 23 | + <!-- Remove the shortcut on uninstall --> |
| 24 | + <RemoveFolder Id="ProgramMenuFolder" Directory="ProgramMenuFolder" On="uninstall" /> |
| 25 | + <!-- <RegistryValue Root="HKCU" Key="Software\Microsoft\PixelArtTool" Name="installed" Type="integer" Value="1" KeyPath="yes" /> --> |
| 26 | + |
| 27 | + </Component> |
| 28 | + </Directory> |
| 29 | + </Directory> |
| 30 | + |
| 31 | + <Directory Id="ProgramMenuFolder" Name="Programs"> |
| 32 | + <Directory Id="ApplicationProgramsFolder" Name="01_HelloWorldInstallerUpgradable" /> |
23 | 33 | </Directory>
|
24 | 34 | </Directory>
|
25 |
| - </Fragment> |
| 35 | + |
| 36 | + <Icon Id="IconFile.ico" SourceFile="PixelArtTool\Resources\Icons\appicon.ico" /> |
| 37 | + |
| 38 | + <InstallExecuteSequence> |
| 39 | + <Custom Action="CleanupStartMenuFolder" Before="RemoveFiles" /> |
| 40 | + </InstallExecuteSequence> |
| 41 | + |
| 42 | + </Product> |
26 | 43 |
|
27 |
| - <Fragment> |
28 |
| - <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
29 |
| - <!-- Add your application files here --> |
30 |
| - <Component Id="MyAppExecutable" Guid="PUT-GUID-HERE"> |
31 |
| - <File Source="path-to-your-application-executable" /> |
32 |
| - </Component> |
33 |
| - </ComponentGroup> |
34 |
| - </Fragment> |
35 | 44 | </Wix>
|
0 commit comments