Skip to content

Commit 1224807

Browse files
author
Chris Jakeman
committed
update for V1.6
Adds settings to work with 64-bit Windows and prompt for destination folder. Also updates instructions to users to match new mechanisms for updating OR and installing content.
1 parent d0c2856 commit 1224807

File tree

5 files changed

+47
-40
lines changed

5 files changed

+47
-40
lines changed

Source/Installer/Installer.iss

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define DotNETName "Microsoft .NET Framework 4.7.2"
2222

23-
#define MyAppURL "http://openrails.org" ; Not yet HTTPS
23+
#define MyAppURL "https://openrails.org"
2424
#define MyAppSourceURL "http://openrails.org/download/source/"
2525
#define MyAppSupportURL "https://launchpad.net/or"
2626

@@ -31,7 +31,7 @@
3131
#define MyAppDocPath "..\..\Program\Documentation"
3232

3333
#define NetRedistPath "..\..\.NET Framework 4.7.2 web installer"
34-
#define NetRedist "NDP472-KB4054531-Web.exe"
34+
#define NetRedist "ndp472-kb4054531-web.exe" ; Has to be lower-case to match download
3535

3636
[Setup]
3737
; NOTE: The value of AppId uniquely identifies this application.
@@ -50,20 +50,26 @@ DefaultDirName ={commonpf}\{#MyAppName}
5050
DefaultGroupName={#MyAppName}
5151
AllowNoIcons =yes
5252
LicenseFile ={#MyAppProgPath}\Copying.txt
53-
InfoBeforeFile ={#MyAppProgPath}\Prerequisites.txt
53+
InfoBeforeFile ={#MyAppProgPath}\Prerequisites.txt
5454
InfoAfterFile ={#MyAppProgPath}\Readme.txt
5555

56-
; Remove the following line to run in administrative install mode (install for all users.)
57-
; PrivilegesRequired=lowest ; Cannot create the directory C:\Program Files\Open Rails
56+
; Prompt for a destination folder
57+
DisableDirPage =no
58+
; 32-bit is the default, installing in "Program Files (x86)" on 64-bit Windows. "x64compatible" uses Program Files on 64-bit Windows
59+
ArchitecturesInstallIn64BitMode =x64compatible
60+
61+
; Default is admin install mode.
62+
; Comment in the following line to run in non-administrative install mode, but that cannot create the directory C:\Program Files\Open Rails
63+
; PrivilegesRequired=lowest
5864

5965
Compression =lzma
6066
SolidCompression=yes
61-
WizardStyle=modern
67+
WizardStyle =modern
6268
Uninstallable =yes
63-
UninstallDisplayIcon={app}\{#MyAppExeName}
64-
OutputBaseFilename=OpenRailsSetup
69+
UninstallDisplayIcon ={app}\{#MyAppExeName}
70+
OutputBaseFilename =OpenRailsSetup
6571

66-
; Windows 7 SP1
72+
; Windows 7 SP1 Correct value, so ignore final warning message from Build > Compile
6773
MinVersion =6.1sp1
6874

6975
[Languages]
@@ -79,7 +85,7 @@ Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
7985
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
8086
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
8187
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
82-
Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
88+
;Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
8389
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
8490
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
8591
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"

Source/Installer/Using the installer scripts.txt

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
Using the installer scripts.txt
2-
Last updated: 2022-08-21 by Chris Jakeman
2+
Last updated: 2025-06-21 by Chris Jakeman
33

4-
1. If you wish to update the version name from "1.5", then edit the line
5-
#define MyAppVersion "1.5"
4+
Compiling the scripts and data files on your own PC and testing them there or on a virtual machine
5+
==================================================================================================
6+
7+
1. If you wish to update the version name from "1.6", then edit the line
8+
#define MyAppVersion "1.6"
69
in the file
710
Source\Installer\Version.iss
811
and update the Release number and date in:
912
Source\RunActivity\Readme.txt
1013
and in
1114
Source\RunActivity\Prerequisites.txt
1215

16+
The text in these documents is shown by the Installer to the user, so check this is still up to date.
17+
1318
2. Download and install Inno Setup from http://www.jrsoftware.org/isdl.php
14-
Initial trials (Apr 2014) used v5.5.4. Open Rails v1.5 uses 6.1.2
19+
Initial trials (Apr 2014) used v5.5.4. Open Rails v1.6 uses 6.4.3
1520

16-
3. Download Microsoft .NET Framework 4.7.2 web installer for Windows from:
21+
3. Download Microsoft .NET Framework 4.7.2 web installer package for Windows from:
1722
https://support.microsoft.com/en-us/topic/microsoft-net-framework-4-7-2-web-installer-for-windows-dda5cddc-b85e-545d-8d4a-d213349b7775
1823
and save in
1924
<A>\.NET Framework 4.7.2 web installer\ndp472-kb4054531-web.exe
@@ -23,28 +28,31 @@ Initial trials (Apr 2014) used v5.5.4. Open Rails v1.5 uses 6.1.2
2328
From Source\Installer, copy OpenRails.iss and Version.iss into <A>\Temp\Installer
2429

2530
5. Repeat the following as often as required:
26-
A. Download OR zip file from https://github.com/openrails/openrails/releases, choose the latest (i.e. pre-release) version, open the Assets concertina and pick OpenRails-Stable.zip
31+
A. Download OR zip file from https://github.com/openrails/openrails/releases, choose the latest (i.e. pre-release) version, open the Assets concertina and pick Open Rails <version>.zip where <version> is something like "1.6-rc2"
2732

2833
B. Unzip into folder
29-
<A>\Open Rails\Program\
34+
<A>\Program\
3035

3136
C. Remove
32-
<A>\Open Rails\Program\Updater.ini
37+
<A>\Program\Updater.ini
3338
as James Ross advises because the updater cannot update an installed version yet.
3439

35-
D. Download source from https://github.com/openrails/openrails/releases, choose the latest (i.e. pre-release) version, open the Assets concertina and pick Source code (openrails-1.5-rc1.zip) and extract the folder Source\Documentation.
40+
D. Download source from https://github.com/openrails/openrails/releases, choose the latest (i.e. pre-release) version, open the Assets concertina and pick Source code Open Rails <version> Source.zip where <version> is something like "1.6-rc2" and extract the folder Source\Documentation.
3641

3742
E. Copy contents into folder
38-
<A>\Open Rails\Program\Documentation\
43+
<A>\Program\Documentation\
44+
45+
F. If you made changes to Source\RunActivity\Readme.txt or Source\RunActivity\Prerequisites.txt in Step 1, then
46+
copy them to <A>\Program\ to overwrite the downloaded files.
3947

40-
F. Use Inno Setup > Build > Compile to compile the installer script
48+
G. Use Inno Setup Compiler > Build > Compile to compile the installer script
4149
<A>\Temp\Installer\Installer.iss
4250
and generate the Open Rails Installer
4351

44-
G. The generated file will be found in <A>\Temp\Installer\Output\OpenRailsSetup.exe
52+
H. The generated file will be found in <A>\Temp\Installer\Output\OpenRailsSetup.exe
4553

4654
6. Test the installer by building Virtual Machines with a fresh copy of Windows.
47-
Open Rails v1.5 is compatible with Windows from 7 (SP1) to 11 and, hopefully, beyond.
55+
Open Rails v1.6 is compatible with Windows from 7 (SP1) to 11 and, hopefully, beyond.
4856

4957
Arrange for the VM to have Internet access and a shared folder.
5058
Copy OpenRailsSetup.exe to the shared folder.

Source/Installer/Version.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define MyAppVersion "none"
1+
#define MyAppVersion "1.6"

Source/RunActivity/Prerequisites.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Open Rails software Prerequisites.txt - Release v1.5
2-
September 2022
1+
Open Rails software Prerequisites.txt - Release v1.6 June 2025
32

4-
Visit our web-page at http://openrails.org for details and links.
3+
Visit our web-page at https://openrails.org for details and links.
54

65
Please note the distribution and use of Open Rails software is governed by the GNU License - see file Copying.txt.
76
Source code can be downloaded from https://github.com/openrails/openrails

Source/RunActivity/Readme.txt

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
Open Rails software Readme.txt - Release v1.5
2-
September 2022
1+
Open Rails software Readme.txt - Release v1.6 - June 2025
32

4-
Visit our web-page at http://openrails.org for details and links.
3+
Visit our web-page at https://openrails.org for details and links.
54

6-
Please note the distribution and use of Open Rails software is governed by the GNU License - see file Copying.txt.
7-
Source code can be downloaded from https://github.com/openrails/openrails
5+
Please note the distribution and use of Open Rails software is governed by the GNU License - see file Copying.txt. Source code can be downloaded from https://github.com/openrails/openrails
86

97
OPERATION
10-
- You can run Open Rails by clicking on the Desktop icon or the Quick Launch icon or the Start Menu entry or C:\Program Files (x86)\Open Rails\OpenRails.exe
8+
- You can run Open Rails by clicking on the Desktop icon or the Quick Launch icon or the Start Menu entry or C:\Program Files\Open Rails\OpenRails.exe
119
- Help and Game Controls are available in-game using the Help key (F1).
1210
- Please read the operations manual in Open Rails > Documents > Manual.pdf
1311

1412
CONTENT
1513
This Open Rails download does not include any content - no routes, trains, activities - just the simulation program.
1614

17-
If you have content suitable for Open Rails or Microsoft Train Simulator already in place, then you can use the
18-
Open Rails program to operate those routes and drive those trains straight away.
15+
If you have content suitable for Open Rails or Microsoft Train Simulator already in place, then you can use the Open Rails program to operate those routes and drive those trains straight away. If not, then you will need to install some models bought from a vendor or free from the community before you can use Open Rails.
1916

20-
If not, then you will need to install some models bought from a vendor or free from the community before you can use Open Rails.
21-
22-
Or you can try out the 2 self-installing models on our home page - both free of charge.
17+
Use the Content button for some auto-install routes or visit the catalogue at www.openrails.org/download/explore-content
2318

2419
SUPPORT
2520
Please send bug reports and feature requests to our Bug Tracker at https://launchpad.net/or
2621

2722
UPDATES
28-
Open Rails checks once a day for new versions and, if found, adds an Update link in the top right of its main menu.
29-
Click this Update link to download and update your Open Rails.
23+
Open Rails checks once a day for new versions and, if found, adds a red marker to the notification icon in the top right of the menu form. Click on the notification to find the details of an update and install it.

0 commit comments

Comments
 (0)