Skip to content

Instantly share code, notes, and snippets.

@pavelhoral
Created September 30, 2018 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelhoral/d37021f297d443868ca8d8900662c351 to your computer and use it in GitHub Desktop.
Save pavelhoral/d37021f297d443868ca8d8900662c351 to your computer and use it in GitHub Desktop.
Čeština pro Fallout 4 - definice instalátoru
<?xml version="1.0" encoding="UTF-8"?>
<?define ProductName="Fallout 4 - Čeština" ?>
<?ifndef ProductVersion ?><?define ProductVersion="0.0.1" ?><?endif ?>
<?define ProductUrl="https://prekladyher.eu/preklady/fallout-4.79/" ?>
<?define Manufacturer="prekladyher.eu" ?>
<?define SourceBase="../../target" ?>
<?define UpgradeCode="34157A8C-584D-4A70-B4D4-3D11D419F54E" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="$(var.UpgradeCode)"
Name="$(var.ProductName)" Manufacturer="$(var.Manufacturer)"
Language="1033" Codepage="1250" Version="$(var.ProductVersion)">
<!-- Basic package configuration -->
<Package Id="*" InstallerVersion="400"
Manufacturer="$(var.Manufacturer)" Description="$(var.ProductName)"
Languages="1033" Compressed="yes" SummaryCodepage="1250" />
<MediaTemplate EmbedCab="yes" />
<!-- Product upgrade configuration -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion OnlyDetect="no" Property="PREVIOUSFOUND"
Maximum="$(var.ProductVersion)" IncludeMaximum="no" />
</Upgrade>
<!-- Lookup game directory -->
<Property Id="INSTALLDIR">
<RegistrySearch Id="Fallout4Registry" Root="HKLM" Type="directory"
Key="SOFTWARE\WOW6432Node\Bethesda Softworks\Fallout4" Name="installed path" />
</Property>
<Condition Message="Nebylo možné najít složku Fallout 4.">
<![CDATA[Installed OR INSTALLDIR]]>
</Condition>
<!-- Lookup game configuration -->
<Property Id="FALLOUTPERSONAL">
<DirectorySearch Id="FalloutPersonal" Path="[PersonalFolder]\My Games\Fallout4" AssignToProperty="yes" />
</Property>
<Property Id="FALLOUTCONFIG">
<DirectorySearch Id="FalloutPersonal" Path="[FALLOUTPERSONAL]">
<FileSearch Id="Fallout4Custom.ini" Name="Fallout4Custom.ini" />
</DirectorySearch>
</Property>
<!-- Define target structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="INSTALLDIR" Name="Fallout4">
<Directory Id="DataDir" Name="Data">
<Directory Id="InterfaceDir" Name="Interface" />
<Directory Id="StringsDir" Name="Strings" />
</Directory>
</Directory>
</Directory>
<!-- Default components and feature -->
<DirectoryRef Id="TARGETDIR">
<Component Id="Fallout4Custom.ini" Guid="9AE43969-D7CB-495C-ABB1-007E289E2579" KeyPath="yes" Permanent="yes">
<IniFile Id="Fallout4Custom.ini" Directory="FALLOUTPERSONAL" Name="Fallout4Custom.ini"
Action="addLine" Section="Archive" Key="bInvalidateOlderFiles" Value="1" />
</Component>
</DirectoryRef>
<DirectoryRef Id="InterfaceDir" FileSource="$(var.SourceBase)/interface">
<Component Id="FalloutDict.txt" Guid="12EFF6F4-D4B3-46DE-B19D-8ECC9C14E2FD">
<RemoveFile Id="FalloutDict.txt" Name="FalloutDict.txt" On="both" />
<File Id="FalloutDict.txt" KeyPath="yes" />
</Component>
<Component Id="fonts_console.swf" Guid="FE877870-B4EE-4BCC-8629-4BF416304551">
<RemoveFile Id="fonts_console.swf" Name="fonts_console.swf" On="both" />
<File Id="fonts_console.swf" KeyPath="yes" />
</Component>
<Component Id="fonts_en.swf" Guid="7207CCFC-D1FE-455B-885F-C2B2D5C621A0">
<RemoveFile Id="fonts_en.swf" Name="fonts_en.swf" On="both" />
<File Id="fonts_en.swf" KeyPath="yes" />
</Component>
<Component Id="Translate_en.txt" Guid="DCAEE1F0-201B-438B-84B1-8473A3F79B04">
<RemoveFile Id="Translate_en.txt" Name="Translate_en.txt" On="both" />
<File Id="Translate_en.txt" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="StringsDir" FileSource="$(var.SourceBase)/strings">
<Component Id="Fallout4_en.STRINGS" Guid="4B12370A-B699-4B52-8F83-C697C36920A5">
<RemoveFile Id="Fallout4_en.STRINGS" Name="Fallout4_en.STRINGS" On="both" />
<File Id="Fallout4_en.STRINGS" KeyPath="yes" />
</Component>
<Component Id="Fallout4_en.ILSTRINGS" Guid="77898D90-8E42-4706-9957-8213DC573A0B">
<RemoveFile Id="Fallout4_en.ILSTRINGS" Name="Fallout4_en.ILSTRINGS" On="both" />
<File Id="Fallout4_en.ILSTRINGS" KeyPath="yes" />
</Component>
<Component Id="Fallout4_en.DLSTRINGS" Guid="226CD62C-D2CA-4DF2-9798-4FE1DD22AEB1">
<RemoveFile Id="Fallout4_en.DLSTRINGS" Name="Fallout4_en.DLSTRINGS" On="both" />
<File Id="Fallout4_en.DLSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop01_en.STRINGS" Guid="69544D15-CF23-4304-85F0-7D63D87826A3">
<RemoveFile Id="DLCworkshop01_en.STRINGS" Name="DLCworkshop01_en.STRINGS" On="both" />
<File Id="DLCworkshop01_en.STRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop01_en.ILSTRINGS" Guid="9461FC0C-D194-4933-A9B0-1ADDBD2CCBF2">
<RemoveFile Id="DLCworkshop01_en.ILSTRINGS" Name="DLCworkshop01_en.ILSTRINGS" On="both" />
<File Id="DLCworkshop01_en.ILSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop01_en.DLSTRINGS" Guid="32204B01-ED43-4556-964E-26FCCBF38DB8">
<RemoveFile Id="DLCworkshop01_en.DLSTRINGS" Name="DLCworkshop01_en.DLSTRINGS" On="both" />
<File Id="DLCworkshop01_en.DLSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop02_en.STRINGS" Guid="35A6EAF0-D0DC-43D0-A1F2-A4A78980BEBB">
<RemoveFile Id="DLCworkshop02_en.STRINGS" Name="DLCworkshop02_en.STRINGS" On="both" />
<File Id="DLCworkshop02_en.STRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop02_en.ILSTRINGS" Guid="66D1EFAA-C1B0-4B69-B717-8709D8247C79">
<RemoveFile Id="DLCworkshop02_en.ILSTRINGS" Name="DLCworkshop02_en.ILSTRINGS" On="both" />
<File Id="DLCworkshop02_en.ILSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop02_en.DLSTRINGS" Guid="BB8D0F6D-F0DE-42DD-9854-DEBA60848A4D">
<RemoveFile Id="DLCworkshop02_en.DLSTRINGS" Name="DLCworkshop02_en.DLSTRINGS" On="both" />
<File Id="DLCworkshop02_en.DLSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop03_en.STRINGS" Guid="6C00489D-4ECD-4FA1-B1AA-CF435DD0E08F">
<RemoveFile Id="DLCworkshop03_en.STRINGS" Name="DLCworkshop03_en.STRINGS" On="both" />
<File Id="DLCworkshop03_en.STRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop03_en.ILSTRINGS" Guid="EB4758CF-34FA-4BD0-AC49-A41EB62E12FF">
<RemoveFile Id="DLCworkshop03_en.ILSTRINGS" Name="DLCworkshop03_en.ILSTRINGS" On="both" />
<File Id="DLCworkshop03_en.ILSTRINGS" KeyPath="yes" />
</Component>
<Component Id="DLCworkshop03_en.DLSTRINGS" Guid="EFA1E609-2554-4A37-B4CE-F17C95F14C13">
<RemoveFile Id="DLCworkshop03_en.DLSTRINGS" Name="DLCworkshop03_en.DLSTRINGS" On="both" />
<File Id="DLCworkshop03_en.DLSTRINGS" KeyPath="yes" />
</Component>
</DirectoryRef>
<DirectoryRef Id="INSTALLDIR" FileSource="$(var.SourceBase)">
<Component Id="Fallout4_Cestina.html" Guid="E286B976-38E7-46C9-9A35-D78C23CAECE6">
<RemoveFile Id="Fallout4_Cestina.html" Name="Fallout4_Cestina.html" On="both" />
<File Id="Fallout4_Cestina.html" KeyPath="yes" />
</Component>
<Component Id="Fallout4_Cestina.png" Guid="0EBBD798-6B00-49CF-BCFB-7C4A4D8DC68F">
<File Id="Fallout4_Cestina.png" KeyPath="yes" />
</Component>
</DirectoryRef>
<Feature Id="DefaultFeature" Level="1">
<ComponentRef Id="FalloutDict.txt" />
<ComponentRef Id="fonts_console.swf" />
<ComponentRef Id="fonts_en.swf" />
<ComponentRef Id="Translate_en.txt" />
<ComponentRef Id="Fallout4Custom.ini" />
<ComponentRef Id="Fallout4_en.STRINGS" />
<ComponentRef Id="Fallout4_en.ILSTRINGS" />
<ComponentRef Id="Fallout4_en.DLSTRINGS" />
<ComponentRef Id="DLCworkshop01_en.STRINGS" />
<ComponentRef Id="DLCworkshop01_en.ILSTRINGS" />
<ComponentRef Id="DLCworkshop01_en.DLSTRINGS" />
<ComponentRef Id="DLCworkshop02_en.STRINGS" />
<ComponentRef Id="DLCworkshop02_en.ILSTRINGS" />
<ComponentRef Id="DLCworkshop02_en.DLSTRINGS" />
<ComponentRef Id="DLCworkshop03_en.STRINGS" />
<ComponentRef Id="DLCworkshop03_en.ILSTRINGS" />
<ComponentRef Id="DLCworkshop03_en.DLSTRINGS" />
<ComponentRef Id="Fallout4_Cestina.html" />
<ComponentRef Id="Fallout4_Cestina.png" />
</Feature>
<!-- Open README after install -->
<Property Id="WixShellExecTarget" Value="[#Fallout4_Cestina.html]" />
<CustomAction Id="OpenReadme" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" Return="ignore" />
<UI>
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="OpenReadme">NOT Installed</Publish>
</UI>
<!-- Read-only flag removal -->
<SetProperty Id="RemoveReadOnly" Before="RemoveReadOnly" Sequence="execute"
Value="&quot;[WindowsFolder]System32\attrib.exe&quot; -r &quot;[FALLOUTCONFIG]&quot;" />
<CustomAction Id="RemoveReadOnly" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="deferred"
Return="check" Impersonate="no" />
<!-- Custom install sequence -->
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize" />
<Custom Action="RemoveReadOnly" After="InstallInitialize" />
</InstallExecuteSequence>
<!-- Define installer icon -->
<Icon Id="Icon" SourceFile="installer-icon.ico" />
<!-- Configure properties for add/remove programs -->
<Property Id="ARPPRODUCTICON" Value="Icon" />
<Property Id="ARPHELPLINK" Value="$(var.ProductUrl)" />
<!-- Define UI properties -->
<WixVariable Id="WixUIBannerBmp" Value="installer-banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="installer-header.bmp" />
<!-- Include UI configuration -->
<?include installer-simpleui.wxi ?>
</Product>
</Wix>
<Include>
<UIRef Id="WixUI_Common" />
<UI>
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<TextStyle Id="WixUI_Font_Version" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="Minimal" />
<Property Id="ARPNOMODIFY" Value="1" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Dialog Id="CustomWelcomeDlg" Width="370" Height="270" Title="!(loc.WelcomeDlg_Title)">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" Hidden="yes">
<Publish Property="WixUI_InstallMode" Value="Update">Installed AND PATCH</Publish>
<Condition Action="show">Installed</Condition>
</Control>
<Control Id="WelcomeBack" Type="PushButton" X="156" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)">
<Condition Action="hide">Installed</Condition>
</Control>
<Control Id="Install" Type="PushButton" ElevationShield="yes" X="212" Y="243" Width="80" Height="17" Default="yes" Text="!(loc.WelcomeEulaDlgInstall)" Hidden="yes">
<Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1</Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
<Condition Action="show">ALLUSERS AND NOT Installed</Condition>
</Control>
<Control Id="InstallNoShield" Type="PushButton" ElevationShield="no" X="212" Y="243" Width="80" Height="17" Default="yes" Text="!(loc.WelcomeEulaDlgInstall)" Hidden="yes">
<Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1</Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 1]]></Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</Publish>
<Condition Action="show">NOT ALLUSERS AND NOT Installed</Condition>
</Control>
<Control Id="InstallBack" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)">
<Condition Action="hide">NOT Installed</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="80" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>Pomocí Průvodce instalací můžete změnit způsob instalace součástí produktu [ProductName] do počítače nebo odebrat tento produkt z počítače. Pokračujte kliknutím na tlačítko Nainstalovat, nebo kliknutím na tlačítko Storno Průvodce instalací ukončete</Text>
<Condition Action="show">NOT Installed OR NOT PATCH</Condition>
<Condition Action="hide">Installed AND PATCH</Condition>
</Control>
<Control Id="PatchDescription" Type="Text" X="135" Y="80" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeUpdateDlgDescriptionUpdate)">
<Condition Action="show">Installed AND PATCH</Condition>
<Condition Action="hide">NOT Installed OR NOT PATCH</Condition>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeDlgTitle)" />
<Control Id="Version" Type="Text" X="135" Y="214" Width="220" Height="20" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Version}Verze: $(var.ProductVersion)" />
</Dialog>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Publish Dialog="CustomWelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomWelcomeDlg" Order="2">Installed AND PATCH</Publish>
<InstallUISequence>
<Show Dialog="CustomWelcomeDlg" Before="ProgressDlg">NOT Installed OR PATCH</Show>
</InstallUISequence>
</UI>
</Include>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment