SymphonyElectron/installer/win/WixSharpToolset/Samples/Shortcuts (advertised)/setup.wxs
2020-08-21 08:25:55 +02:00

98 lines
4.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="6fe30b47-2577-43ad-9095-1861ca25889c" Name="My Product" Language="1033" Codepage="Windows-1252" Version="1.0.0.0" UpgradeCode="6fe30b47-2577-43ad-9095-1861ba25889b" Manufacturer="oleg.shilo">
<Package InstallerVersion="200" Compressed="yes" SummaryCodepage="Windows-1252" Languages="1033" />
<Media Id="1" Cabinet="My_Product.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="ProgramFilesFolder">
<Directory Id="ProgramFilesFolder.My_Company" Name="My Company">
<Directory Id="INSTALLDIR" Name="My Product">
<Component Id="Component.MyApp.exe_1795746927" Guid="6fe30b47-2577-43ad-9095-1861643bb993">
<File Id="MyApp.exe_1795746927" Source="AppFiles\MyApp.exe" KeyPath="yes">
<Shortcut Id="Shortcut.MyApp.exe_1795746927.MyApp" WorkingDirectory="INSTALLDIR" Directory="DesktopFolder" Name="MyApp.lnk" Advertise="yes" />
</File>
</Component>
<Component Id="Component.Uninstall_MyApp" Guid="6fe30b47-2577-43ad-9095-18614b454462">
<Shortcut Id="INSTALLDIR.Uninstall_MyApp" WorkingDirectory="System64Folder" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" Name="Uninstall MyApp.lnk" />
<CreateFolder />
<RemoveFolder Id="INSTALLDIR" On="uninstall" />
<RegistryKey Root="HKCU" Key="Software\WixSharp\Used">
<RegistryValue Value="0" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
</Directory>
<Component Id="ProgramFilesFolder.My_Company" Guid="6fe30b47-2577-43ad-9095-1861c5635c14" KeyPath="yes">
<RemoveFolder Id="ProgramFilesFolder.My_Company" On="uninstall" />
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="ProgramMenuFolder">
<Directory Id="My_Company" Name="My Company">
<Directory Id="My_Product.1" Name="My Product">
<Component Id="Component.Uninstall_MyApp.1" Guid="6fe30b47-2577-43ad-9095-18617e97157f">
<Shortcut Id="My_Product.1.Uninstall_MyApp.1" WorkingDirectory="System64Folder" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" Name="Uninstall MyApp.lnk" />
<CreateFolder />
<RemoveFolder Id="My_Product.1" On="uninstall" />
<RegistryKey Root="HKCU" Key="Software\WixSharp\Used">
<RegistryValue Value="0" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
</Directory>
<Component Id="My_Company" Guid="6fe30b47-2577-43ad-9095-186144d63144">
<RemoveFolder Id="My_Company" On="uninstall" />
<RegistryKey Root="HKCU" Key="Software\WixSharp\Used">
<RegistryValue Value="0" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="DesktopFolder">
<Component Id="Component.DesktopFolder.EmptyDirectory" Guid="6fe30b47-2577-43ad-9095-1861f93f29a1">
<CreateFolder />
<RegistryKey Root="HKCU" Key="Software\WixSharp\Used">
<RegistryValue Value="0" Type="string" KeyPath="yes" />
</RegistryKey>
</Component>
</Directory>
<Component Id="TARGETDIR" Guid="6fe30b47-2577-43ad-9095-18612df5f80e" KeyPath="yes">
<CreateFolder />
<RemoveFolder Id="TARGETDIR" On="uninstall" />
</Component>
</Directory>
<Feature Id="Complete" Title="Complete" Absent="allow" Level="1">
<ComponentRef Id="Component.MyApp.exe_1795746927" />
<ComponentRef Id="Component.Uninstall_MyApp" />
<ComponentRef Id="Component.Uninstall_MyApp.1" />
<ComponentRef Id="Component.DesktopFolder.EmptyDirectory" />
<ComponentRef Id="TARGETDIR" />
<ComponentRef Id="ProgramFilesFolder.My_Company" />
<ComponentRef Id="My_Company" />
</Feature>
</Product>
</Wix>