Everything about the Windows installer of this project. Read about how to create it and edit it.
- Install Nullsoft Scriptable Install System from their official site: http://nsis.sourceforge.net/Download
- Find the folder
WindowsInstaller
in your Windows Explorer - Make a right mouse click on the installer script
create_windows_installer.nsi
- Click
Compile NSIS Script
- Wait some seconds an the installer is created.
Before you can do this you need to export the main Java project to a runnable .jar
file with the name MusicVideoManager.jar
and save it to the main directory of this repository.
(You can also just download the portable version from GitHub Releases and copy it there).
You can edit the script with every text editor you have.
Text editors like Notepad++ support syntax highlighting of this script language which is the reason I use it for the installer script.
Right now all the icons and images are based on vector graphic templates in the directory ImageResources
.
Change there the vector graphic images installer.svg
(the installer page image) and logo.svg
(the icon image) and run the Python script create_image_ressources.py
to automatically update the icons and images of this installer.
You can use NSIS over the command line either by default or if it does not work:
- After installing it open the [Windows] environment variables
- Add to the
Path
entry in the upper table with clicking the buttonEdit
after selecting it the path to thebin
folder of NSIS (for me this wasC:\Program Files (x86)\NSIS\Bin
)
:arrow_right_hook: To compile any .nsi
script over the command line you can now use the command
$ makensis path/to/script.nsi
↪️ Also you should now be able to run the python script build_windows_installer.py (install Python 3.* from https://www.python.org/downloads/therefore to run this script obviously too)
You need to execute the command makensis path/to/script.nsi
in the folder WindowsInstaller
to get all the resources because of relative paths. If you execute the build_windows_installer.py script Python automatically does that for you unimportant from where you start it.
If you want to make changes you need to edit/look into:
-
create_windows_installer.nsi
to change parts of the installer (pages/behavior) -
create_image_ressources.py
update un/install icon/ un/installer page image based on the following source images:installer.svg
installer page imagelogo.svg
icon image
-
build_windows_installer.py
to compile the before createdjar
file and add after the export a version number to the installer (also it renames thejar
file before running the NSIS script)
Documentation of NSIS script language: