Skip to content

Commit

Permalink
Start installer
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed May 30, 2023
1 parent faeda16 commit 12c4c1a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions installer.nsi
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 12c4c1a

Please sign in to comment.