GstPipelineStudio/installer/wix/gps.wxs
2023-09-28 16:45:01 +02:00

67 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Language="1033"
Manufacturer="dabrain34"
Name="GstPipelineStudio"
UpgradeCode="$(var.GPSUpgradeCode)"
Version="$(var.GPSVersion)">
<Package InstallScope="perMachine" Compressed="yes" />
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<MediaTemplate EmbedCab="yes" />
<UIRef Id="WixUI_Mondo" />
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenuFolder">
<Directory Id="GPSAppShortcuts" Name="GStreamer Pipeline Studio" />
</Directory>
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="GstPipelineStudio">
<Component Id="ProductComponent">
<File KeyPath="yes" Source="gps.bat">
<Shortcut Id="GPSAppShortcut"
Directory="GPSAppShortcuts"
Name="GPSApp"
WorkingDirectory="INSTALLFOLDER"
Advertise="yes"
Icon="icon.ico"
IconIndex="0"
>
</Shortcut>
</File>
<RemoveFolder Id="DeleteTheGPSAppShortcut"
Directory="GPSAppShortcuts"
On="uninstall" />
</Component>
</Directory>
</Directory>
</Directory>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
<Icon Id="icon.ico" SourceFile="icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<Component Id="UninstallShortcut" Guid="*" Directory="GPSAppShortcuts">
<Shortcut Id="UninstallGPS"
Name="Uninstall GPS App"
Description="Uninstalls GPS App"
Target="[System64Folder]msiexec.exe"
Arguments="/x [ProductCode]" />
<RegistryValue Root="HKCU" Key="Software\GPS\GPSApp" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
<Feature Id="GPSFeature">
<ComponentRef Id="ProductComponent" />
<ComponentGroupRef Id="_gstreamer" />
<ComponentGroupRef Id="_gstreamer_plugins" />
<ComponentGroupRef Id="_gstreamer_share" />
<ComponentRef Id="UninstallShortcut" />
</Feature>
</Product>
</Wix>