Commit 73ac3f9c authored by Rohit Yadav's avatar Rohit Yadav

nsis: Give user choice to install frei0r plugins and qt translation in the installer.

parent 13d3d905
...@@ -76,7 +76,6 @@ Section "@PROJECT_NAME_SHORT@ (required)" ...@@ -76,7 +76,6 @@ Section "@PROJECT_NAME_SHORT@ (required)"
File "@CMAKE_SOURCE_DIR@/TRANSLATORS" File "@CMAKE_SOURCE_DIR@/TRANSLATORS"
File "@CMAKE_SOURCE_DIR@/NEWS" File "@CMAKE_SOURCE_DIR@/NEWS"
File /r "plugins" File /r "plugins"
File /r "effects"
; Write the installation path into the registry ; Write the installation path into the registry
WriteRegStr HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir" "$INSTDIR" WriteRegStr HKLM "Software\@PROJECT_NAME_SHORT@" "Install_Dir" "$INSTDIR"
...@@ -97,6 +96,13 @@ Section "@PROJECT_NAME_SHORT@ (required)" ...@@ -97,6 +96,13 @@ Section "@PROJECT_NAME_SHORT@ (required)"
SectionEnd SectionEnd
Section "Frei0r effects & Qt translations"
; Set output path to the installation directory.
SetOutPath $INSTDIR
File /r "effects"
File /r "ts"
SectionEnd
Section "Start Menu Shortcuts" Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\@PROJECT_NAME_LONG@" CreateDirectory "$SMPROGRAMS\@PROJECT_NAME_LONG@"
...@@ -140,8 +146,10 @@ Section "Uninstall" ...@@ -140,8 +146,10 @@ Section "Uninstall"
Delete "$INSTDIR\NEWS" Delete "$INSTDIR\NEWS"
Delete "$INSTDIR\plugins\*.*" Delete "$INSTDIR\plugins\*.*"
Delete "$INSTDIR\effects\*.*" Delete "$INSTDIR\effects\*.*"
Delete "$INSTDIR\ts\*.*"
RMDir "$INSTDIR\plugins" RMDir "$INSTDIR\plugins"
RMDir "$INSTDIR\effects" RMDir "$INSTDIR\effects"
RMDir "$INSTDIR\ts"
; Remove shortcuts, if any ; Remove shortcuts, if any
Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*" Delete "$SMPROGRAMS\@PROJECT_NAME_LONG@\*.*"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment