Here ya go:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[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={{DF860B27-8D79-4F68-ADDC-129829C87CD0}
AppName=JumpSwitch
AppVerName=JumpSwitch v0.01.01
AppPublisher=MJP
DefaultDirName={pf}\JumpSwitch
DefaultGroupName=JumpSwitch
AllowNoIcons=yes
OutputDir=C:\Users\MJP\Documents\Dev\JumpSwitch\JSSetup
OutputBaseFilename=JSSetup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "..\bin\x86\Release\*"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\x86\Release\Content\*"; DestDir: "{app}\Content\"; Flags: ignoreversion
Source: "..\bin\x86\Release\Content\Effects\*"; DestDir: "{app}\Content\Effects\"; Flags: ignoreversion
Source: "..\bin\x86\Release\Content\Fonts\*"; DestDir: "{app}\Content\Fonts\"; Flags: ignoreversion
Source: "..\bin\x86\Release\Content\Levels\*"; DestDir: "{app}\Content\Levels\"; Flags: ignoreversion
Source: "..\bin\x86\Release\Content\Models\*"; DestDir: "{app}\Content\Models\"; Flags: ignoreversion
Source: "dotnetfx.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "vcredist_x86.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "dxwebsetup.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "xnafx20_redist.msi"; DestDir: "{app}"; AfterInstall: AfterXnaInstall(); Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\JumpSwitch"; Filename: "{app}\JumpSwitchPC.exe"; WorkingDir: "{app}"
Name: "{group}\JSMapEditor"; Filename: "{app}\JSMapEditor.exe"; WorkingDir: "{app}"
Name: "{group}\{cm:UninstallProgram,JumpSwitch}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\JumpSwitch"; Filename: "{app}\JumpSwitchPC.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\JumpSwitch"; Filename: "{app}\JumpSwitchPC.exe"; Tasks: quicklaunchicon
[Code]
var
ErrorCode: Integer;
procedure AfterXnaInstall();
begin
ShellExec(', ExpandConstant('{app}\dotnetfx.exe'),', ', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
ShellExec(', ExpandConstant('{app}\vcredist_x86.exe'),', ', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
ShellExec(', ExpandConstant('{app}\dxwebsetup.exe'),', ', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
ShellExec(', ExpandConstant('{app}\xnafx20_redist.msi'),', ', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
end;
You'd just need to modify the file paths to point to where your content and binaries/executables are located (also for the XNA/DX/CRT/.NET installers if you don't keep them in the same folder as the setup script). And change the names and GUID too, of course. 
|