XmlParser/app/SetupWiX/Product.wxs
Jonathan Jenne bbc0fb6bd4 v1.3.0.0
2017-07-28 11:05:39 +02:00

124 lines
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="DPMA XML Parser" Language="1031" Version="1.1.2.0" Manufacturer="Digital Data" UpgradeCode="f1d2c203-0827-4c5c-a3ad-7bfccd3b6092" Codepage="1252">
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Description="Digital Data DPMA XML Parser Setup" Manufacturer="Digital Data" Languages="1031" />
<!-- Nicht entfernen! -->
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' />
<Property Id='DiskPrompt' Value="DPMA XML Parser Install" />
<!-- UPGRADE -->
<!--
Bei neuer Version muss die Versionsnummer unter
My Project >> Anwendung >> Assemblyinformationen und unter Product/@Version geändert werden.
Hier die Assemblyversion UND Dateiversion ändern.
NICHT den UpdateCode ändern!
Darf sich NIE MEHR ändern!
-->
<MajorUpgrade
AllowDowngrades="no"
AllowSameVersionUpgrades="no"
DowngradeErrorMessage="Eine neuere Version von [ProductName] ist bereits installiert. Das Setup wird beendet."
/>
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
<Upgrade Id="{413c25c2-7eb2-421c-a86e-01bcc5653e57}">
<UpgradeVersion
Minimum="1.0.0.0" Maximum="99.0.0.0"
Property="PREVIOUSVERSIONSINSTALLED"
IncludeMinimum="yes" IncludeMaximum="no" />
</Upgrade>
<!-- UPGRADE END -->
<!-- Legt das Icon fest -->
<Icon Id="DpmaXmlParser.exe" SourceFile="DpmaXmlParser.exe" />
<!-- Zeige Icon in Systemsteuerung > Programme entfernen -->
<Property Id="ARPPRODUCTICON" Value="DpmaXmlParser.exe" />
<!-- Liest den Installationsort über die Registry aus -->
<Property Id="APPLICATIONFOLDER">
<RegistrySearch Key="Software\[Manufacturer]\[ProductName]" Root="HKCU" Type="raw" Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" />
</Property>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="Pfiles">
<Directory Id="DD" Name="Digital Data">
<!-- Speichert den Installationsort in der Registry -->
<Component Id="RegistryEntries" Guid="{333FA451-7EC5-4E85-90D7-BF793C199DF0}">
<RegistryKey Root="HKCU" Key="Software\[Manufacturer]\[ProductName]">
<RegistryValue Type="string" Name="Path" Value="[DD]" KeyPath="yes" />
</RegistryKey>
</Component>
<Directory Id="INSTALLDIR" Name="DPMA Xml Parser">
<Component Id="MainExecutable" Guid="{ED6DC3D2-7E7E-41C2-9AFA-A7C7D9B12012}">
<File Id="Executable" Name="DpmaXmlParser.exe" Source="DpmaXmlParser.exe" KeyPath="yes">
<Shortcut Id="StartMenuShortcut" Directory="ProgramMenuDir" Name="DPMA Xml Parser" WorkingDirectory="INSTALLDIR" Icon="DpmaXmlParser.exe" IconIndex="0" Advertise="yes" />
<Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="DPMA Xml Parser" WorkingDirectory="INSTALLDIR" Icon="DpmaXmlParser.exe" IconIndex="0" Advertise="yes" />
</File>
<File Id="ExeConfigExample" Name="DpmaXmlParser.exe.config.example" Source="DpmaXmlParser.exe.config.example" />
<!-- Programmordner bei Deinstallation entfernen-->
<util:RemoveFolderEx Id="RemoveApplicationFolder" On="uninstall" Property="APPLICATIONFOLDER" />
</Component>
<Component Id="NLog" Guid="{9D6E04C5-4F61-42DD-A0A2-236981A0FE3A}">
<File Id="NLog.dll" Name="NLog.dll" Source="NLog.dll" KeyPath="yes" />
<File Id="NLog.config" Name="NLog.config" Source="NLog.config" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="DPMA XML Parser">
<Component Id="ProgramMenuDir" Guid="{84EA48C2-7E72-4C49-8EC2-3BA1517930D3}">
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
<!-- Wird bei Deinstallation gelöscht -->
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="[DD]" Name="Path" />
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id="Complete" Level="1">
<ComponentRef Id="MainExecutable" />
<ComponentRef Id="NLog" />
<ComponentRef Id="RegistryEntries"/>
<ComponentRef Id="ProgramMenuDir"/>
</Feature>
<!-- Legt das Standard-Installationsverzeichnis fest-->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<!-- OBERFLÄCHE -->
<UI>
<UIRef Id="WixUI_InstallDir" />
<UIRef Id="WixUI_ErrorProgressText" />
<Publish Dialog="WelcomeDlg"
Control="Next"
Event="NewDialog"
Value="InstallDirDlg"
Order="2">1</Publish>
<Publish Dialog="InstallDirDlg"
Control="Back"
Event="NewDialog"
Value="WelcomeDlg"
Order="2">1</Publish>
</UI>
<!-- OBERFLÄCHE END -->
</Product>
</Wix>