diff --git a/installer.iss b/installer.iss new file mode 100644 index 0000000..fe70335 --- /dev/null +++ b/installer.iss @@ -0,0 +1,44 @@ +; Script generated by the Inno Setup Script Wizard. +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! + +#define MyAppName "OpenRCT2 Launcher" +#define MyAppVersion "0.0.4" +#define MyAppPublisher "OpenRCT2" +#define MyAppURL "http://www.github.com/LRFLEW/OpenRCT2Launcher" +#define MyAppExeName "OpenRCT2.exe" + +[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={{D71D87CE-20E7-4DB6-A0D8-E6DE57051B35} +AppName={#MyAppName} +AppVersion={#MyAppVersion} +;AppVerName={#MyAppName} {#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +DefaultDirName={pf}\{#MyAppName} +DisableProgramGroupPage=yes +OutputDir=. +OutputBaseFilename=OpenRCT2Launcher +Compression=lzma +SolidCompression=yes + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" + +[Files] +Source: "build-Windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs +; NOTE: Don't use "Flags: ignoreversion" on any shared system files + +[Icons] +Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" +Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon + +[Run] +Filename: "{app}\vcredist_x86.exe"; Parameters: "/passive" +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent + diff --git a/installer.nsi b/installer.nsi deleted file mode 100644 index c629e49..0000000 --- a/installer.nsi +++ /dev/null @@ -1,52 +0,0 @@ -Name "OpenRCT2 Launcher" -OutFile "build-OpenRCT2Launcher-Distribute-Archive\OpenRCT2Launcher.exe" -InstallDir $PROGRAMFILES\OpenRCT2Launcher -InstallDirRegKey HKLM "Software\OpenRCT2Launcher" "Install_Dir" -RequestExecutionLevel admin - -Page components -Page directory -Page instfiles - -UninstPage uninstConfirm -UninstPage instfiles - -!system "rmdir /S /Q build-OpenRCT2Launcher-Distribute-Unpacked & mkdir build-OpenRCT2Launcher-Distribute-Unpacked" -!system "pushd build-OpenRCT2Launcher-*32bit-Release & copy release\OpenRCT2.exe ..\build-OpenRCT2Launcher-Distribute-Unpacked\OpenRCT2.exe & popd" -!system "windeployqt --dir build-OpenRCT2Launcher-Distribute-Unpacked\OpenRCT2Launcher-Qt5 build-OpenRCT2Launcher-Distribute-Unpacked\OpenRCT2.exe" -!system "copy C:\OpenSSL-Win32\libeay32.dll build-OpenRCT2Launcher-Distribute-Unpacked\libeay32.dll" -!system "copy C:\OpenSSL-Win32\ssleay32.dll build-OpenRCT2Launcher-Distribute-Unpacked\ssleay32.dll" -!system "rmdir /S /Q build-OpenRCT2Launcher-Distribute-Archive & mkdir build-OpenRCT2Launcher-Distribute-Archive" -!system "pushd build-OpenRCT2Launcher-Distribute-Unpacked & 7z a -tzip ../build-OpenRCT2Launcher-Distribute-Archive\OpenRCT2Launcher.zip * & popd" - -Section "OpenRCT2 Launcher" - SectionIn RO - SetOutPath $INSTDIR - File /r "build-OpenRCT2Launcher-Distribute-Unpacked\OpenRCT2.exe" - File /r "build-OpenRCT2Launcher-Distribute-Unpacked\libeay32.dll" - File /r "build-OpenRCT2Launcher-Distribute-Unpacked\ssleay32.dll" - File /r "build-OpenRCT2Launcher-Distribute-Unpacked\OpenRCT2Launcher-Qt5" - WriteRegStr HKLM "Software\OpenRCT2Launcher" "Install_Dir" "$INSTDIR" - CreateShortcut "$SMPROGRAMS\OpenRCT2.lnk" "$INSTDIR\OpenRCT2.exe" - - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2Launcher" "DisplayName" "OpenRCT2 Launcher" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2Launcher" "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2Launcher" "NoModify" 1 - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2Launcher" "NoRepair" 1 - WriteUninstaller "uninstall.exe" -SectionEnd - -Section "Desktop Shortcut" - CreateShortcut "$DESKTOP\OpenRCT2.lnk" "$INSTDIR\OpenRCT2.exe" -SectionEnd - -Section "Uninstall" - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2Launcher" - DeleteRegKey HKLM "Software\OpenRCT2Launcher" - Delete "$INSTDIR\OpenRCT2.exe" - Delete "$INSTDIR\libeay32.dll" - Delete "$INSTDIR\ssleay32.dll" - RMDir /r "$INSTDIR\OpenRCT2Launcher-Qt5" - Delete "$SMPROGRAMS\OpenRCT2.lnk" - Delete "$DESKTOP\OpenRCT2.lnk" -SectionEnd