<?xml version='1.0' encoding='windows-1252'?>
<?if $(env.Platform) = x64 ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product
Id='*'
Name='Tp-Note'
UpgradeCode='660A6875-A136-4728-9586-C10143F932FB'
Manufacturer='Jens Getreu'
Language='1033'
Codepage='1252'
Version='$(env.Version)'>
<Package Id='*'
Keywords='Installer'
Description='Fast note taking with templates and filename synchronization'
Manufacturer='Jens Getreu'
InstallerVersion='450'
Languages='1033'
Compressed='yes'
InstallScope='perMachine'
SummaryCodepage='1252'
Platform='$(env.Platform)'/>
<MajorUpgrade
Schedule='afterInstallInitialize'
DowngradeErrorMessage='A newer version of Tp-Note is already installed. Setup will now exit.'/>
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
<Property Id='DiskPrompt' Value='Tp-Note Installation'/>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
<Directory Id='APPLICATIONFOLDER' Name='tpnote'>
<Directory Id='Bin' Name='bin'>
<Component Id='Path' Guid='B51FCEB6-3528-4B74-B525-19A320C1F3AD' Win64='$(var.Win64)' KeyPath='yes'>
<Environment
Id='PATH'
Name='PATH'
Value='[Bin]'
Permanent='no'
Part='last'
Action='set'
System='yes'/>
</Component>
<Component Id='binary0' Guid='A8243A93-6019-4637-8173-03869B47EDC2' Win64='$(var.Win64)'>
<File
Id='exe0'
Name='tpnote.exe'
DiskId='1'
Source='tpnote.exe'
KeyPath='yes'/>
<RegistryKey Root='HKCR'
Key='Directory\Background\shell\New Tp-Note\command'>
<RegistryValue Type='string' Value='C:\Program Files\tpnote\bin\tpnote.exe' />
</RegistryKey>
<RegistryKey Root='HKCR'
Key='*\OpenWithList\tpnote.exe'>
<RegistryValue Type='string' Value=''/>
</RegistryKey>
<ProgId Id="application.tpnote" Description="Tp-Note data files" Advertise="yes" Icon="TpNoteLogo.ico">
<Extension Id="md" ContentType="application/text">
<Verb Id="open" Sequence='10' Command="open" Argument=""%1""/>
</Extension>
<Extension Id="txt" ContentType="application/text">
<Verb Id="open" Sequence='10' Command="open" Argument=""%1""/>
</Extension>
<Extension Id ="rst" ContentType="application/text">
<Verb Id="open" Sequence='10' Command="open" Argument=""%1""/>
</Extension>
</ProgId>
<RegistryKey Root='HKCR' Key='.md'>
<RegistryValue Value='tpnote.mdfile' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='.txt'>
<RegistryValue Value='tpnote.txtfile' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='.rst'>
<RegistryValue Value='tpnote.rstfile' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.mdfile'>
<RegistryValue Value='Tp-Note file' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.mdfile\DefaultIcon'>
<RegistryValue Value='[APPLICATIONFOLDER]bin\tpnote.exe,1' Type ='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.txtfile'>
<RegistryValue Value='Tp-Note file' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.txtfile\DefaultIcon'>
<RegistryValue Value='[APPLICATIONFOLDER]bin\tpnote.exe,1' Type ='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.rstfile'>
<RegistryValue Value='Tp-Note file' Type='string' />
</RegistryKey>
<RegistryKey Root='HKCR' Key='tpnote.rstfile\DefaultIcon'>
<RegistryValue Value='[APPLICATIONFOLDER]bin\tpnote.exe,1' Type ='string' />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\edit.tpnote.exe">
<RegistryValue Value="Edit Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\edit.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\view.tpnote.exe">
<RegistryValue Value="View Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\view.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "-v" "-n" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\export.tpnote.exe">
<RegistryValue Value="Export Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.md\shell\export.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "--export=" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\edit.tpnote.exe">
<RegistryValue Value="Edit Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\edit.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\view.tpnote.exe">
<RegistryValue Value="View Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\view.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "-v" "-n" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\export.tpnote.exe">
<RegistryValue Value="Export Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.txt\shell\export.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "--export=" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\edit.tpnote.exe">
<RegistryValue Value="Edit Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\edit.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\view.tpnote.exe">
<RegistryValue Value="View Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\view.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "-v" "-n" "%1"" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\export.tpnote.exe">
<RegistryValue Value="Export Tp-Note" Type="string" />
</RegistryKey>
<RegistryKey Root="HKLM"
Key="SOFTWARE\Classes\SystemFileAssociations\.rst\shell\export.tpnote.exe\command">
<RegistryValue Value=""[APPLICATIONFOLDER]bin\tpnote.exe" "--export=" "%1"" Type="string" />
</RegistryKey>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature
Id='Binaries'
Title='Application'
Description='Installs all binaries and the license.'
Level='1'
ConfigurableDirectory='APPLICATIONFOLDER'
AllowAdvertise='no'
Display='expand'
Absent='disallow'>
<ComponentRef Id='binary0'/>
<Feature
Id='Environment'
Title='PATH Environment Variable'
Description='Add the install location of the Tp-Note executable to the PATH system environment variable. This allows the [ProductName] executable to be called from any location.'
Level='1'
Absent='allow'>
<ComponentRef Id='Path'/>
</Feature>
</Feature>
<SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/>
<Icon Id='TpNoteLogo.ico' SourceFile='tpnote.ico'/>
<Property Id='ARPPRODUCTICON' Value='TpNoteLogo.ico' />
<Property Id='ARPHELPLINK' Value='https://blog.getreu.net/projects/tp-note/tpnote--manpage.html'/>
</Product>
</Wix>