From 89261d0e0391caa27fed50e6c149d4ea4409f00c Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 21 Apr 2013 16:56:11 +0000 Subject: NSIS installer script for Windows git-svn-id: svn://localhost/project_picapica/trunk@241 fb96df88-216d-11de-830c-f3023f12d8ac --- windows/pica-client.nsi | 87 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 windows/pica-client.nsi (limited to 'windows') diff --git a/windows/pica-client.nsi b/windows/pica-client.nsi new file mode 100644 index 0000000..376cfa3 --- /dev/null +++ b/windows/pica-client.nsi @@ -0,0 +1,87 @@ + +Name "Pica Pica Messenger" +OutFile "pica-client_setup.exe" + +Page license +Page directory +Page instfiles + +LicenseData "LICENSE" + +InstallDir "$PROGRAMFILES\Pica Pica Messenger" + +Icon "picapica-icon-sit.ico" + +RequestExecutionLevel admin + +; The stuff to install +Section "" ;No components page, name is not important + + ; Set output path to the installation directory. + SetOutPath $INSTDIR + + ; Put file there + File "pica-client.exe" + File "openssl.exe" + File "QtCore4.dll" + File "QtGui4.dll" + File "QtNetwork4.dll" + File "QtSql4.dll" + File "picapica-icon-sit.ico" + File "LICENSE" + File "OPENSSL.LICENSE" + File "Qt4.LICENSE" + File "openssl.cnf" + SetOutPath "$INSTDIR\share" + File "share\CA.pem" + File "share\picapica-icon-fly.png" + File "share\picapica-icon-sit.png" + SetOutPath "$INSTDIR\sqldrivers" + File "sqldrivers\qsqlite4.dll" + + WriteUninstaller "uninstall.exe" + + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" "DisplayName" "Pica Pica Messenger" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" "NoRepair" 1 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" "HelpLink" "http://picapica.im" + +SectionEnd ; end the section + +Section "Start Menu Shortcuts" + + CreateDirectory "$SMPROGRAMS\Pica Pica Messenger" + SetOutPath $INSTDIR + CreateShortCut "$SMPROGRAMS\Pica Pica Messenger\Pica Pica Messenger.lnk" "$INSTDIR\pica-client.exe" "" "$INSTDIR\picapica-icon-sit.ico" + +SectionEnd + +Section "Uninstall" + Delete $INSTDIR\uninstall.exe + Delete $INSTDIR\pica-client.exe + Delete "$INSTDIR\pica-client.exe" + Delete "$INSTDIR\openssl.exe" + Delete "$INSTDIR\QtCore4.dll" + Delete "$INSTDIR\QtGui4.dll" + Delete "$INSTDIR\QtNetwork4.dll" + Delete "$INSTDIR\QtSql4.dll" + Delete "$INSTDIR\picapica-icon-sit.ico" + Delete "$INSTDIR\LICENSE" + Delete "$INSTDIR\OPENSSL.LICENSE" + Delete "$INSTDIR\Qt4.LICENSE" + Delete "$INSTDIR\openssl.cnf" + Delete "$INSTDIR\share\CA.pem" + Delete "$INSTDIR\share\picapica-icon-fly.png" + Delete "$INSTDIR\share\picapica-icon-sit.png" + Delete "$INSTDIR\sqldrivers\qsqlite4.dll" + RMDir $INSTDIR\share + RMDir $INSTDIR\sqldrivers + RMDir $INSTDIR + + Delete "$SMPROGRAMS\Pica Pica Messenger\*.*" + RMDir "$SMPROGRAMS\Pica Pica Messenger" + + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pica Pica Messenger" + +SectionEnd -- cgit v1.2.1