home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
pserv.cpl
/
pserv-2.4.exe
/
source
/
pserv.nsi
< prev
next >
Wrap
Text File
|
2005-01-05
|
3KB
|
118 lines
!include "MUI.nsh"
Name "pserv.cpl 2.4"
OutFile "pserv-2.4.exe"
Caption "pserv.cpl - Version 2.4"
BGGradient 0066CC FF4444 FFFFFF
LicenseData .\license.txt
InstType "Full (w/ Source)"
InstType "Normal (w/o Source)"
ShowInstDetails show
ShowUninstDetails show
SetOverwrite on
SetDateSave on
SetCompressor bzip2
BrandingText p-nand-q.com
InstallDir "$PROGRAMFILES\p-nand-q.com\pserv.cpl"
InstallDirRegKey HKCU "SOFTWARE\p-nand-q.com\pserv.cpl" ""
!define MUI_ABORTWARNING
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE license.txt
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
Section "pserv.cpl (required)" SecCore
SectionIn 1 2 RO
; set output path to system directory.
SetOutPath $SYSDIR
File "DATA\pserv.cpl"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File "DATA\pserv2.exe"
; Write the installation path into the registry
WriteRegStr HKCU "SOFTWARE\p-nand-q.com\pserv.cpl" "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\pserv.cpl" "DisplayName" "pserv.cpl (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\pserv.cpl" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteUninstaller "uninstall.exe"
SectionEnd
Section "Sourcecode" SecSource
SectionIn 1
SetOutPath $INSTDIR\source
FILE /R "source\*"
SectionEnd
Section "Start Menu Shortcuts" SecIcons
SectionIn 1 2
SetOutPath $INSTDIR
CreateDirectory "$SMPROGRAMS\pserv.cpl"
CreateShortCut "$SMPROGRAMS\pserv.cpl\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\pserv.cpl\Services & Devices.lnk" "$INSTDIR\pserv2.exe" "" "$INSTDIR\pserv2.exe" 0
SectionEnd
!ifndef CLASSIC_UI
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The pserv.cpl applet and support files"
!insertmacro MUI_DESCRIPTION_TEXT ${SecSource} "The complete sourcecode with instructions"
!insertmacro MUI_DESCRIPTION_TEXT ${SecIcons} "Adds icons to your start menu for easy access"
!insertmacro MUI_FUNCTION_DESCRIPTION_END
!endif
Section Uninstall
; remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\pserv.cpl"
DeleteRegKey HKCU SOFTWARE\p-nand-q.com\pserv.cpl
; remove files
Delete $SYSDIR\pserv.cpl
Delete $INSTDIR\pserv2.exe
RMDIR /R $INSTDIR\source
; MUST REMOVE UNINSTALLER, too
Delete $INSTDIR\uninstall.exe
; remove shortcuts, if any.
Delete "$SMPROGRAMS\pserv.cpl\*.*"
; remove directories used.
RMDir "$SMPROGRAMS\pserv.cpl"
RMDir "$INSTDIR"
SectionEnd