AceCentre / EyeCommander

An open source computer vision interface that tracks eye movements for individuals with severely-limited mobility.
https://docs.acecentre.org.uk/eyecommander
MIT License
53 stars 4 forks source link

Build NSIS Installer #12

Closed willwade closed 2 years ago

willwade commented 3 years ago

As a windows user I want a easy to install software package where I don't have to worry about file paths and it's familiar to my platform.

Focus on Windows.

willwade commented 3 years ago

Started this NSIS installer- but not tested. @gavinhenderson

gavinhenderson commented 3 years ago

@willwade, looks good. I have a potentially silly question. How do we tell pyinstaller to use the nsis file?

willwade commented 3 years ago

So usually - you would:

  1. Build your EXE
  2. Sign it
  3. (Install NSIS (https://nsis.sourceforge.io/Download))
  4. path/to/makensis path/to/build.nsi (or run the GUI)

makensis is usually in the NSIS program files directory

to clarify - you create the installer - AFTER you've created the .exe from pyinstaller.. & you need to sign both exes too :)

willwade commented 3 years ago

See line 63 of that nsis file. That's the thing that needs chsnging depending on the location of the built exe from the pyinstaller output.

gavinhenderson commented 3 years ago

Ah got you, seems simple enough.

The official NSIS team has some nice Github Actions demos aswell https://github.com/NSIS-Dev/github-action-examples

gavinhenderson commented 3 years ago

Another perhaps obvious question.

Whats the benefit of an installer over just running the exe directly?

willwade commented 3 years ago

Well mainly that the thing runs and you can direct to things like help files and uninstall stuff. I guess short answer to that is support. If you use a installer you know the thing is properly working. Right now you are right - there isnt a big benefit. It might get more useful down the line if we need to do things like add more files or support material..

gavinhenderson commented 2 years ago

We use windows squirrel as our installer so this is no longer required