123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # Install Instructions:
- ###################################################################################
- (Frank: 29/12/22) I made some tweaks to streamline the install process:
- - The script now explicitly sets the SourceDir and OutputDir of the InnoSetup Scripts
- - Directories are set relative to the drive and path of the install.bat file
- - Output from PRSDesktopSetup is piped directly into the PRSServer update folder
- This removes the need for the intermediate c:\development\syncthing folder,
- as well as allowing the script to run off other drives (ie E: instead of C:)
- ###################################################################################
- First, build the "Debug" configuration of both PRS.Server and PRS.Desktop. Both
- must be built, because the installer combines both of them.
- Go to the Wordpress File Manager and edit the Release Notes. This must also be
- done before building the installer, since the Release Notes are curl-ed into the
- installer as well.
- Once both these steps are completed, you may build the installer.
- Open Powershell or Command Prompt in the "prs.server" folder, where should exist
- the file "install.bat".
- Type ".\install.bat", which will begin the script. This will prompt you for a
- version number, which will then replace the version number in the ".iss" files.
- The script will then get the Release Notes from the web, and then begin the
- compilation of PRSDesktop.iss.
- Once PRSDesktopSetup.exe has been built, it is copied into the "update/"
- directory of the server "bin" folder, and then compile PRSServer.iss, such that
- the update/ directory will have three files: "PRSDesktopSetup.exe",
- "Release Notes.txt", and "version.txt" and these will thus be included in the
- mega installer.
- Finally, the PRSSetup.exe is built, including the desktop updater, and is saved
- to the same location as the PRSServer.iss file
- Once this file has been built, you can update the files in Wordpress.
- Navigate to the updates/prs folder, and note the two folders "Stable" and
- "PreRelease". To update either channel, you must change the "version.txt" and
- upload the new "PRSSetup.exe" to the respective folder.
- > Once "version.txt" has been updated, any server that is starting up will
- > discover, if it is on the respective channel, that it must do an update. This
- > will grab PRSSetup.exe and run it. Once it has finished updating, it will copy
- > the update/ directory to the ProgramData folder. Then the desktops, when they
- > start up, will check the server version, discover they must update, and ask
- > the server for a copy of PRSDesktopSetup.exe, which is present in the
- > "update/" directory.
|