-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check Inno Setup is installed #400
base: master
Are you sure you want to change the base?
Check Inno Setup is installed #400
Conversation
I'd prefer if it could check for Inno Setup 5 and 6. |
Ok I'll look into checking for both Inno Setup 5 and 6. |
Thanks.
…On Sun, Aug 18, 2019, 01:18 Michael Mc Donnell ***@***.***> wrote:
Ok I'll look into checking for both Inno Setup 5 and 6.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#400?email_source=notifications&email_token=ACCJUTY5AE6EW6HRGKJGIBDQFDLQ3A5CNFSM4IMQLIE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QYW2Q#issuecomment-522292074>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACCJUT54P2OCMCOWJ7R7253QFDLQ3ANCNFSM4IMQLIEQ>
.
|
The build_installer.bat file uses Inno Setup to build the installer. It does currently not check if Inno Setup is installed, and fails with the message: The system cannot find the path specified. Build failed That message does not explain how to fix the problem. I have added a loop to search for Inno Setup 6 and 5. The user installed Inno Setup is preferred over the system installed version. If Inno Setup cannot be found then it prints an actionable error message. I have tested it by: 1. Not having Inno Setup installed 2. Running build_installer.bat 3. Checked that the error message appears. 4. Installed Inno Setup 6 for my current user 5. Checked that the error message does not appear. 6. Checked that the installer package is generated 6. Uninstalled Inno Setup 6 7. Installed Inno Setup 6 for all users 8. Checked that the error message does not appear. 9. Checked that the installer package is generated 10. Uninstalled Inno Setup 6 11. Installed Inno Setup 5 12. Checked that the error message does not appear. 13. Checked that the installer package is generated
a34e92c
to
b1f4063
Compare
@MichaelMcDonnell Why did you force-push? |
Not that it matters, I was just curious. PR looks fine to me. Seeing as CI checks have passed, merging will be fine... |
@shymega I forced pushed because I used amend. Is there a better workflow? Thanks! |
@MichaelMcDonnell Its more that force pushing overwrites history, so its not really encouraged. Did you amend before you pushed, or after? |
I first did Then I used |
Hmm. I always thought you didn't need to force-push, but maybe you do. Anyway, ignore me 😄 I've not amended commits for a long time... I generally queue them up, check them for mistakes throughly, and then push. But yeah, we can definitely merge this PR in - checks have passed, and a quick scan over the Batch file, and you've certainly done a good job! 👍 |
@MichaelMcDonnell Just want to double check and make sure, you've tested this yourself with innosetup 5 and 6, correct? |
@AdrianKoshka I did not try to install the package that was generated with Inno Setup 6. I can try that tonight. |
This comment is a good rubric for judging functionality: #357 (comment) |
I tested it with Inno Setup 5 and 6 (user and system install). All built versions of Barrier installed fine. |
I've filed the uninstall issue in issue #407 |
@shymega Do you recall why this PR was held up? Inno is still on version 6 as of late 2021 so the changes would still be current. Thanks. |
@walker0643 I don't recall why, but I bumped Inno to the next available. I'm no longer part of this project now, so I will most likely be devoting my time elsewhere, like my embedded firmware, and the fork. But I wish you luck. Thanks. |
There's also two CI PRs that you might like to merge. I can't squash PRs now as I left the org, but feel free to squash into one commit for both PRs. They shouldn't conflict. |
The build_installer.bat file uses Inno Setup to build the installer. It
does currently not check if Inno Setup is installed, and fails with the
message:
The system cannot find the path specified.
Build failed
That message does not explain how to fix the problem. I have added a
loop to search for Inno Setup 6 and 5. The user installed Inno Setup is
preferred over the system installed version. If Inno Setup cannot be
found then it prints an actionable error message.
I have tested it by:
NOTE: There is an existing issue where you have to manually terminate barrierd.exe after Quitting Barrier. If you do not do that then the uninstaller will not be able to remove everything. It was reproduced with the latest release version (2.3.1).
Fixes #397