73 lines
3.4 KiB
XML
73 lines
3.4 KiB
XML
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
<?if $(var.Arch) = arm64 ?>
|
|
<?define UpgradeCode = "2E0ADFC1-2072-4457-8C50-ECFCEDECAD73" ?>
|
|
<?define PlatformProgramFiles = "ProgramFiles64Folder" ?>
|
|
<?else?>
|
|
<?define UpgradeCode = "65393C7D-17DC-4B9F-9D0B-F9911092C449" ?>
|
|
<?define PlatformProgramFiles = "ProgramFiles64Folder" ?>
|
|
<?endif?>
|
|
|
|
<Package Name="Paca"
|
|
Manufacturer="Paca"
|
|
Version="$(var.Version)"
|
|
UpgradeCode="$(var.UpgradeCode)"
|
|
Scope="perMachine">
|
|
|
|
<SummaryInformation Description="Paca High Performance Video & Media Downloader" />
|
|
<MajorUpgrade DowngradeErrorMessage="A newer version of Paca is already installed." />
|
|
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
|
|
|
<Icon Id="PacaIcon" SourceFile="$(var.SourceDir)\src\Paca.App\Assets\paca.ico" />
|
|
<Property Id="ARPPRODUCTICON" Value="PacaIcon" />
|
|
<Property Id="ARPHELPLINK" Value="https://paca.pages.dev" />
|
|
<Property Id="ARPURLINFOABOUT" Value="https://paca.pages.dev" />
|
|
|
|
<StandardDirectory Id="$(var.PlatformProgramFiles)">
|
|
<Directory Id="INSTALLFOLDER" Name="Paca" />
|
|
</StandardDirectory>
|
|
|
|
<StandardDirectory Id="ProgramMenuFolder">
|
|
<Component Id="ApplicationStartMenuShortcut" Guid="B6E09736-1215-46D2-95F8-A5DEBC0F58E9">
|
|
<Shortcut Id="StartMenuShortcut"
|
|
Name="Paca"
|
|
Description="Paca - High Performance Video & Media Downloader"
|
|
Target="[INSTALLFOLDER]Paca.exe"
|
|
WorkingDirectory="INSTALLFOLDER"
|
|
Icon="PacaIcon" />
|
|
<RemoveFolder Id="CleanUpStartMenuShortCut" On="uninstall" />
|
|
<RegistryValue Root="HKCU" Key="Software\Paca" Name="startMenuShortcut" Type="integer" Value="1" KeyPath="yes" />
|
|
</Component>
|
|
</StandardDirectory>
|
|
|
|
<StandardDirectory Id="DesktopFolder">
|
|
<Component Id="ApplicationDesktopShortcut" Guid="6A478C21-6A79-4B07-B5BD-D7FE80D9F362">
|
|
<Shortcut Id="DesktopShortcut"
|
|
Name="Paca"
|
|
Description="Paca - High Performance Video & Media Downloader"
|
|
Target="[INSTALLFOLDER]Paca.exe"
|
|
WorkingDirectory="INSTALLFOLDER"
|
|
Icon="PacaIcon" />
|
|
<RegistryValue Root="HKCU" Key="Software\Paca" Name="desktopShortcut" Type="integer" Value="1" KeyPath="yes" />
|
|
</Component>
|
|
</StandardDirectory>
|
|
|
|
<!-- Custom URL Scheme: paca:// -->
|
|
<Component Id="PacaProtocolHandler" Guid="D3F14825-4C3D-4A2B-896B-85FE6AE85112" Directory="INSTALLFOLDER">
|
|
<RegistryKey Root="HKCU" Key="Software\Classes\paca">
|
|
<RegistryValue Type="string" Value="URL:Paca Protocol" />
|
|
<RegistryValue Name="URL Protocol" Type="string" Value="" />
|
|
<RegistryKey Key="shell\open\command">
|
|
<RegistryValue Type="string" Value=""[INSTALLFOLDER]Paca.exe" "%1"" />
|
|
</RegistryKey>
|
|
</RegistryKey>
|
|
<RegistryValue Root="HKCU" Key="Software\Paca" Name="protocolHandler" Type="integer" Value="1" KeyPath="yes" />
|
|
</Component>
|
|
|
|
<Feature Id="MainFeature" Title="Paca" Level="1">
|
|
<Files Directory="INSTALLFOLDER" Include="$(var.PublishDir)\**" />
|
|
<ComponentRef Id="ApplicationStartMenuShortcut" />
|
|
<ComponentRef Id="ApplicationDesktopShortcut" />
|
|
<ComponentRef Id="PacaProtocolHandler" />
|
|
</Feature>
|
|
</Package>
|
|
</Wix>
|