building the installer.txt 2.6 KB

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