Skip to content

Commit

Permalink
nsis: Update rules to install/remove ssl dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
rohityadavcloud committed Sep 13, 2011
1 parent 44647a7 commit e68165b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion nsis/installer.nsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
; CMakeQt NSIS Config script
;
; NSIS Script by:
; Ludovic Fauvet <etix@l0cal.com>
; Rohit Yadav <rohityadav89@gmail.com>

!include "FileAssociation.nsh"

Expand All @@ -21,7 +25,7 @@ InstallDir "$PROGRAMFILES\@PROJECT_NAME_SHORT@"
RequestExecutionLevel admin

; Compression method
SetCompressor lzma
SetCompressor /SOLID lzma

;--------------------------------
; Interface
Expand Down Expand Up @@ -56,6 +60,8 @@ Section "@PROJECT_NAME_SHORT@ (required)"
SetOutPath $INSTDIR

; Put file there
File "libeay32.dll"
File "ssleay32.dll"
; File "mingwm10.dll"
; File "libgcc_s_dw2-1.dll"
; File "QtCore4.dll"
Expand All @@ -74,6 +80,10 @@ Section "@PROJECT_NAME_SHORT@ (required)"

; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayName" "@PROJECT_NAME_LONG@"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayIcon" '"$INSTDIR\cmakeqt.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "DisplayVersion" "@PROJECT_VERSION@"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "Publisher" "Rohit Yadav"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "URLInfoAbout" "http://rohityadav.in/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PROJECT_NAME_SHORT@" "NoRepair" 1
Expand Down Expand Up @@ -111,6 +121,8 @@ Section "Uninstall"
Delete "$INSTDIR\cmakeqt.exe"
Delete "$INSTDIR\cmakeqt.ico"
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\ssleay32.dll"
; Delete "$INSTDIR\mingwm10.dll"
; Delete "$INSTDIR\libgcc_s_dw2-1.dll"
; Delete "$INSTDIR\QtCore4.dll"
Expand Down

0 comments on commit e68165b

Please sign in to comment.