Valkrionn
The Hamster King
I had someone ask how you make an installer, so I decided I'd write up a little tutorial on the one I'm using for R i f E. This will really just be a description of what each line does... It's a fairly easy to use install script, which I got from Fall Further.
This script requires Inno, a very flexible install tool. Get it here.
First, the installer itself:
This script requires Inno, a very flexible install tool. Get it here.
First, the installer itself:
Code:
[Setup]
AppId={{D67217CB-1166-4023-BB9C-02E986B0B425}
AppName=Rise from Erebus
AppVerName=RifE 1.01
DefaultDirName={reg:HKLM\SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword,INSTALLDIR}\Mods\Rise from Erebus\
OutputBaseFilename=RifE Setup
Compression=lzma
SolidCompression=yes
DisableProgramGroupPage=yes
SetupIconFile=D:\Mods\Valkrionn.ico
[Types]
Name: "full"; Description: "Default installation"
[Components]
Name: "RifE"; Description: "Rise from Erebus Core Files"; Types: full; Flags: fixed
Name: "FFPlus"; Description: "Copy Fall Further Plus Files"; Types: full; Flags: fixed
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
[Files]
Source: "{reg:HKLM\SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword,INSTALLDIR}\Mods\Fall Further Plus\*"; DestDir: "{app}"; Flags: external recursesubdirs createallsubdirs comparetimestamp; Components: FFPlus
Source: "D:\Mods\Patch\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: FFPlus
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{userdesktop}\Rise from Erebus"; Filename: "{reg:HKLM\SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword,INSTALLDIR}\Civ4BeyondSword.exe"; Parameters: "mod=\Rise from Erebus"; Tasks: desktopicon; IconFilename: "{app}\Valkrionn.ico"
[Run]
Filename: "{reg:HKLM\SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword,INSTALLDIR}\Civ4BeyondSword.exe"; Parameters: "mod=\Rise from Erebus"; Description: "{cm:LaunchProgram,Rise from Erebus}"; Flags: nowait postinstall skipifsilent