; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=Super Metroid Classic
AppVerName=Super Metroid Classic Beta
AppPublisher=Justice Productions
AppPublisherURL=http://www.supermetroidclassic.com
AppSupportURL=http://www.supermetroidclassic.com
AppUpdatesURL=http://www.supermetroidclassic.com
DefaultDirName={pf}\SMTC
DefaultGroupName=Super Metroid Classic
DisableProgramGroupPage=yes
OutputDir=C:\Setup
OutputBaseFilename=SMTC Setup
SetupIconFile=C:\Dev-Cpp\Projects\SMTCLevelEdit\SMTC.ico
Compression=lzma
SolidCompression=yes

[CustomMessages]
ProgramAddons=Program Addons

[Languages]
Name: "eng"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "installeditor"; Description: "Install SMTC World Editor v0.8"; GroupDescription: "{cm:ProgramAddons}"; Flags: unchecked
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "editoricon"; Description: "Create a desktop icon for SMTC World Editor"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Setup\SMTC\SMTC.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Downloads\SMTC Launcher.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Setup\SMTC\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Dev-Cpp\Projects\SMTC Level Editor 0.8 Source\New Folder\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Tasks: installeditor
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Registry]
Root: HKLM; Subkey: "Software\Justice Productions\SMTC"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\Justice Productions"; Flags: uninsdeletekey

[Icons]
Name: "{group}\SMTC Launcher"; Filename: "{app}\SMTC Launcher.exe"; WorkingDir: "{app}"; Comment: "Run Super Metroid Classic";
Name: "{group}\SMTC World Editor"; Filename: "{app}\SMTCLevEdit.exe"; WorkingDir: "{app}"; Comment: "Run SMTC World Editor"; Tasks: installeditor
Name: "{group}\{cm:UninstallProgram,Super Metroid Classic}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\SMTC Launcher"; Filename: "{app}\SMTC Launcher.exe"; WorkingDir: "{app}"; Comment: "Run Super Metroid Classic"; Tasks: desktopicon
Name: "{userdesktop}\SMTC World Editor"; Filename: "{app}\SMTCLevEdit.exe"; WorkingDir: "{app}"; Comment: "Run SMTC World Editor"; Tasks: editoricon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Super Metroid Classic"; Filename: "{app}\SMTC.exe"; Tasks: quicklaunchicon

[Run]
Filename: "{app}\Readme.txt"; Description: "View the SMTC Readme"; Flags: postinstall shellexec skipifsilent
Filename: "{app}\Changelog.txt"; Description: "View the SMTC Changelog"; Flags: postinstall shellexec skipifsilent
;Filename: "{app}\SMTC.exe"; Description: "{cm:LaunchProgram,Super Metroid Classic}"; Flags: nowait postinstall skipifsilent
;Filename: "{app}\SMTCLevEdit.exe";  Description: "{cm:LaunchProgram,Super Metroid Classic}"; Flags: nowait postinstall skipifsilent; Tasks: installeditor

