131 lines
4.1 KiB
NSIS
131 lines
4.1 KiB
NSIS
|
|
; <20>ýű<C3BD>ʹ<EFBFBD><CAB9> HM VNISEdit <20>ű<EFBFBD><C5B1>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD><F2B5BCB2><EFBFBD>
|
|||
|
|
|
|||
|
|
; <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>峣<EFBFBD><E5B3A3>
|
|||
|
|
!define PRODUCT_NAME "rqeh6000"
|
|||
|
|
!define PRODUCT_VERSION "1.0"
|
|||
|
|
!define PRODUCT_PUBLISHER "RelyEZ"
|
|||
|
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\sys_startup.exe"
|
|||
|
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
|||
|
|
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
|
|||
|
|
|
|||
|
|
SetCompressor lzma
|
|||
|
|
|
|||
|
|
; ------ MUI <20>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>涨<EFBFBD><E6B6A8> (1.67 <20>汾<EFBFBD><E6B1BE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>) ------
|
|||
|
|
!include "MUI.nsh"
|
|||
|
|
|
|||
|
|
; MUI Ԥ<><D4A4><EFBFBD>峣<EFBFBD><E5B3A3>
|
|||
|
|
!define MUI_ABORTWARNING
|
|||
|
|
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\rqeh6000.ico"
|
|||
|
|
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\rqeh6000.ico"
|
|||
|
|
|
|||
|
|
; <20><>ӭҳ<D3AD><D2B3>
|
|||
|
|
!insertmacro MUI_PAGE_WELCOME
|
|||
|
|
; <20><>װĿ¼ѡ<C2BC><D1A1>ҳ<EFBFBD><D2B3>
|
|||
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|||
|
|
; <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>
|
|||
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|||
|
|
; <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>
|
|||
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\platform\windows10_debug\sys_startup.exe"
|
|||
|
|
!insertmacro MUI_PAGE_FINISH
|
|||
|
|
|
|||
|
|
; <20><>װж<D7B0>ع<EFBFBD><D8B9><EFBFBD>ҳ<EFBFBD><D2B3>
|
|||
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|||
|
|
|
|||
|
|
; <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
!insertmacro MUI_LANGUAGE "SimpChinese"
|
|||
|
|
|
|||
|
|
; <20><>װԤ<D7B0>ͷ<EFBFBD><CDB7>ļ<EFBFBD>
|
|||
|
|
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
|||
|
|
; ------ MUI <20>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>涨<EFBFBD><E6B6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ------
|
|||
|
|
|
|||
|
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
|||
|
|
OutFile "rqeh6000_install.exe"
|
|||
|
|
InstallDir "D:\rqeh6000"
|
|||
|
|
InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
|
|||
|
|
ShowInstDetails show
|
|||
|
|
ShowUnInstDetails show
|
|||
|
|
BrandingText "Զ<EFBFBD>Ŵ<EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
|
|
|||
|
|
Section "MainSection" SEC01
|
|||
|
|
SetOutPath "$INSTDIR"
|
|||
|
|
SetOverwrite ifnewer
|
|||
|
|
File ".\rqeh6000package\platform\windows10_debug\sys_startup.exe"
|
|||
|
|
CreateDirectory "$SMPROGRAMS\rqeh6000"
|
|||
|
|
CreateShortCut "$SMPROGRAMS\rqeh6000\rqeh6000.lnk" "$INSTDIR\platform\windows10_debug\sys_startup.exe"
|
|||
|
|
CreateShortCut "$DESKTOP\rqeh6000.lnk" "$INSTDIR\platform\windows10_debug\sys_startup.exe"
|
|||
|
|
File /r ".\rqeh6000package\*.*"
|
|||
|
|
SectionEnd
|
|||
|
|
|
|||
|
|
Section -AdditionalIcons
|
|||
|
|
CreateShortCut "$SMPROGRAMS\rqeh6000\Uninstall.lnk" "$INSTDIR\uninst.exe"
|
|||
|
|
SectionEnd
|
|||
|
|
|
|||
|
|
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
Section -StartService
|
|||
|
|
#ExecWait "$INSTDIR\installer\installer_window.bat"
|
|||
|
|
nsExec::Exec "$INSTDIR\installer\installer_window.bat"
|
|||
|
|
SectionEnd
|
|||
|
|
|
|||
|
|
Section -Post
|
|||
|
|
WriteUninstaller "$INSTDIR\uninst.exe"
|
|||
|
|
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\sys_startup.exe"
|
|||
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
|
|||
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
|
|||
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\sys_startup.exe"
|
|||
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
|||
|
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
|
|||
|
|
SectionEnd
|
|||
|
|
|
|||
|
|
/******************************
|
|||
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD>װ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD> *
|
|||
|
|
******************************/
|
|||
|
|
|
|||
|
|
Section Uninstall
|
|||
|
|
|
|||
|
|
#ж<><D0B6><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>
|
|||
|
|
#ExecWait "$INSTDIR\installer\uninst_window.bat"
|
|||
|
|
nsExec::Exec "$INSTDIR\installer\uninst_window.bat"
|
|||
|
|
|
|||
|
|
Delete "$INSTDIR\installer\uninst_window.bat"
|
|||
|
|
|
|||
|
|
Delete "$INSTDIR\uninst.exe"
|
|||
|
|
Delete "$INSTDIR\sys_startup.exe"
|
|||
|
|
|
|||
|
|
Delete "$SMPROGRAMS\rqeh6000\Uninstall.lnk"
|
|||
|
|
Delete "$DESKTOP\rqeh6000.lnk"
|
|||
|
|
Delete "$SMPROGRAMS\rqeh6000\rqeh6000.lnk"
|
|||
|
|
|
|||
|
|
RMDir "$SMPROGRAMS\rqeh6000"
|
|||
|
|
|
|||
|
|
RMDir /r "$INSTDIR\platform"
|
|||
|
|
RMDir /r "$INSTDIR\log"
|
|||
|
|
RMDir /r "$INSTDIR\installer"
|
|||
|
|
RMDir /r "$INSTDIR\hisdata"
|
|||
|
|
RMDir /r "$INSTDIR\doc"
|
|||
|
|
RMDir /r "$INSTDIR\data"
|
|||
|
|
RMDir /r "$INSTDIR\backup"
|
|||
|
|
RMDir /r "$INSTDIR\database"
|
|||
|
|
RMDir /r "$INSTDIR\products"
|
|||
|
|
RMDir /r "$INSTDIR\platform_pdb"
|
|||
|
|
|
|||
|
|
RMDir "$INSTDIR"
|
|||
|
|
|
|||
|
|
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
|||
|
|
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
|||
|
|
SetAutoClose true
|
|||
|
|
SectionEnd
|
|||
|
|
|
|||
|
|
#-- <20><><EFBFBD><EFBFBD> NSIS <20>ű<EFBFBD><C5B1>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Function <20><><EFBFBD>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Section <20><><EFBFBD><EFBFBD>֮<EFBFBD><D6AE><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD>Ա<EFBFBD><D4B1>ⰲװ<E2B0B2><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4>Ԥ֪<D4A4><D6AA><EFBFBD><EFBFBD><EFBFBD>⡣--#
|
|||
|
|
|
|||
|
|
Function un.onInit
|
|||
|
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹرճ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD>̱<EFBFBD><EFBFBD>ݣ<EFBFBD>" IDYES +2
|
|||
|
|
Abort
|
|||
|
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "<EFBFBD><EFBFBD>ȷʵҪ<EFBFBD><EFBFBD>ȫ<EFBFBD>Ƴ<EFBFBD> $(^Name) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" IDYES +2
|
|||
|
|
Abort
|
|||
|
|
FunctionEnd
|
|||
|
|
|
|||
|
|
Function un.onUninstSuccess
|
|||
|
|
HideWindow
|
|||
|
|
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) <20>ѳɹ<D1B3><C9B9>ش<EFBFBD><D8B4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD>"
|
|||
|
|
FunctionEnd
|