|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 4 | + <Product Id="*" |
| 5 | + Name="Covfefe" |
| 6 | + Language="1033" |
| 7 | + Version="!(bind.fileVersion.Covfefe.exe)" |
| 8 | + Manufacturer="jsm" |
| 9 | + UpgradeCode="0a24d660-a0cd-483f-9f71-6b33d7f0eed1" |
| 10 | + > |
| 11 | + |
| 12 | + <Package |
| 13 | + InstallerVersion="500" |
| 14 | + Compressed="yes" |
| 15 | + Description="Covfefe! Sleep Preventer" |
| 16 | + InstallPrivileges="limited" |
| 17 | + /> |
| 18 | + |
| 19 | + <Media Id="1" Cabinet="Covfefe.cab" EmbedCab="yes"/> |
| 20 | + |
| 21 | + <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
| 22 | + |
| 23 | + <Feature Id="ProductFeature" Title="Covfefe" Level="1"> |
| 24 | + <ComponentRef Id="Covfefe.exe" /> |
| 25 | + <ComponentRef Id="ApplicationShortcut"/> |
| 26 | + </Feature> |
| 27 | + |
| 28 | + <!-- This property defines the ALLUSERS property and sets it to blank, which indicates that this --> |
| 29 | + <!-- product will be installed per-user instead of per-machine. --> |
| 30 | + <Property Id="ALLUSERS" Secure="yes"/> |
| 31 | + <WixVariable Id="WixUILicenseRtf" Value="..\..\License.rtf" /> |
| 32 | + |
| 33 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 34 | + <Directory Id="AppDataFolder" Name="AppData"> |
| 35 | + <Directory Id="AppRootDirectory" Name="Covfefe"> |
| 36 | + </Directory> |
| 37 | + </Directory> |
| 38 | + <Directory Id="ProgramMenuFolder"> |
| 39 | + <Directory Id="ApplicationProgramsFolder" Name="Covfefe"/> |
| 40 | + </Directory> |
| 41 | + </Directory> |
| 42 | + <!--Note: Need to add a "delete all settings" option. If we delete them all unconditionally, then they will be deleted on an upgrade. A future feature would be a "delete settings" option on uninstall.--> |
| 43 | + |
| 44 | + <DirectoryRef Id="AppRootDirectory"> |
| 45 | + <Component Id="Covfefe.exe" Guid="1FC747AA-852D-41DE-B948-8A4F6D201D2C" DiskId="1"> |
| 46 | + <CreateFolder/> |
| 47 | + <File Id="covfefe.exe" Source="..\Covfefe\bin\Release\Covfefe.exe" /> |
| 48 | + <File Id="covfefe.exe.config" Source="..\Covfefe\bin\Release\Covfefe.exe.config" /> |
| 49 | + <RemoveFolder Id="RemoveAppRootDirectory" On="uninstall"/> |
| 50 | + <RegistryKey Root="HKCU" Key="Software\jsm\Covfefe"> |
| 51 | + <RegistryValue Name="Version" Value="[ProductVersion]" Type="string" KeyPath="yes"/> |
| 52 | + </RegistryKey> |
| 53 | + </Component> |
| 54 | + </DirectoryRef> |
| 55 | + <DirectoryRef Id="ApplicationProgramsFolder"> |
| 56 | + <Component Id="ApplicationShortcut" Guid="2D0EC93F-CAE7-4700-BC06-8E84FC915574"> |
| 57 | + <Shortcut Id="ApplicationStartMenuShortcut" |
| 58 | + Name="Covfefe" |
| 59 | + Description="Covfefe!" |
| 60 | + Target="[AppRootDirectory]Covfefe.exe" |
| 61 | + WorkingDirectory="INSTALLFOLDER" |
| 62 | + /> |
| 63 | + <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall"/> |
| 64 | + <RegistryValue Root="HKCU" Key="Software\jsm\Covfefe" Name="installed" Type="integer" Value="1" KeyPath="yes" /> |
| 65 | + </Component> |
| 66 | + |
| 67 | + </DirectoryRef> |
| 68 | + |
| 69 | + <!--for launching Covfefe when the installation completes--> |
| 70 | + <UI> |
| 71 | + <UIRef Id="WixUI_Minimal" /> |
| 72 | + <Publish Dialog="ExitDialog" |
| 73 | + Control="Finish" |
| 74 | + Event="DoAction" |
| 75 | + Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1</Publish> |
| 76 | + </UI> |
| 77 | + <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Covfefe!" /> |
| 78 | + <Property Id="WixShellExecTarget" Value="[#covfefe.exe]"/> |
| 79 | + <!--<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes"/>--> |
| 80 | + <CustomAction Id="LaunchApplication" FileKey="covfefe.exe" ExeCommand="--ShowSettings" Impersonate="yes" Return="asyncNoWait" Execute="immediate"/> |
| 81 | + </Product> |
| 82 | +</Wix> |
0 commit comments