Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorFinnbogi Finnbogason <finnbogi.asgeir@gmail.com>2014-10-22 04:15:40 +0400
committerFinnbogi Finnbogason <finnbogi.asgeir@gmail.com>2014-10-22 04:15:40 +0400
commit88d4fcc77923037e5a9747bc24132983fa909d1d (patch)
tree6354836d03146787703cf71acff3dc7bc0f70949 /setup
parent0b0d2e7fee428ed84fbc61dba8f56e75de552d41 (diff)
Basic Wix project, takes all WDS binaries from their build paths. Customizable
build via Defines.wxi and supports localization via Cultures. Next steps: 1. Add desktop shortcut(s) and additional options in Setup 2. Create WDS-specific localization references in all Cultures (WXL) 3. Create a Post-Build batch to generate MST for each Culture, based on en-US 4. Create a wrapper EXE to launch Setup. First shows language selection, then apply MST on MSI before launching Setup.
Diffstat (limited to 'setup')
-rw-r--r--setup/Cultures/WDS-cs-CZ.wxl4
-rw-r--r--setup/Cultures/WDS-de-DE.wxl4
-rw-r--r--setup/Cultures/WDS-en-us.wxl4
-rw-r--r--setup/Cultures/WDS-es-ES.wxl4
-rw-r--r--setup/Cultures/WDS-et-EE.wxl4
-rw-r--r--setup/Cultures/WDS-fi-FI.wxl4
-rw-r--r--setup/Cultures/WDS-fr-FR.wxl4
-rw-r--r--setup/Cultures/WDS-hu-HU.wxl4
-rw-r--r--setup/Cultures/WDS-it-IT.wxl4
-rw-r--r--setup/Cultures/WDS-nl-NL.wxl4
-rw-r--r--setup/Cultures/WDS-pl-PL.wxl4
-rw-r--r--setup/Cultures/WDS-ru-RU.wxl4
-rw-r--r--setup/Defines.wxi57
-rw-r--r--setup/WinDirStat.wxs146
-rw-r--r--setup/wds_setup.wixproj28
15 files changed, 256 insertions, 23 deletions
diff --git a/setup/Cultures/WDS-cs-CZ.wxl b/setup/Cultures/WDS-cs-CZ.wxl
new file mode 100644
index 0000000..8cccc42
--- /dev/null
+++ b/setup/Cultures/WDS-cs-CZ.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="cs-cz" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-de-DE.wxl b/setup/Cultures/WDS-de-DE.wxl
new file mode 100644
index 0000000..b4e3c8a
--- /dev/null
+++ b/setup/Cultures/WDS-de-DE.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="de-de" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-en-us.wxl b/setup/Cultures/WDS-en-us.wxl
new file mode 100644
index 0000000..3da0343
--- /dev/null
+++ b/setup/Cultures/WDS-en-us.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-es-ES.wxl b/setup/Cultures/WDS-es-ES.wxl
new file mode 100644
index 0000000..ea76201
--- /dev/null
+++ b/setup/Cultures/WDS-es-ES.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="es-es" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-et-EE.wxl b/setup/Cultures/WDS-et-EE.wxl
new file mode 100644
index 0000000..08308c0
--- /dev/null
+++ b/setup/Cultures/WDS-et-EE.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="et-ee" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-fi-FI.wxl b/setup/Cultures/WDS-fi-FI.wxl
new file mode 100644
index 0000000..bbbcec7
--- /dev/null
+++ b/setup/Cultures/WDS-fi-FI.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="fi-fi" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-fr-FR.wxl b/setup/Cultures/WDS-fr-FR.wxl
new file mode 100644
index 0000000..9fdae41
--- /dev/null
+++ b/setup/Cultures/WDS-fr-FR.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="fr-fr" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-hu-HU.wxl b/setup/Cultures/WDS-hu-HU.wxl
new file mode 100644
index 0000000..ef2d629
--- /dev/null
+++ b/setup/Cultures/WDS-hu-HU.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="hu-hu" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-it-IT.wxl b/setup/Cultures/WDS-it-IT.wxl
new file mode 100644
index 0000000..814ecd8
--- /dev/null
+++ b/setup/Cultures/WDS-it-IT.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="it-it" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-nl-NL.wxl b/setup/Cultures/WDS-nl-NL.wxl
new file mode 100644
index 0000000..c03717c
--- /dev/null
+++ b/setup/Cultures/WDS-nl-NL.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="nl-nl" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-pl-PL.wxl b/setup/Cultures/WDS-pl-PL.wxl
new file mode 100644
index 0000000..71df06e
--- /dev/null
+++ b/setup/Cultures/WDS-pl-PL.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="pl-pl" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Cultures/WDS-ru-RU.wxl b/setup/Cultures/WDS-ru-RU.wxl
new file mode 100644
index 0000000..5679b0b
--- /dev/null
+++ b/setup/Cultures/WDS-ru-RU.wxl
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WixLocalization Culture="ru-ru" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+ <String Id="YOURLOCID">Your localized string</String>
+</WixLocalization>
diff --git a/setup/Defines.wxi b/setup/Defines.wxi
new file mode 100644
index 0000000..456bb71
--- /dev/null
+++ b/setup/Defines.wxi
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <Include>
+ <!-- Product GUIDs & Version Number -->
+ <?define ProductVersion = "2.0.0"?>
+ <?define UpgradeCode = "E211CCFB-D706-4919-B2FF-0F7F426EA27B"?>
+ <?define ProductID = "EB9B4D4D-D88C-424A-87AA-B7EF40BCB072"?>
+ <!-- Product and Company information -->
+ <?define ProductName = "WinDirStat"?>
+ <?define ProductFolder = "WinDirStat"?>
+ <?define Manufacturer = "WinDirStat Team"?>
+ <?define ARPContact = "WinDirStat Team"?>
+ <?define ARPHelpLink = "http://windirstat.info"?>
+ <!-- <?define ARPTelephone = "N/A"?> -->
+ <?define IconFilePath = "..\common\WinDirStat.ico" ?>
+
+ <?define ProductBinariesDir = "..\wds_release\Debug"?>
+ <?define ProductHelpDir = "..\..\help"?>
+ <?define LicenseRtf = "..\windirstat\res\license.rtf"?>
+
+ <!-- <?define SetupBanner = "..\images\banner.jpg"?>-->
+ <!-- <?define SetupDialog = "..\images\dialog.jpg"?>-->
+
+
+ <!-- Default Registry Key, in which most registry settings are saved. -->
+ <?define ProductRegKeyPath = "SOFTWARE\Seifert\WinDirStat"?>
+
+ <!-- List of languages (LCIDs) to include for the product
+ <?define LanguageList = ""?>
+ -->
+ <!-- The LanguageList array is used to include language fragments.
+
+ Here's the list of the languages besides 1033(en-US) which is built-in:
+
+
+ Czech 0405 1029 cs-CZ
+ German 0407 1031 de-DE
+ English United States 0409 1033 en-US
+ Spanish 040a 1034 es-ES
+ Finnish 040b 1035 fi-FI
+ French 040c 1036 fr-FR
+ Hungarian 040e 1038 hu-HU
+ Icelandic 040f 1039 is-IS
+ Italian 0410 1040 it-IT
+ Dutch 0413 1043 nl-NL
+ Polish 0415 1045 pl-PL
+ Russian 0419 1049 ru-RU
+ Estonian 0425 1061 et-EE
+
+
+ For updates, here's a good page for reference:
+ http://www.science.co.il/language/locale-codes.asp
+
+ NOTE: For adding new languages, remember also to configure a new
+ fragment!
+ -->
+
+</Include> \ No newline at end of file
diff --git a/setup/WinDirStat.wxs b/setup/WinDirStat.wxs
index 1c45f11..6c86aed 100644
--- a/setup/WinDirStat.wxs
+++ b/setup/WinDirStat.wxs
@@ -1,30 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <Product Id="*" Name="windirstat" Language="1033" Version="1.0.0.0" Manufacturer="WinDirStat team (windirstat.info)" UpgradeCode="33458043-9797-4a04-84f2-662f6784f298">
- <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
+ <?include Defines.wxi?>
+ <Product Id="$(var.ProductID)" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
+ <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
- <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
- <MediaTemplate />
+ <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallInitialize" />
+ <MediaTemplate EmbedCab="yes" />
- <Feature Id="ProductFeature" Title="windirstat" Level="1">
- <ComponentGroupRef Id="ProductComponents" />
- </Feature>
- </Product>
+ <UIRef Id="WixUI_FeatureTree" />
+ <WixVariable Id="WixUILicenseRtf" Value="$(var.LicenseRtf)" />
- <Fragment>
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="ProgramFilesFolder">
- <Directory Id="INSTALLFOLDER" Name="WinDirStat" />
- </Directory>
- </Directory>
- </Fragment>
+ <Feature Id="FT_Core" Title="Unicode Application" Absent="disallow" Description="Includes WinDirStat in English and Help file in English.">
+ <ComponentRef Id="Comp_Main_Help" />
+ <ComponentRef Id="Comp_Main_Unicode" />
+ </Feature>
+ <Feature Id="FT_Ansi" Title="ANSI (95/98/ME)" Level="10">
+ <ComponentRef Id="Comp_Main_Ansi" />
+ </Feature>
+ <Feature Id="FT_Languages" Display="collapse" Level="10"
+ Title="Additional Languages"
+ Description="Additional languages, some including localized helpfiles.">
+ <Feature Id="FT_Lang_Czech" Title="Czech" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1029" />
+ </Feature>
+ <Feature Id="FT_Lang_German" Title="German" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1031" />
+ <ComponentRef Id="Comp_LangHelp_1031" />
+ </Feature>
+ <Feature Id="FT_Lang_Spanish" Title="Spanish" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1034" />
+ </Feature>
+ <Feature Id="FT_Lang_Estonian" Title="Estonian" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1061" />
+ </Feature>
+ <Feature Id="FT_Lang_Finnish" Title="Finnish" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1035" />
+ </Feature>
+ <Feature Id="FT_Lang_French" Title="French" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1036" />
+ </Feature>
+ <Feature Id="FT_Lang_Hungarian" Title="Hungarian" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1038" />
+ <ComponentRef Id="Comp_LangHelp_1038" />
+ </Feature>
+ <Feature Id="FT_Lang_Italian" Title="Italian" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1040" />
+ </Feature>
+ <Feature Id="FT_Lang_Dutch" Title="Dutch" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1043" />
+ </Feature>
+ <Feature Id="FT_Lang_Polish" Title="Polish" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1045" />
+ <ComponentRef Id="Comp_LangHelp_1045" />
+ </Feature>
+ <Feature Id="FT_Lang_Russian" Title="Russian" InstallDefault="followParent">
+ <ComponentRef Id="Comp_LangRes_1049" />
+ </Feature>
+ </Feature>
+
+ </Product>
+
+ <Fragment>
+ <Directory Id="TARGETDIR" Name="SourceDir">
+ <Directory Id="ProgramFilesFolder">
+ <Directory Id="INSTALLFOLDER" Name="ABC-WinDirStat" />
+ </Directory>
+ </Directory>
+ </Fragment>
+
+ <Fragment>
+ <DirectoryRef Id="INSTALLFOLDER" FileSource="$(var.ProductBinariesDir)">
+ <Component Id="Comp_Main_Unicode" Guid="{48E1104D-2466-4ADC-8BC0-521B6EBA8621}">
+ <File Id="File_Main_Unicode" KeyPath="yes" Name="windirstat.exe" />
+ </Component>
+ <Component Id="Comp_Main_Ansi" Guid="{C88F45C2-1DCE-4293-932B-6811EECD4FF0}">
+ <File Id="File_Main_Ansi" KeyPath="yes" Name="windirstatA.exe" />
+ </Component>
+ <Component Id="Comp_LangRes_1029" Guid="{B58F2B06-C005-414A-AEA9-114FC77E961D}">
+ <File Id="File_LangRes_1029" KeyPath="yes" Name="wdsr0405.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1031" Guid="{BB839F63-56F4-4173-8C73-8FD026CA5031}">
+ <File Id="File_LangRes_1031" KeyPath="yes" Name="wdsr0407.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1034" Guid="{C355DFAB-41B3-4653-9232-62E84AF339A0}">
+ <File Id="File_LangRes_1034" KeyPath="yes" Name="wdsr040a.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1035" Guid="{2DD35EA8-03E2-4B26-96A0-BD60C0357F9C}">
+ <File Id="File_LangRes_1035" KeyPath="yes" Name="wdsr040b.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1036" Guid="{10700A5F-A07B-4AE9-89C5-6550F7E12698}">
+ <File Id="File_LangRes_1036" KeyPath="yes" Name="wdsr040c.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1038" Guid="{68B17D8F-348D-47CF-8A7B-72014AC351C6}">
+ <File Id="File_LangRes_1038" KeyPath="yes" Name="wdsr040e.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1040" Guid="{4FA834D0-344A-4D14-A414-524B81A08D8F}">
+ <File Id="File_LangRes_1040" KeyPath="yes" Name="wdsr0410.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1043" Guid="{E0F57358-25DB-44C3-869A-5A87A525BB6B}">
+ <File Id="File_LangRes_1043" KeyPath="yes" Name="wdsr0413.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1045" Guid="{AC788E21-02F4-4772-B011-C1ABA506B9AB}">
+ <File Id="File_LangRes_1045" KeyPath="yes" Name="wdsr0415.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1049" Guid="{39942B8E-88D9-47F8-921B-8B79038ECE72}">
+ <File Id="File_LangRes_1049" KeyPath="yes" Name="wdsr0419.dll" />
+ </Component>
+ <Component Id="Comp_LangRes_1061" Guid="{55BF83E2-17AA-478B-AF5A-97A005AAE766}">
+ <File Id="File_LangRes_1061" KeyPath="yes" Name="wdsr0425.dll" />
+ </Component>
+ </DirectoryRef>
+
+ <DirectoryRef Id="INSTALLFOLDER" FileSource="$(var.ProductHelpDir)">
+ <Component Id="Comp_LangHelp_1031" Guid="{AA7FA712-87D6-4EAD-8F31-C7E9477C71BD}">
+ <File Id="File_LangHelp_1031" KeyPath="yes" Name="wdsh0407.chm" />
+ </Component>
+ <Component Id="Comp_LangHelp_1038" Guid="{0143EE3D-4FA2-4CC1-B53F-19F1D4115199}">
+ <File Id="File_LangHelp_1038" KeyPath="yes" Name="wdsh040e.chm" />
+ </Component>
+ <Component Id="Comp_LangHelp_1045" Guid="{92B76B7C-5075-4CA0-9226-FDFA6E9D1E23}">
+ <File Id="File_LangHelp_1045" KeyPath="yes" Name="wdsh0415.chm" />
+ </Component>
+ <Component Id="Comp_Main_Help" Guid="{193BB93E-E810-4F71-8BD1-5D62EB6769E7}">
+ <File Id="File_Main_Help" KeyPath="yes" Name="windirstat.chm" />
+ </Component>
+ </DirectoryRef>
+ </Fragment>
- <Fragment>
- <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
- <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
- <!-- <Component Id="ProductComponent"> -->
- <!-- TODO: Insert files, registry keys, and other resources here. -->
- <!-- </Component> -->
- </ComponentGroup>
- </Fragment>
</Wix> \ No newline at end of file
diff --git a/setup/wds_setup.wixproj b/setup/wds_setup.wixproj
index 14fb020..15fc59d 100644
--- a/setup/wds_setup.wixproj
+++ b/setup/wds_setup.wixproj
@@ -15,14 +15,42 @@
<OutputPath>..\wds_release\$(Configuration)\</OutputPath>
<IntermediateOutputPath>..\wds_release_intermediate\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
+ <Cultures>cs-CZ;de-DE;en-US;es-ES;et-EE;fi-FI;fr-FR;hu-HU;it-IT;nl-NL;pl-PL;ru-RU</Cultures>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>..\wds_release\$(Configuration)\</OutputPath>
<IntermediateOutputPath>..\wds_release_intermediate\$(Configuration)\</IntermediateOutputPath>
+ <Cultures>cs-CZ; de-DE; en-US; es-ES; et-EE; fi-FI; fr-FR; hu-HU; is-IS; it-IT; nl-NL; pl-PL; ru-RU</Cultures>
</PropertyGroup>
<ItemGroup>
<Compile Include="WinDirStat.wxs" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="Defines.wxi" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Cultures" />
+ </ItemGroup>
+ <ItemGroup>
+ <WixExtension Include="WixUIExtension">
+ <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
+ <Name>WixUIExtension</Name>
+ </WixExtension>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Cultures\WDS-et-EE.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-ru-RU.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-pl-PL.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-nl-NL.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-it-IT.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-hu-HU.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-fi-FI.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-fr-FR.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-de-DE.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-es-ES.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-cs-CZ.wxl" />
+ <EmbeddedResource Include="Cultures\WDS-en-us.wxl" />
+ </ItemGroup>
<Import Project="$(WixTargetsPath)" />
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.