Finally found the 'enhanced editor' option in my profile settings ;)
I'll try to explain the different sections of the script.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "PjXnaTest"
#define MyAppVerName "PjXnaTest 0.01"
#define MyAppPublisher "Prolantic"
#define MyAppURL "http://www.pellej.com/"
#define MyAppExeName "WindowsGame1.exe"
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup_PjXnaTest
Compression=lzma
SolidCompression=yes
[Languages]
Name: english; MessagesFile: compiler:Default.isl
This was all generated by the wizard and contains basic info about the app, like name, version, executable, website etc.
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
This allows the user to create a desktop icon for the game. I believe the actual icon is taken from the exe file.
[Files]
Source: C:\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\Redist\DX Redist\*; DestDir: {tmp}
Source: C:\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\Redist\XNA FX Redist\xnafx_redist.msi; DestDir: {tmp}
Source: bin\x86\Release\WindowsGame1.exe; DestDir: {app}; Flags: ignoreversion
Source: bin\x86\Release\Content\*; DestDir: {app}\Content; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
The Files sections list all files to be included in the installer. The first 2 lines lists the redistributables for DirectX and XNA - note that their destination is set to {tmp}, i.e. they will be extracted to a temp folder during installation. Next comes the files for the game itself: the executable and the binary content files. I've used relative paths here - the install script is located at the my project folder, i.e. where the csproj file is stored.
TO BE CONTINUED ...