SymphonyElectron/installer/win/WixSharpToolset/Samples/SinglePackageAuthoring/MyProduct.wxs
2020-08-21 08:25:55 +02:00

61 lines
3.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="725db829-60cb-40cc-8f54-92b90753ebd0" Name="MyProduct" Language="1033" Codepage="Windows-1252" Version="1.0.0.0" UpgradeCode="725db829-60cb-40cc-8f54-92b9f753ebcf" Manufacturer="oleg.shilo">
<Package InstallerVersion="200" Compressed="yes" SummaryCodepage="Windows-1252" Languages="1033" />
<Media Id="1" Cabinet="MyProduct.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="INSTALLDIR" Name="ABSOLUTEPATH">
<Component Id="Component.readme.txt_99559760" Guid="725db829-60cb-40cc-8f54-92b9fec6ae36">
<File Id="readme.txt_99559760" Source="readme.txt" />
</Component>
</Directory>
</Directory>
<UI />
<UI>
<EmbeddedUI Id="WixSharp_EmbeddedUI_Asm" SourceFile="WixSharp.UI.CA.dll" />
</UI>
<CustomAction Id="WixSharp_InitRuntime_Action" BinaryKey="WixSharp_InitRuntime_Action_File" DllEntry="WixSharp_InitRuntime_Action" Return="check" Execute="immediate" />
<CustomAction Id="Set_CancelRequestHandler_Props" Property="CancelRequestHandler" Value="UpgradeCode=[UpgradeCode];INSTALLDIR=[INSTALLDIR];UILevel=[UILevel];ProductCode=[ProductCode];ADDLOCAL=[ADDLOCAL];ADDFEATURES=[ADDFEATURES]" />
<CustomAction Id="CancelRequestHandler" BinaryKey="WixSharp_InitRuntime_Action_File" DllEntry="CancelRequestHandler" Return="check" Impersonate="no" Execute="deferred" />
<CustomAction Id="Set_DirAbsolutePath" Property="INSTALLDIR" Value="C:\My Company\My Product" />
<Binary Id="WixSharp_InitRuntime_Action_File" SourceFile="WixSharp.CA.dll" />
<Binary Id="WixSharp_UIText" SourceFile="MyProduct.wxl" />
<Binary Id="WixSharp_LicenceFile" SourceFile="MyProduct.licence.rtf" />
<Binary Id="WixUI_Bmp_Dialog" SourceFile="MyProduct.dialog_bmp.png" />
<Binary Id="WixUI_Bmp_Banner" SourceFile="MyProduct.dialog_banner.png" />
<UIRef Id="WixUI_ErrorProgressText" />
<Property Id="WixSharp_UI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="UAC_REVEALER_ENABLED" Value="true" />
<Property Id="UAC_WARNING" Value="Please wait for UAC prompt to appear.&#xD;&#xA;&#xD;&#xA;If it appears minimized then activate it from the taskbar." />
<Property Id="WixSharp_InstallDialogs" Value="WixSharp.UI, Version=1.13.2.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2|WixSharp.UI.Forms.InstallScopeDialog&#xA;WixSharp.UI, Version=1.13.2.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2|WixSharp.UI.Forms.ProgressDialog&#xA;WixSharp.UI, Version=1.13.2.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2|WixSharp.UI.Forms.ExitDialog" />
<Property Id="WixSharp_ModifyDialogs" Value="WixSharp.UI, Version=1.13.2.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2|WixSharp.UI.Forms.ProgressDialog&#xA;WixSharp.UI, Version=1.13.2.2, Culture=neutral, PublicKeyToken=3775edd25acc43c2|WixSharp.UI.Forms.ExitDialog" />
<Property Id="INSTALLDIR_ABSOLUTEPATH" Value="C:\My Company\My Product" />
<Feature Id="Complete" Title="Complete" Absent="allow" Level="1">
<ComponentRef Id="Component.readme.txt_99559760" />
</Feature>
<InstallExecuteSequence>
<Custom Action="WixSharp_InitRuntime_Action" Before="AppSearch"> (1) </Custom>
<Custom Action="Set_CancelRequestHandler_Props" Before="InstallFinalize" />
<Custom Action="CancelRequestHandler" After="Set_CancelRequestHandler_Props"> (NOT (REMOVE="ALL")) </Custom>
<Custom Action="Set_DirAbsolutePath" Before="AppSearch">(NOT Installed) AND (UILevel &lt; 5) AND (INSTALLDIR = ABSOLUTEPATH)</Custom>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="Set_DirAbsolutePath" Before="AppSearch">(NOT Installed) AND (UILevel = 5) AND (INSTALLDIR = ABSOLUTEPATH)</Custom>
</InstallUISequence>
</Product>
</Wix>