Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelMcDonnell
Copy link

@MichaelMcDonnell MichaelMcDonnell commented Aug 17, 2019

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
  7. Installed build\installer-inno\bin\BarrierSetup-2.3.1-snapshot
  8. Verified that Barrier started
  9. Uninstalled Barrier
  10. Uninstalled Inno Setup 6
  11. Installed Inno Setup 6 for all users
  12. Checked that the error message does not appear.
  13. Checked that the installer package is generated
  14. Installed build\installer-inno\bin\BarrierSetup-2.3.1-snapshot
  15. Verified that Barrier started
  16. Uninstalled Barrier
  17. Uninstalled Inno Setup 6
  18. Installed Inno Setup 5
  19. Checked that the error message does not appear.
  20. Checked that the installer package is generated
  21. Installed build\installer-inno\bin\BarrierSetup-2.3.1-snapshot
  22. Verified that Barrier started
  23. Uninstalled Barrier

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

@AdrianKoshka
Copy link

I'd prefer if it could check for Inno Setup 5 and 6.

@AdrianKoshka AdrianKoshka added enhancement New feature or request windows Related to Microsoft Windows labels Aug 17, 2019
@MichaelMcDonnell
Copy link
Author

Ok I'll look into checking for both Inno Setup 5 and 6.

@AdrianKoshka
Copy link

AdrianKoshka commented Aug 18, 2019 via email

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
@shymega
Copy link

shymega commented Aug 20, 2019

@MichaelMcDonnell Why did you force-push?

@shymega
Copy link

shymega commented Aug 20, 2019

Not that it matters, I was just curious. PR looks fine to me. Seeing as CI checks have passed, merging will be fine...

@MichaelMcDonnell
Copy link
Author

@shymega I forced pushed because I used amend. Is there a better workflow?

Thanks!

@shymega
Copy link

shymega commented Aug 20, 2019

@MichaelMcDonnell Its more that force pushing overwrites history, so its not really encouraged. Did you amend before you pushed, or after?

@MichaelMcDonnell
Copy link
Author

I first did
'git commit --amend'

Then I used
'git push -f origin check-for-inno-setup'

@shymega
Copy link

shymega commented Aug 20, 2019

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! 👍

@AdrianKoshka
Copy link

@MichaelMcDonnell Just want to double check and make sure, you've tested this yourself with innosetup 5 and 6, correct?

@MichaelMcDonnell
Copy link
Author

@AdrianKoshka I did not try to install the package that was generated with Inno Setup 6. I can try that tonight.

@AdrianKoshka
Copy link

This comment is a good rubric for judging functionality: #357 (comment)

@MichaelMcDonnell MichaelMcDonnell changed the title Check Inno Setup 5 is installed Check Inno Setup is installed Aug 21, 2019
@MichaelMcDonnell
Copy link
Author

I tested it with Inno Setup 5 and 6 (user and system install). All built versions of Barrier installed fine.

@MichaelMcDonnell
Copy link
Author

I've filed the uninstall issue in issue #407

@walker0643
Copy link
Member

@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.

@shymega
Copy link

shymega commented Nov 13, 2021

@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.

@shymega
Copy link

shymega commented Nov 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows Related to Microsoft Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inno Setup missing error message
4 participants