AW: Installer für Spielemod gesucht
Die Idee mit InnoSetup ist genial
Danke
Mit Hilfe eines Video tutorials habe ich in 30min folgendes erstellt:
___________________________________________________________________
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "country3's mod"
#define MyAppVersion "country3's mod 8.10,ver.1"
#define MyAppPublisher "country3"
#define MyAppURL "http://forum.worldoftanks.eu/index.php?/topic/300827-0810-country3s-mod/#topmost"
#define MyAppExeName ""
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{4A062EC3-1E92-46FD-9040-ACA807ABD6B7}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:Games\World of Tanks\res_mods
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputDir=C:\Users\Henrik\Desktop
OutputBaseFilename=country3's mod 8.10, ver.1
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler
efault.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\mods\country3\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\mods\Infopanel\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm
rogramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec postinstall skipifsilent
___________________________________________________________
Eine Frage noch: Ich habe 2 Files. country3 und infopanel. Wie kann man es machen das das infopanel nur optional in den country3 ordner installiert wird?
Edit: Das es etwa so ausschaut: