mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-29 23:30:10 +01:00
fa7548129b
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
218 lines
16 KiB
Diff
218 lines
16 KiB
Diff
# Copyright (c) Citrix Systems, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms,
|
|
# with or without modification, are permitted provided
|
|
# that the following conditions are met:
|
|
#
|
|
# * Redistributions of source code must retain the above
|
|
# copyright notice, this list of conditions and the
|
|
# following disclaimer.
|
|
# * Redistributions in binary form must reproduce the above
|
|
# copyright notice, this list of conditions and the
|
|
# following disclaimer in the documentation and/or other
|
|
# materials provided with the distribution.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
# SUCH DAMAGE.
|
|
|
|
--- XenCenter.wxs Mon May 23 11:07:59 2016
|
|
+++ XenCenter.l10n.wxs Mon May 23 11:09:01 2016
|
|
@@ -40,7 +40,7 @@
|
|
<?define HiddenFeatures="[BRANDING_HIDDEN_FEATURES]"?>
|
|
<?define AdditionalFeatures="[BRANDING_ADDITIONAL_FEATURES]"?>
|
|
<Product Id="$(var.ProductCode)" Name="[Citrix] [XenCenter]" Language="$(env.WixLangId)" Version="$(var.ProductVersion)" Manufacturer="[BRANDING_COMPANY_NAME_LEGAL]" UpgradeCode="$(var.UpgradeCode)">
|
|
- <Package Description="[Citrix] [XenCenter]" Comments="none." InstallerVersion="200" Compressed="yes" />
|
|
+ <Package Languages="1033,1041,2052,1028" Description="[Citrix] [XenCenter]" Comments="none." InstallerVersion="200" Compressed="yes" />
|
|
<Media Id="1" Cabinet="XenCenter.cab" EmbedCab="yes" />
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="ProgramFilesFolder">
|
|
@@ -84,70 +84,72 @@
|
|
<File Id="XenOvfTransport" Source="..\XenAdmin\bin\Release\XenOvfTransport.dll" />
|
|
<!-- Homepage -->
|
|
<File Id="XenCenterHomePage" Source="..\XenAdmin\bin\Release\HomePage.mht" />
|
|
+ <File Id="XenCenterJaHomePage" Source="..\XenAdmin\bin\Release\HomePage.ja.mht" />
|
|
+ <File Id="XenCenterScHomePage" Source="..\XenAdmin\bin\Release\HomePage.zh-CN.mht" />
|
|
<!-- Icons -->
|
|
<File Id="XenCenterIcon" Source="..\Branding\Images\AppIcon.ico" />
|
|
<File Id="XvaIcon" Source="..\Branding\Images\file_vm.ico" />
|
|
<File Id="XslicIcon" Source="..\Branding\Images\file_license.ico" />
|
|
<File Id="XkbIcon" Source="..\Branding\Images\file_backup.ico" />
|
|
<File Id="XsupdateIcon" Source="..\Branding\Images\file_updates.ico" />
|
|
- <!-- Define XVA extension -->
|
|
- <ProgId Id="XenCenter.xva" Description="XVA File" Icon="XvaIcon">
|
|
+ <!-- Define XVA extension -->
|
|
+ <ProgId Id="XenCenter.xva" Description="!(loc.XVA_File)" Icon="XvaIcon">
|
|
<Extension Id="xva" ContentType="application/xva">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define OVF extension -->
|
|
- <ProgId Id="XenCenter.ovf" Description="OVF File" Icon="XvaIcon">
|
|
+ <!-- Define OVF extension -->
|
|
+ <ProgId Id="XenCenter.ovf" Description="!(loc.OVF_File)" Icon="XvaIcon">
|
|
<Extension Id="ovf" ContentType="application/ovf">
|
|
<Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define OVA extension -->
|
|
- <ProgId Id="XenCenter.ova" Description="OVA File" Icon="XvaIcon">
|
|
+ <!-- Define OVA extension -->
|
|
+ <ProgId Id="XenCenter.ova" Description="!(loc.OVA_File)" Icon="XvaIcon">
|
|
<Extension Id="ova" ContentType="application/ova">
|
|
<Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define VHD extension -->
|
|
- <ProgId Id="XenCenter.vhd" Description="VHD File" Icon="XvaIcon">
|
|
+ <!-- Define VHD extension -->
|
|
+ <ProgId Id="XenCenter.vhd" Description="!(loc.VHD_File)" Icon="XvaIcon">
|
|
<Extension Id="vhd" ContentType="application/vhd">
|
|
<Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define VMDK extension -->
|
|
- <ProgId Id="XenCenter.vmdk" Description="VMDK File" Icon="XvaIcon">
|
|
+ <!-- Define VMDK extension -->
|
|
+ <ProgId Id="XenCenter.vmdk" Description="!(loc.VMDK_File)" Icon="XvaIcon">
|
|
<Extension Id="vmdk" ContentType="application/vmdk">
|
|
<Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="import "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define XSLIC extension -->
|
|
- <ProgId Id="XenCenter.xslic" Description="[XenServer] License File" Icon="XslicIcon">
|
|
+ <!-- Define XSLIC extension -->
|
|
+ <ProgId Id="XenCenter.xslic" Description="!(loc.XenServer_License_File)" Icon="XslicIcon">
|
|
<Extension Id="xslic" ContentType="application/xslic">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="license "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="license "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
- <!-- Define XBK extension -->
|
|
- <ProgId Id="XenCenter.[xbk]" Description="[XenServer] Backup File" Icon="XkbIcon">
|
|
+ <!-- Define XBK extension -->
|
|
+ <ProgId Id="XenCenter.[xbk]" Description="!(loc.XenServer_Backup_File)" Icon="XkbIcon">
|
|
<Extension Id="[xbk]" ContentType="application/[xbk]">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="restore "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="restore "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
<!-- Define XSUPDATE extension -->
|
|
- <ProgId Id="XenCenter.[xsupdate]" Description="[XenServer] Update File" Icon="XsupdateIcon">
|
|
+ <ProgId Id="XenCenter.[xsupdate]" Description="!(loc.XenServer_Update_File)" Icon="XsupdateIcon">
|
|
<Extension Id="[xsupdate]" ContentType="application/[xsupdate]">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="update "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="update "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
<!-- Define XSOEM extension -->
|
|
- <ProgId Id="XenCenter.xsoem" Description="[XenServer] OEM Update File" Icon="XsupdateIcon">
|
|
+ <ProgId Id="XenCenter.xsoem" Description="!(loc.XenServer_OEM_Update_File)" Icon="XsupdateIcon">
|
|
<Extension Id="xsoem" ContentType="application/xsoem">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="update "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="update "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
<!-- Define XENSEARCH extension -->
|
|
- <ProgId Id="XenCenter.[xensearch]" Description="[XenCenter] Saved Search" Icon="XenCenterIcon">
|
|
+ <ProgId Id="XenCenter.[xensearch]" Description="!(loc.XenCenter_Saved_Search)" Icon="XenCenterIcon">
|
|
<Extension Id="[xensearch]" ContentType="application/[xensearch]">
|
|
- <Verb Id="open" Command="Open" TargetFile="XenCenterEXE" Argument="search "%1"" />
|
|
+ <Verb Id="open" Command="!(loc.Open)" TargetFile="XenCenterEXE" Argument="search "%1"" />
|
|
</Extension>
|
|
</ProgId>
|
|
</Component>
|
|
@@ -172,12 +174,34 @@
|
|
</Directory>
|
|
<?else?>
|
|
<Component Id="readmefile" Guid="[BRANDING_README_FILE_GUID]">
|
|
- <File Id="Readme" Source="..\Branding\WixInstaller\README.TXT" />
|
|
+ <File Id="Readme" Source="..\Branding\WixInstaller\!(loc.Readme)" />
|
|
</Component>
|
|
<?endif?>
|
|
<Directory Id="Help" Name="Help">
|
|
<Component Id="HelpFiles" Guid="EA8D4F56-A94A-467c-9E6B-F3DC26F95B1E">
|
|
<File Id="XenCenterCHM" Source="..\XenAdmin\bin\Release\Help\[XenCenter].chm" />
|
|
+ <File Id="XenCenterJaCHM" Source="..\XenAdmin\bin\Release\Help\[XenCenter].ja.chm" />
|
|
+ <File Id="XenCenterScCHM" Source="..\XenAdmin\bin\Release\Help\[XenCenter].zh-CN.chm" />
|
|
+ </Component>
|
|
+ </Directory>
|
|
+ <Directory Id="ja" Name="ja">
|
|
+ <Component Id="JaResources" Guid="[BRANDING_JA_RESOURCES_GUID]">
|
|
+ <File Id="JaResourcesDLL" Source="..\XenAdmin\bin\Release\ja\XenCenterMain.resources.dll" />
|
|
+ <File Id="JaXenModResourcesDLL" Source="..\XenAdmin\bin\Release\ja\XenModel.resources.dll" />
|
|
+ <File Id="JaMicRepVwrCmnResDLL" Source="..\XenAdmin\ReportViewer\Microsoft.ReportViewer.Common.resources.dll" />
|
|
+ <File Id="JaMicRepVwrPrcObjResDLL" Source="..\XenAdmin\ReportViewer\Microsoft.ReportViewer.WinForms.resources.dll" />
|
|
+ <File Id="JaXOResourcesDLL" Source="..\XenOvfApi\bin\Release\ja\XenOvf.resources.dll" />
|
|
+ <File Id="JaXOTResourcesDLL" Source="..\XenOvfTransport\bin\Release\ja\XenOvfTransport.resources.dll" />
|
|
+ </Component>
|
|
+ </Directory>
|
|
+ <Directory Id="sc" Name="zh-CN">
|
|
+ <Component Id="ScResources" Guid="[BRANDING_SC_RESOURCES_GUID]">
|
|
+ <File Id="ScResourcesDLL" Source="..\XenAdmin\bin\Release\zh-CN\XenCenterMain.resources.dll" />
|
|
+ <File Id="ScXenModResourcesDLL" Source="..\XenAdmin\bin\Release\zh-CN\XenModel.resources.dll" />
|
|
+ <File Id="ScMicRepVwrCmnResDLL" Source="..\XenAdmin\ReportViewer\Microsoft.ReportViewer.Common.resources.dll" />
|
|
+ <File Id="ScMicRepVwrPrcObjResDLL" Source="..\XenAdmin\ReportViewer\Microsoft.ReportViewer.WinForms.resources.dll" />
|
|
+ <File Id="ScXOResourcesDLL" Source="..\XenOvfApi\bin\Release\zh-CN\XenOvf.resources.dll" />
|
|
+ <File Id="ScXOTResourcesDLL" Source="..\XenOvfTransport\bin\Release\zh-CN\XenOvfTransport.resources.dll" />
|
|
</Component>
|
|
</Directory>
|
|
<Directory Id="EXTERNALTOOLS" ShortName="External" Name="External Tools">
|
|
@@ -222,7 +246,7 @@
|
|
Vital="no"
|
|
Name="XenServerHealthCheck"
|
|
DisplayName="[Citrix] [XenServer] Health Check Service"
|
|
- Description="Enables monitoring of the health of your Citrix XenServer pools by periodically uploading data from the servers to Citrix Insight Services."
|
|
+ Description="!(loc.HealthCheckDescr)"
|
|
Start="auto"
|
|
Account="LocalSystem"
|
|
ErrorControl="normal"
|
|
@@ -277,13 +301,15 @@
|
|
<Feature Id="MainProgram" Title="[Citrix] [XenCenter]" Description="[Citrix] [XenCenter]" Display="expand" Level="1" ConfigurableDirectory="INSTALLDIR" AllowAdvertise="no" InstallDefault="local" Absent="disallow" >
|
|
<ComponentRef Id="MainExecutable" />
|
|
<ComponentRef Id="HelpFiles" />
|
|
- <ComponentRef Id="ReportViewer" />
|
|
+ <ComponentRef Id="JaResources" />
|
|
+ <ComponentRef Id="ScResources" />
|
|
<ComponentRef Id="UpdateFiles" />
|
|
<?if "$(env.Branding)"="XenCenter"?>
|
|
<ComponentRef Id="TestResources" />
|
|
<?else?>
|
|
<ComponentRef Id="readmefile" />
|
|
<?endif?>
|
|
+ <ComponentRef Id="ReportViewer" />
|
|
<ComponentRef Id="SchemasFilesComponent" />
|
|
<ComponentRef Id="ExternalToolsComponent" />
|
|
<ComponentRef Id="RegistryEntries" />
|
|
@@ -291,7 +317,7 @@
|
|
<ComponentRef Id="ProgramFilesShortcut" />
|
|
|
|
<?if "$(env.Branding)"="XenCenter"?>
|
|
- <Feature Id="HealthCheckService" Title="[Citrix] [XenServer] Health Check Service" Description="Enables monitoring of the health of your Citrix XenServer pools." Display="expand" Level="1" ConfigurableDirectory="HEALTHCHECKSERVICEDIR" AllowAdvertise="no" InstallDefault="local" Absent="allow" >
|
|
+ <Feature Id="HealthCheckService" Title="[Citrix] [XenServer] Health Check Service" Description="!(loc.HealthCheckDescrShort)" Display="expand" Level="1" ConfigurableDirectory="HEALTHCHECKSERVICEDIR" AllowAdvertise="no" InstallDefault="local" Absent="allow" >
|
|
<ComponentRef Id="XenServerHealthCheck" />
|
|
</Feature>
|
|
<?else ?>
|
|
@@ -310,7 +336,7 @@
|
|
<Property Id="ARPPRODUCTICON" Value="XenCenterICO" />
|
|
<MajorUpgrade AllowDowngrades="no" AllowSameVersionUpgrades="yes" DowngradeErrorMessage="!(loc.ErrorNewerProduct)" Schedule="afterInstallInitialize"/>
|
|
<PropertyRef Id="WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED" />
|
|
- <Condition Message=".NET Framework 4.6 is required for this installation."><![CDATA[Installed OR WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED]]></Condition>
|
|
+ <Condition Message="!(loc.Required_For_Installation)"><![CDATA[Installed OR WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED]]></Condition>
|
|
<Property Id="PERMACHINEINSTALL">
|
|
<RegistrySearch Id="InstallRegistry" Type="raw" Root="HKLM" Key="Software\[Citrix]\[XenCenter]" Name="InstallDir" />
|
|
</Property>
|