URL
https://opencores.org/ocsvn/phr/phr/trunk
Subversion Repositories phr
[/] [phr/] [trunk/] [codigo/] [gui/] [xin/] [nis/] [for_installer_r337.nsi] - Rev 344
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 "phrgui"
!define PRODUCT_VERSION "0.1.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\phrgui.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\phrgui.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-011r337_instalar.exe"
InstallDir "$PROGRAMFILES\phrgui"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Section "Principal" SEC01
SetOutPath "$INSTDIR"
SetOverwrite try
File "C:\Me\gui\xin03\dist\bz2.pyd"
File "C:\Me\gui\xin03\dist\fpgaFile"
SetOutPath "$INSTDIR\grafica"
File "C:\Me\gui\xin03\dist\grafica\phr-gui-96.png"
File "C:\Me\gui\xin03\dist\grafica\phr-gui.ico"
SetOutPath "$INSTDIR"
File "C:\Me\gui\xin03\dist\library.zip"
File "C:\Me\gui\xin03\dist\phrgui.exe"
CreateDirectory "$SMPROGRAMS\PHR GUI"
CreateShortCut "$SMPROGRAMS\PHR GUI\phrgui.lnk" "$INSTDIR\phrgui.exe"
CreateShortCut "$DESKTOP\phrgui.lnk" "$INSTDIR\phrgui.exe"
File "C:\Me\gui\xin03\dist\python27.dll"
SetOutPath "$INSTDIR\redist"
File "C:\Me\gui\xin03\dist\redist\vcredist_x86.exe"
SetOutPath "$INSTDIR"
File "C:\Me\gui\xin03\dist\select.pyd"
File "C:\Me\gui\xin03\dist\unicodedata.pyd"
File "C:\Me\gui\xin03\dist\w9xpopen.exe"
File "C:\Me\gui\xin03\dist\wx._controls_.pyd"
File "C:\Me\gui\xin03\dist\wx._core_.pyd"
File "C:\Me\gui\xin03\dist\wx._gdi_.pyd"
File "C:\Me\gui\xin03\dist\wx._misc_.pyd"
File "C:\Me\gui\xin03\dist\wx._windows_.pyd"
File "C:\Me\gui\xin03\dist\wxbase295u_net_vc90.dll"
File "C:\Me\gui\xin03\dist\wxbase295u_vc90.dll"
File "C:\Me\gui\xin03\dist\wxmsw295u_adv_vc90.dll"
File "C:\Me\gui\xin03\dist\wxmsw295u_core_vc90.dll"
File "C:\Me\gui\xin03\dist\wxmsw295u_html_vc90.dll"
SetOutPath "$INSTDIR\xc3sprog\win"
File "C:\Me\gui\xin03\dist\xc3sprog\win\avrfuseparse.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\bitparse.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\detectchain.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\javr.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\jedecparse.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\readdna.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\srecparse.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\xc2c_warp.exe"
File "C:\Me\gui\xin03\dist\xc3sprog\win\xc3sprog.exe"
SetOutPath "$INSTDIR"
File "C:\Me\gui\xin03\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\phrgui.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\phrgui.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\win\xc3sprog.exe"
Delete "$INSTDIR\xc3sprog\win\xc2c_warp.exe"
Delete "$INSTDIR\xc3sprog\win\srecparse.exe"
Delete "$INSTDIR\xc3sprog\win\readdna.exe"
Delete "$INSTDIR\xc3sprog\win\jedecparse.exe"
Delete "$INSTDIR\xc3sprog\win\javr.exe"
Delete "$INSTDIR\xc3sprog\win\detectchain.exe"
Delete "$INSTDIR\xc3sprog\win\bitparse.exe"
Delete "$INSTDIR\xc3sprog\win\avrfuseparse.exe"
Delete "$INSTDIR\wxmsw295u_html_vc90.dll"
Delete "$INSTDIR\wxmsw295u_core_vc90.dll"
Delete "$INSTDIR\wxmsw295u_adv_vc90.dll"
Delete "$INSTDIR\wxbase295u_vc90.dll"
Delete "$INSTDIR\wxbase295u_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\w9xpopen.exe"
Delete "$INSTDIR\unicodedata.pyd"
Delete "$INSTDIR\select.pyd"
Delete "$INSTDIR\redist\vcredist_x86.exe"
Delete "$INSTDIR\python27.dll"
Delete "$INSTDIR\phrgui.exe"
Delete "$INSTDIR\library.zip"
Delete "$INSTDIR\grafica\phr-gui.ico"
Delete "$INSTDIR\grafica\phr-gui-96.png"
Delete "$INSTDIR\fpgaFile"
Delete "$INSTDIR\bz2.pyd"
Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk"
Delete "$SMPROGRAMS\PHR GUI\Website.lnk"
Delete "$DESKTOP\phrgui.lnk"
Delete "$SMPROGRAMS\PHR GUI\phrgui.lnk"
RMDir "$SMPROGRAMS\PHR GUI"
RMDir "$INSTDIR\xc3sprog\win"
RMDir "$INSTDIR\redist"
RMDir "$INSTDIR\grafica"
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