From 12c4c1ab69f00adeaf62fecca9967d03ec8bfec7 Mon Sep 17 00:00:00 2001 From: Chris Hold Date: Tue, 30 May 2023 17:52:34 +0300 Subject: [PATCH] Start installer --- installer.nsi | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 installer.nsi diff --git a/installer.nsi b/installer.nsi new file mode 100644 index 00000000..c7c6e9a5 --- /dev/null +++ b/installer.nsi @@ -0,0 +1,57 @@ +# define name of installer +OutFile "SSR-installer.exe" + +# The default installation directory +InstallDir $PROGRAMFILES64\SSR + +RequestExecutionLevel admin + +;-------------------------------- +Page directory +Page instfiles + +UninstPage uninstConfirm +UninstPage instfiles +;------------------------------- + + +# start default section +Section "Installer Section" + + # set the installation directory as the destination for the following actions + SetOutPath $INSTDIR + + # specify file to go in output path + File ssr-win-bin\*.exe + + # add dependencies + File /r /x libjack*.dll ssr-win-bin\deps\*.* + + # add resources + File /r ssr-win-bin\data\ + + File /oname=data\default_hrirs.wav ssr-win-bin\data\impulse_responses\hrirs\hrirs_fabian_min_phase_eq.wav + + # create the uninstaller + WriteUninstaller "$INSTDIR\uninstall.exe" + +SectionEnd + +Section "Start Menu Shortcuts (required)" + # create a shortcut named "SSR" in the start menu programs directory + # point the new shortcut at the program uninstaller + CreateShortcut "$SMPROGRAMS\SoundScapeRenderer(SSR)\uninstall.lnk" "$INSTDIR\uninstall.exe" +SectionEnd + + +# uninstaller section start +Section "un.Uninstaller Section" + # TODO + + # Remove the link from the start menu + Delete "$SMPROGRAMS\SoundScapeRenderer(SSR)\uninstall.lnk" + + RMDir "$SMPROGRAMS\SoundScapeRenderer(SSR)" + RMDir $INSTDIR +# uninstaller section end +SectionEnd \ No newline at end of file