You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
224 lines
7.3 KiB
224 lines
7.3 KiB
; Script generated by the HM NIS Edit Script Wizard. |
|
|
|
; HM NIS Edit Wizard helper defines |
|
!define PRODUCT_NAME "中芯热成上位机SA" |
|
!define PRODUCT_VERSION "@CMAKE_PROJECT_VERSION_MAJOR@.@CMAKE_PROJECT_VERSION_MINOR@.@CMAKE_PROJECT_VERSION_PATCH@.@CMAKE_PROJECT_VERSION_TWEAK@" |
|
!define PRODUCT_PUBLISHER "zxrc" |
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\zxrcClientSA.exe" |
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" |
|
!define PRODUCT_UNINST_ROOT_KEY "HKLM" |
|
|
|
SetCompressor lzma |
|
|
|
; MUI 1.67 compatible ------ |
|
!include "MUI.nsh" |
|
|
|
; MUI Settings |
|
!define MUI_ABORTWARNING |
|
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" |
|
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" |
|
|
|
; Language Selection Dialog Settings |
|
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" |
|
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" |
|
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" |
|
|
|
; Welcome page |
|
!insertmacro MUI_PAGE_WELCOME |
|
; Directory page |
|
!insertmacro MUI_PAGE_DIRECTORY |
|
; Instfiles page |
|
!insertmacro MUI_PAGE_INSTFILES |
|
; Finish page |
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\zxrcClientSA.exe" |
|
!insertmacro MUI_PAGE_FINISH |
|
|
|
; Uninstaller pages |
|
!insertmacro MUI_UNPAGE_INSTFILES |
|
|
|
; Language files |
|
!insertmacro MUI_LANGUAGE "English" |
|
!insertmacro MUI_LANGUAGE "SimpChinese" |
|
|
|
; Reserve files |
|
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS |
|
|
|
; MUI end ------ |
|
|
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
|
OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION}Setup.exe" |
|
InstallDir "$PROGRAMFILES\中芯热成上位机" |
|
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" |
|
ShowInstDetails show |
|
ShowUnInstDetails show |
|
|
|
Function .onInit |
|
!insertmacro MUI_LANGDLL_DISPLAY |
|
FunctionEnd |
|
|
|
Section "MainSection" SEC01 |
|
SetOutPath "$INSTDIR" |
|
SetOverwrite ifnewer |
|
File "zxrcClientSA.exe" |
|
CreateDirectory "$SMPROGRAMS\中芯热成上位机" |
|
CreateShortCut "$SMPROGRAMS\中芯热成上位机\中芯热成上位机.lnk" "$INSTDIR\zxrcClientSA.exe" |
|
CreateShortCut "$DESKTOP\中芯热成上位机.lnk" "$INSTDIR\zxrcClientSA.exe" |
|
SetOverwrite try |
|
File "D3Dcompiler_47.dll" |
|
|
|
SetOutPath "$INSTDIR\iconengines" |
|
File "iconengines\qsvgicon.dll" |
|
SetOutPath "$INSTDIR\imageformats" |
|
File "imageformats\qgif.dll" |
|
File "imageformats\qicns.dll" |
|
File "imageformats\qico.dll" |
|
File "imageformats\qjpeg.dll" |
|
File "imageformats\qsvg.dll" |
|
File "imageformats\qtga.dll" |
|
File "imageformats\qtiff.dll" |
|
File "imageformats\qwbmp.dll" |
|
File "imageformats\qwebp.dll" |
|
SetOutPath "$INSTDIR" |
|
File "libEGL.dll" |
|
File "libGLESv2.dll" |
|
File "logo.ico" |
|
File "opencv_videoio_ffmpeg470_64.dll" |
|
File "opencv_world470.dll" |
|
File "opengl32sw.dll" |
|
SetOutPath "$INSTDIR\platforms" |
|
File "platforms\qwindows.dll" |
|
SetOutPath "$INSTDIR" |
|
File "Qt5Core.dll" |
|
File "Qt5Gui.dll" |
|
File "Qt5Svg.dll" |
|
File "Qt5Xml.dll" |
|
File "Qt5Widgets.dll" |
|
File "Qt5SerialPort.dll" |
|
File "qtcsettings.cmake" |
|
SetOutPath "$INSTDIR\styles" |
|
File "styles\qwindowsvistastyle.dll" |
|
SetOutPath "$INSTDIR\translations" |
|
File "translations\qt_ar.qm" |
|
File "translations\qt_bg.qm" |
|
File "translations\qt_ca.qm" |
|
File "translations\qt_cs.qm" |
|
File "translations\qt_da.qm" |
|
File "translations\qt_de.qm" |
|
File "translations\qt_en.qm" |
|
File "translations\qt_es.qm" |
|
File "translations\qt_fi.qm" |
|
File "translations\qt_fr.qm" |
|
File "translations\qt_gd.qm" |
|
File "translations\qt_he.qm" |
|
File "translations\qt_hu.qm" |
|
File "translations\qt_it.qm" |
|
File "translations\qt_ja.qm" |
|
File "translations\qt_ko.qm" |
|
File "translations\qt_lv.qm" |
|
File "translations\qt_pl.qm" |
|
File "translations\qt_ru.qm" |
|
File "translations\qt_sk.qm" |
|
File "translations\qt_tr.qm" |
|
File "translations\qt_uk.qm" |
|
File "translations\qt_zh_TW.qm" |
|
SetOutPath "$INSTDIR" |
|
|
|
SectionEnd |
|
|
|
Section -AdditionalIcons |
|
CreateShortCut "$SMPROGRAMS\中芯热成上位机\Uninstall.lnk" "$INSTDIR\uninst.exe" |
|
SectionEnd |
|
|
|
Section -Post |
|
WriteUninstaller "$INSTDIR\uninst.exe" |
|
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\zxrcClientSA.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\zxrcClientSA.exe" |
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" |
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" |
|
SectionEnd |
|
|
|
|
|
Function un.onUninstSuccess |
|
HideWindow |
|
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从你的计算机移除。" |
|
FunctionEnd |
|
|
|
Function un.onInit |
|
!insertmacro MUI_UNGETLANGUAGE |
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你确实要完全移除 $(^Name) ,其及所有的组件?" IDYES +2 |
|
Abort |
|
FunctionEnd |
|
|
|
Section Uninstall |
|
Delete "$INSTDIR\uninst.exe" |
|
Delete "$INSTDIR\usbcam.lib" |
|
Delete "$INSTDIR\translations\qt_zh_TW.qm" |
|
Delete "$INSTDIR\translations\qt_uk.qm" |
|
Delete "$INSTDIR\translations\qt_tr.qm" |
|
Delete "$INSTDIR\translations\qt_sk.qm" |
|
Delete "$INSTDIR\translations\qt_ru.qm" |
|
Delete "$INSTDIR\translations\qt_pl.qm" |
|
Delete "$INSTDIR\translations\qt_lv.qm" |
|
Delete "$INSTDIR\translations\qt_ko.qm" |
|
Delete "$INSTDIR\translations\qt_ja.qm" |
|
Delete "$INSTDIR\translations\qt_it.qm" |
|
Delete "$INSTDIR\translations\qt_hu.qm" |
|
Delete "$INSTDIR\translations\qt_he.qm" |
|
Delete "$INSTDIR\translations\qt_gd.qm" |
|
Delete "$INSTDIR\translations\qt_fr.qm" |
|
Delete "$INSTDIR\translations\qt_fi.qm" |
|
Delete "$INSTDIR\translations\qt_es.qm" |
|
Delete "$INSTDIR\translations\qt_en.qm" |
|
Delete "$INSTDIR\translations\qt_de.qm" |
|
Delete "$INSTDIR\translations\qt_da.qm" |
|
Delete "$INSTDIR\translations\qt_cs.qm" |
|
Delete "$INSTDIR\translations\qt_ca.qm" |
|
Delete "$INSTDIR\translations\qt_bg.qm" |
|
Delete "$INSTDIR\translations\qt_ar.qm" |
|
Delete "$INSTDIR\styles\qwindowsvistastyle.dll" |
|
Delete "$INSTDIR\qtcsettings.cmake" |
|
Delete "$INSTDIR\Qt5Widgets.dll" |
|
Delete "$INSTDIR\Qt5Svg.dll" |
|
Delete "$INSTDIR\Qt5Gui.dll" |
|
Delete "$INSTDIR\Qt5Xml.dll" |
|
Delete "$INSTDIR\Qt5SerialPort.dll" |
|
|
|
Delete "$INSTDIR\Qt5Core.dll" |
|
Delete "$INSTDIR\platforms\qwindows.dll" |
|
Delete "$INSTDIR\opengl32sw.dll" |
|
Delete "$INSTDIR\opencv_world470.dll" |
|
Delete "$INSTDIR\opencv_videoio_ffmpeg470_64.dll" |
|
Delete "$INSTDIR\logo.ico" |
|
Delete "$INSTDIR\libGLESv2.dll" |
|
Delete "$INSTDIR\libEGL.dll" |
|
Delete "$INSTDIR\imageformats\qwebp.dll" |
|
Delete "$INSTDIR\imageformats\qwbmp.dll" |
|
Delete "$INSTDIR\imageformats\qtiff.dll" |
|
Delete "$INSTDIR\imageformats\qtga.dll" |
|
Delete "$INSTDIR\imageformats\qsvg.dll" |
|
Delete "$INSTDIR\imageformats\qjpeg.dll" |
|
Delete "$INSTDIR\imageformats\qico.dll" |
|
Delete "$INSTDIR\imageformats\qicns.dll" |
|
Delete "$INSTDIR\imageformats\qgif.dll" |
|
Delete "$INSTDIR\iconengines\qsvgicon.dll" |
|
Delete "$INSTDIR\D3Dcompiler_47.dll" |
|
Delete "$INSTDIR\zxrcClientSA.exe" |
|
|
|
Delete "$SMPROGRAMS\中芯热成上位机\Uninstall.lnk" |
|
Delete "$DESKTOP\中芯热成上位机.lnk" |
|
Delete "$SMPROGRAMS\中芯热成上位机\中芯热成上位机.lnk" |
|
|
|
RMDir "$SMPROGRAMS\中芯热成上位机" |
|
RMDir "$INSTDIR\translations" |
|
RMDir "$INSTDIR\styles" |
|
RMDir "$INSTDIR\platforms" |
|
RMDir "$INSTDIR\imageformats" |
|
RMDir "$INSTDIR\iconengines" |
|
RMDir "$INSTDIR" |
|
|
|
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" |
|
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" |
|
SetAutoClose true |
|
SectionEnd |