2013-03-13 19:41:04 +00:00
|
|
|
#define BaseDir ExtractFilePath(ExtractFilePath(ExtractFilePath(SourcePath)))
|
|
|
|
#define AppVersion GetFileVersion(BaseDir + "\Bin\" + Configuration + "\Project64.exe")
|
|
|
|
|
2015-01-15 23:58:00 +00:00
|
|
|
#include BaseDir+"\Source\Installer\binno\binno.iss"
|
|
|
|
|
2013-03-13 19:41:04 +00:00
|
|
|
[Setup]
|
2015-02-25 08:01:30 +00:00
|
|
|
AppId={{BEB5FB69-4080-466F-96C4-F15DF271718B}
|
2015-11-10 05:21:49 +00:00
|
|
|
AppName=Project64
|
2013-03-13 19:41:04 +00:00
|
|
|
AppVersion={#AppVersion}
|
2015-02-23 05:42:51 +00:00
|
|
|
DefaultDirName={pf}\Project64 2.2
|
2013-03-13 19:41:04 +00:00
|
|
|
VersionInfoVersion={#AppVersion}
|
|
|
|
OutputDir={#BaseDir}\Bin\{#Configuration}
|
2015-02-23 05:42:51 +00:00
|
|
|
OutputBaseFilename=Setup Project64 2.2
|
|
|
|
VersionInfoDescription=Installation Setup of Project64 2.2
|
2013-03-13 19:41:04 +00:00
|
|
|
Compression=lzma2/ultra64
|
2013-03-22 05:43:43 +00:00
|
|
|
WizardImageFile=Installer-Sidebar.bmp
|
|
|
|
WizardSmallImageFile=Pj64LogoSmallImage.bmp
|
|
|
|
DisableProgramGroupPage=yes
|
|
|
|
DisableReadyPage=yes
|
|
|
|
UninstallDisplayIcon={uninstallexe}
|
2015-12-04 06:49:31 +00:00
|
|
|
SetupIconFile={#BaseDir}\Source\Project64\UserInterface\Icons\pj64.ico
|
2013-03-22 05:43:43 +00:00
|
|
|
|
|
|
|
[Run]
|
2015-11-10 05:21:49 +00:00
|
|
|
Filename: "{app}\Project64.exe"; Description: "{cm:LaunchProgram,{#StringChange('Project64', '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
2013-03-13 19:41:04 +00:00
|
|
|
|
|
|
|
[Files]
|
|
|
|
Source: "{#BaseDir}\Bin\{#Configuration}\Project64.exe"; DestDir: "{app}"; Flags: ignoreversion
|
2015-03-05 05:23:07 +00:00
|
|
|
Source: "{#BaseDir}\Config\Glide64.rdb"; DestDir: "{app}\Config"
|
2013-03-13 19:41:04 +00:00
|
|
|
Source: "{#BaseDir}\Config\Project64.cht"; DestDir: "{app}\Config"
|
|
|
|
Source: "{#BaseDir}\Config\Project64.rdb"; DestDir: "{app}\Config"
|
|
|
|
Source: "{#BaseDir}\Config\Project64.rdx"; DestDir: "{app}\Config"
|
2015-03-23 18:28:00 +00:00
|
|
|
Source: "{#BaseDir}\Lang\*.pj.Lang"; DestDir: "{app}\Lang"
|
2013-03-13 19:41:04 +00:00
|
|
|
Source: "{#BaseDir}\Plugin\Audio\Jabo_Dsound.dll"; DestDir: "{app}\Plugin\Audio"
|
|
|
|
Source: "{#BaseDir}\Plugin\GFX\Jabo_Direct3D8.dll"; DestDir: "{app}\Plugin\GFX"
|
2013-05-01 03:35:17 +00:00
|
|
|
Source: "{#BaseDir}\Plugin\GFX\PJ64Glide64.dll"; DestDir: "{app}\Plugin\GFX"
|
2015-02-23 05:42:51 +00:00
|
|
|
Source: "{#BaseDir}\Plugin\Input\PJ64_NRage.dll"; DestDir: "{app}\Plugin\Input"
|
2013-03-13 19:41:04 +00:00
|
|
|
Source: "{#BaseDir}\Plugin\RSP\RSP 1.7.dll"; DestDir: "{app}\Plugin\RSP"
|
|
|
|
|
|
|
|
[Dirs]
|
|
|
|
Name: "{app}\Config"; Permissions: users-modify
|
|
|
|
Name: "{app}\Logs"; Permissions: users-modify
|
|
|
|
Name: "{app}\Save"; Permissions: users-modify
|
|
|
|
Name: "{app}\Screenshots"; Permissions: users-modify
|
2013-04-28 05:49:14 +00:00
|
|
|
Name: "{app}\Textures"; Permissions: users-modify
|
2013-03-13 19:41:04 +00:00
|
|
|
|
|
|
|
[Icons]
|
2015-11-10 05:21:49 +00:00
|
|
|
Name: "{commonprograms}\Project64 2.2\Project64"; Filename: "{app}\Project64.exe"
|
|
|
|
Name: "{commonprograms}\Project64 2.2\Uninstall Project64 2.2"; Filename: "{uninstallexe}"; Parameters: "/LOG"
|
|
|
|
Name: "{commonprograms}\Project64 2.2\Support"; Filename: "http://forum.pj64-emu.com"
|
2015-01-15 23:58:00 +00:00
|
|
|
|
|
|
|
[Code]
|
|
|
|
function HaveCommandlineParam (inParam: String): Boolean;
|
|
|
|
var
|
|
|
|
LoopVar : Integer;
|
|
|
|
begin
|
|
|
|
LoopVar := 1;
|
|
|
|
Result := false;
|
|
|
|
|
|
|
|
while LoopVar <= ParamCount do
|
|
|
|
begin
|
|
|
|
if ((ParamStr(LoopVar) = '-' + inParam) or (ParamStr(LoopVar) = '/' + inParam)) then
|
|
|
|
begin
|
|
|
|
Result := true;
|
|
|
|
Break;
|
|
|
|
end;
|
|
|
|
LoopVar := LoopVar + 1;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure InitializeWizard();
|
|
|
|
begin
|
|
|
|
if ((WizardSilent() <> true) and (HaveCommandlineParam('noads') <> true)) then begin
|
|
|
|
CreateBINNOPage(wpSelectTasks,'pj64emu','pj64emu');
|
|
|
|
end;
|
2015-01-31 19:27:27 +00:00
|
|
|
end;
|