OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [gui/] [nis/] [for_installer.nsi] - Rev 271

Go to most recent revision | Compare with Previous | Blame | View Log

; Script generated by the HM NIS Edit Script Wizard.

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "PHR GUI"
!define PRODUCT_VERSION "0.1"
!define PRODUCT_PUBLISHER "CUDAR (UTN-FRC)"
!define PRODUCT_WEB_SITE "http://opencores.org/project,phr"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\phr-gui.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"

; 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"

; 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\phr-gui.exe"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "Spanish"

; MUI end ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "phr-gui_instalar.exe"
InstallDir "$PROGRAMFILES\PHR GUI"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

Section "Principal" SEC01
  SetOutPath "$INSTDIR"
  SetOverwrite try
  File "C:\Me\gui\windows\dist\bz2.pyd"
  SetOutPath "$INSTDIR\ejemplos"
  File "C:\Me\gui\windows\dist\ejemplos\test.bit"
  SetOutPath "$INSTDIR\grafica"
  File "C:\Me\gui\windows\dist\grafica\banner.jpg"
  File "C:\Me\gui\windows\dist\grafica\phr-gui-96.png"
  File "C:\Me\gui\windows\dist\grafica\phr-gui.ico"
  SetOutPath "$INSTDIR"
  File "C:\Me\gui\windows\dist\library.zip"
  File "C:\Me\gui\windows\dist\phr-gui.exe"
  CreateDirectory "$SMPROGRAMS\PHR GUI"
  CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
  CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
  File "C:\Me\gui\windows\dist\python27.dll"
  SetOutPath "$INSTDIR\redist"
  File "C:\Me\gui\windows\dist\redist\vcredist_x86.exe"
  SetOutPath "$INSTDIR"
  File "C:\Me\gui\windows\dist\select.pyd"
  File "C:\Me\gui\windows\dist\unicodedata.pyd"
  File "C:\Me\gui\windows\dist\wx._controls_.pyd"
  File "C:\Me\gui\windows\dist\wx._core_.pyd"
  File "C:\Me\gui\windows\dist\wx._gdi_.pyd"
  File "C:\Me\gui\windows\dist\wx._misc_.pyd"
  File "C:\Me\gui\windows\dist\wx._windows_.pyd"
  File "C:\Me\gui\windows\dist\wxbase30u_net_vc90.dll"
  File "C:\Me\gui\windows\dist\wxbase30u_vc90.dll"
  File "C:\Me\gui\windows\dist\wxmsw30u_adv_vc90.dll"
  File "C:\Me\gui\windows\dist\wxmsw30u_core_vc90.dll"
  File "C:\Me\gui\windows\dist\wxmsw30u_html_vc90.dll"
  SetOutPath "$INSTDIR\xc3sprog"
  File "C:\Me\gui\windows\dist\xc3sprog\avrfuseparse.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\bitparse.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\detectchain.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\javr.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\jedecparse.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\readdna.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\srecparse.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\xc2c_warp.exe"
  File "C:\Me\gui\windows\dist\xc3sprog\xc3sprog.exe"
  SetOutPath "$INSTDIR"
  File "C:\Me\gui\windows\dist\_hashlib.pyd"
SectionEnd

Section -AdditionalIcons
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
  CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
  CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe"
SectionEnd

Section -Post
  ExecWait '$INSTDIR\redist\vcredist_x86.exe /q'
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\phr-gui.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\phr-gui.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd


Function un.onUninstSuccess
  HideWindow
FunctionEnd

Function un.onInit
  Abort
FunctionEnd

Section Uninstall
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
  Delete "$INSTDIR\uninst.exe"
  Delete "$INSTDIR\_hashlib.pyd"
  Delete "$INSTDIR\xc3sprog\xc3sprog.exe"
  Delete "$INSTDIR\xc3sprog\xc2c_warp.exe"
  Delete "$INSTDIR\xc3sprog\srecparse.exe"
  Delete "$INSTDIR\xc3sprog\readdna.exe"
  Delete "$INSTDIR\xc3sprog\jedecparse.exe"
  Delete "$INSTDIR\xc3sprog\javr.exe"
  Delete "$INSTDIR\xc3sprog\detectchain.exe"
  Delete "$INSTDIR\xc3sprog\bitparse.exe"
  Delete "$INSTDIR\xc3sprog\avrfuseparse.exe"
  Delete "$INSTDIR\wxmsw30u_html_vc90.dll"
  Delete "$INSTDIR\wxmsw30u_core_vc90.dll"
  Delete "$INSTDIR\wxmsw30u_adv_vc90.dll"
  Delete "$INSTDIR\wxbase30u_vc90.dll"
  Delete "$INSTDIR\wxbase30u_net_vc90.dll"
  Delete "$INSTDIR\wx._windows_.pyd"
  Delete "$INSTDIR\wx._misc_.pyd"
  Delete "$INSTDIR\wx._gdi_.pyd"
  Delete "$INSTDIR\wx._core_.pyd"
  Delete "$INSTDIR\wx._controls_.pyd"
  Delete "$INSTDIR\unicodedata.pyd"
  Delete "$INSTDIR\select.pyd"
  Delete "$INSTDIR\redist\vcredist_x86.exe"
  Delete "$INSTDIR\python27.dll"
  Delete "$INSTDIR\phr-gui.exe"
  Delete "$INSTDIR\library.zip"
  Delete "$INSTDIR\grafica\phr-gui.ico"
  Delete "$INSTDIR\grafica\phr-gui-96.png"
  Delete "$INSTDIR\grafica\banner.jpg"
  Delete "$INSTDIR\ejemplos\test.bit"
  Delete "$INSTDIR\bz2.pyd"

  Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk"
  Delete "$SMPROGRAMS\PHR GUI\Website.lnk"
  Delete "$DESKTOP\PHR GUI.lnk"
  Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk"

  RMDir "$SMPROGRAMS\PHR GUI"
  RMDir "$INSTDIR\xc3sprog"
  RMDir "$INSTDIR\redist"
  RMDir "$INSTDIR\grafica"
  RMDir "$INSTDIR\ejemplos"
  RMDir "$INSTDIR"

  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  SetAutoClose true
SectionEnd

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.