* Fix start menu folder including version number
* Correctly search for legacy registry key
* Correctly delete legacy installation, start menu entries, and registry keys
* Update start menu icons on install/uninstall
* Delete ui folder when uninstalling
This rewrites many parts of the script. Changes:
* Add welcome page.
* Ask user for system-wide or user install.
* Modify HKLM instead of HKCU registry entries.
* Use 64-bit registry entries instead of default (32-bit)
* Correctly set ProgIds for Xournal++ file formats
* Add uninstall entry for Xournal++ so it shows in `Add or remove programs`
* Add Xournal++ to `Open With...` entry list popup for PDF files
* Delete Xournal++ registry keys when uninstalling
This does the following:
* Automatically generate icons from the SVG file as part of the binary build.
This will also ensure that the xournalpp.exe binary has an icon. As a result,
we need ImageMagick as a dependency.
* Replace the manual setup in `windows-setup/build-setup.sh` with a
`windows-setup/package.sh` script that uses the CMake package as a base and
then copies the additional runtime files (e.g. MinGW shared libraries). This
has the benefit of not needing us to update the windows build script when we
add additional resource files.
Changed <stdio.h> to <cstdio> and <stdlib.h> to <cstdlib>.
Changed NULL occurences with nullptr.
Replaced some occurrences of sprintf with snprintf and used the uintN_t
format specifiers.
kpsewhich could not be found because GTK on windows needs to use the
`gspawn-win32-helper` program to spawn processes.
This commit also improves kpsewhich error reporting.
The issue seems to be that libcrypto and libssl are already included in
the Windows CI image by default, causing them to not be copied. This patch
ensures that they're copied if the application is linked with the system
libcrypto/ssl.