Files

103 lines
4.5 KiB
XML
Raw Permalink Normal View History

2024-06-16 13:27:00 +03:00
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<?define ProductName="MtApi5" ?>
2024-06-16 13:27:00 +03:00
<?define ProductPathNative="..\build\products\$(var.Configuration)\$(var.Platform)\"?>
<?if $(var.Platform) = x64 ?>
2016-04-12 12:51:56 +03:00
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?define PlatformSystemFolder = "System64Folder" ?>
2024-06-16 13:27:00 +03:00
<?else?>
2016-04-12 12:51:56 +03:00
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?define PlatformSystemFolder = "SystemFolder" ?>
2024-06-16 13:27:00 +03:00
<?endif?>
2016-04-12 12:51:56 +03:00
<?define ProductVersion=!(bind.FileVersion.MtApi5.dll) ?>
2016-04-12 12:51:56 +03:00
<?define Manufacturer="DW"?>
<?define ProductPath="..\build\products\$(var.Configuration)\net8.0\"?>
2016-04-12 12:51:56 +03:00
2024-06-16 13:27:00 +03:00
<Package Name="$(var.ProductName) $(var.ProductVersion)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="d72d346e-e6f7-4c23-85c6-1c42b3175599" InstallerVersion="200">
2016-11-07 13:45:18 +02:00
<WixVariable Id="WixUILicenseRtf" Value="..\LICENSE.rtf" />
2014-10-31 09:05:52 +02:00
2016-11-03 13:07:48 +02:00
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
2016-04-12 12:51:56 +03:00
<MediaTemplate EmbedCab="yes" />
<Feature Id="MtApi5" Title="$(var.ProductName)" Level="1">
2024-06-16 13:27:00 +03:00
<ComponentGroupRef Id="MtApi5Components" />
2016-04-12 12:51:56 +03:00
</Feature>
<Feature Id="MT5Connector" Title="MT5 Connector" Level="1">
2024-06-16 13:27:00 +03:00
<ComponentGroupRef Id="MT5ConnectorComponents" />
2016-04-12 12:51:56 +03:00
</Feature>
2014-10-31 09:05:52 +02:00
2024-06-16 13:27:00 +03:00
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<ui:WixUI Id="WixUI_Mondo" />
</Package>
2014-10-31 09:05:52 +02:00
2016-04-12 12:51:56 +03:00
<Fragment>
2024-06-16 13:27:00 +03:00
<StandardDirectory Id="$(var.PlatformProgramFilesFolder)">
2016-04-12 12:51:56 +03:00
<Directory Id="INSTALLFOLDER" Name="$(var.ProductName)">
<Directory Id="ExpertFolder" Name="Experts">
</Directory>
</Directory>
2024-06-16 13:27:00 +03:00
</StandardDirectory>
2016-04-12 12:51:56 +03:00
2024-06-16 13:27:00 +03:00
<StandardDirectory Id="$(var.PlatformSystemFolder)">
</StandardDirectory>
2016-04-12 12:51:56 +03:00
2024-06-16 13:27:00 +03:00
<StandardDirectory Id="ProgramMenuFolder">
2016-04-12 12:51:56 +03:00
<Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
</Directory>
2024-06-16 13:27:00 +03:00
</StandardDirectory>
2016-04-12 12:51:56 +03:00
2024-06-16 13:27:00 +03:00
</Fragment>
2016-04-12 12:51:56 +03:00
<Fragment>
<ComponentGroup Id="MtApi5Components">
<Component Id="MtApi5Dll" Directory="INSTALLFOLDER">
2024-06-16 13:27:00 +03:00
<File Id="MtApi5.dll" Name="MtApi5.dll" KeyPath="yes" Source="$(var.ProductPath)MtApi5.dll" />
2016-04-12 12:51:56 +03:00
2024-06-16 13:27:00 +03:00
<RegistryKey Root="HKLM" Key="Software\Microsoft\.NetFramework\v4.0.30319\AssemblyFoldersEx\$(var.ProductName)" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Type="string" Value="[INSTALLFOLDER]" />
2016-04-12 12:51:56 +03:00
</RegistryKey>
</Component>
<Component Id="MtClientDll" Directory="INSTALLFOLDER">
2024-06-16 13:27:00 +03:00
<File Id="MtClient.dll" Name="MtClient.dll" KeyPath="yes" Source="$(var.ProductPath)MtClient.dll" />
2016-04-12 12:51:56 +03:00
</Component>
2024-03-09 17:37:54 +02:00
<Component Id="NewtonsoftJsondll" Directory="INSTALLFOLDER">
2024-06-16 13:27:00 +03:00
<File Id="Newtonsoft.Json.dll" Name="Newtonsoft.Json.dll" KeyPath="yes" Source="$(var.ProductPath)Newtonsoft.Json.dll" />
2024-03-09 17:37:54 +02:00
</Component>
2016-04-12 12:51:56 +03:00
<Component Id="MtApi5Expert" Directory="ExpertFolder">
2024-06-16 13:27:00 +03:00
<File Id="MtApi5.ex5" Name="MtApi5.ex5" KeyPath="yes" Source="..\mq5\MtApi5.ex5" />
2016-04-12 12:51:56 +03:00
</Component>
2024-06-16 13:27:00 +03:00
<Component Id="AppShortcutConnMgr" Directory="ApplicationProgramsFolder">
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
2016-04-12 12:51:56 +03:00
</Component>
</ComponentGroup>
<ComponentGroup Id="MT5ConnectorComponents">
2024-06-16 13:27:00 +03:00
<Component Id="ConnectionProfileRegistryKey" Directory="INSTALLFOLDER">
<RegistryKey Root="HKCU" Key="Software\MtApi\ConnectionProfiles\Local" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Type="string" Name="Host" Value="" />
<RegistryValue Type="integer" Name="Port" Value="8222" KeyPath="yes" />
2016-04-12 12:51:56 +03:00
</RegistryKey>
</Component>
<Component Id="MT5ConnectorDll" Directory="$(var.PlatformSystemFolder)">
2024-06-16 13:27:00 +03:00
<File Id="MT5Connector5.dll" Name="MT5Connector.dll" KeyPath="yes" Source="$(var.ProductPathNative)MT5Connector.dll" />
2016-04-12 12:51:56 +03:00
</Component>
</ComponentGroup>
</Fragment>
2014-10-31 09:05:52 +02:00
</Wix>