Open Rails installer Ready for testing
#1
Posted 18 April 2014 - 02:42 AM
The installer checks to make sure that the Windows is XP (with Service Pack 2) or a later Windows.
Also it installs .NET v3.5 SP1 Redistributable, if needed.
Also it installs XNA v3.1 Redistributable, if needed
I've made 2 versions:
setup_OR_pre-v1.0_from_download.exe is the small one. It's 20MB because it includes the XNA file. The 240MB .NET file is downloaded automatically if needed.
setup_OR_pre-v1.0_from_DVD.exe is the large one. It's 256MB because it includes both the XNA and the .NET file. The idea is that this can be included in a DVD for routes which are too large to be downloaded (e.g. Mid East Plus).
It works for me on a small number of PCs, so I would be grateful for anyone who has a spare PC to give it a try and report problems here.
Thanks,
#2
Posted 18 April 2014 - 02:59 AM
Step 1:
I could apply a certificate so the publisher would read "Chris Jakeman", which is better than "Unknown Publisher". It costs about $150/year to get a certificate for OpenRails.org :-(
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
Step 8:
Step 9:
Step 10:
Step 11:
Unpacking and installing XNA takes a while. I tried to provide a separate progress bar but couldn't manage it so we just sit here for a minute. For the longer .NET installation, there is a progress bar.
Step 12: Readme.txt - part 1/3
I've re-written the Readme.txt to suit.
I will be changing v0.9++ to pre-v1.0 to match the installer filenames. I expect there will be a fresh installer for each major version OR v1.0, OR v1.1 etc.
Now that James has provided a convenient update mechanism, there is no need for more installers than this.
Step 13: Readme.txt - part 2/3
Step 14: Readme.txt - part 3/3
Step 15:
Step 16:
I've modified the initial prompt, so that it doesn't suggest that MSTS is required.
Step 17:
There's an uninstaller too.
#4
Posted 18 April 2014 - 10:22 AM
Anyway, the install worked like a charm. Installed it, updated to X2186, all is well. It also detected my MSTS registry entries and started up my setup with ho hassle at all! http://www.elvastower.com/forums/public/style_emoticons/default/thumbup3.gif
#5
Posted 19 April 2014 - 06:12 AM
cjakeman, on 18 April 2014 - 02:59 AM, said:
If you'd like, I can sign the files if I can generate the whole things cleanly (and for free) from a configuration file.
cjakeman, on 18 April 2014 - 02:59 AM, said:
I hope there aren't two identical screens here. :oldstry:
cjakeman, on 18 April 2014 - 02:59 AM, said:
We'll have to decide what update plan we want here. If we want them to get the weekly experimental releases, just copy that Updater.ini in place; otherwise, we'll need to set up a different update target.
It's also worth bearing in mind that my updater code is still very primitive - it cannot cope with a typical installed environment.
cjakeman, on 18 April 2014 - 02:59 AM, said:
I hope that runs without elevation. :cool3: (Not every installer gets that right.)
Thanks for doing this, an installer is very useful to have.
#6
Posted 19 April 2014 - 07:06 AM
That Genset Foamer, on 18 April 2014 - 10:22 AM, said:
Thanks for trying it out. Good to get some feedback.
We could do with a few more people trying it out on a variety of targets before we release it. How about Vista or Windows 8 anyone?
#7
Posted 19 April 2014 - 07:39 AM
James Ross, on 19 April 2014 - 06:12 AM, said:
It's also worth bearing in mind that my updater code is still very primitive - it cannot cope with a typical installed environment.
Once tested a bit more, my intention was to put a link to the small installer on OpenRails.org, so that our new users don't have to mess about with XNA (and even .NET 3.5 SP1). If you have something that needs attention first, I'm happy to wait until you give the OK.
We could wait until the release of v1.0 if you prefer.
I don't know much about SVN, so could you suggest a location in SVN where I can save the scripts that create the installers? Should I also save the redistributables in SVN? If so, can we save them in a way that doesn't download the redistributables by default for everyone using SVN Checkout?
#8
Posted 19 April 2014 - 08:14 AM
cjakeman, on 19 April 2014 - 07:39 AM, said:
You can certainly do that but there's no point including Updater.ini currently, as it won't work in an installed scenario. I hope to address that in time but not in the very near future.
cjakeman, on 19 April 2014 - 07:39 AM, said:
You can't avoid people downloading things in Subversion when most people will check out the root (trunk) rather than the Source directory. I don't think we want any new generated files going in to Subversion, having just gotten rid of all the application ones. :) Put the installer config files in Source\Installer I think.
#9
Posted 20 April 2014 - 06:44 AM
--------------
David
#10
Posted 20 April 2014 - 07:40 AM
dforrest, on 20 April 2014 - 06:44 AM, said:
It won't be able to find any non-installer installs because there will be no way to find them. All settings are maintained in the recommended locations so won't be affected by where or how you install it. :)