URL
https://opencores.org/ocsvn/phr/phr/trunk
Subversion Repositories phr
[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [py2exe_wx_nis/] [nis/] [for_installer.nsi] - Rev 402
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\programa.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
; License page
!insertmacro MUI_PAGE_LICENSE "C:\Me\minimal python2.7.6\py2exe_wx_nis\nis\Licencia.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\programa.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"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\bz2.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\library.zip"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\programa.exe"
CreateDirectory "$SMPROGRAMS\PHR GUI"
CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\programa.exe"
CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\programa.exe"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\python27.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\select.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\unicodedata.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._controls_.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._core_.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._gdi_.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._misc_.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._windows_.pyd"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxbase30u_net_vc90.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxbase30u_vc90.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_adv_vc90.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_core_vc90.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_html_vc90.dll"
File "C:\Me\minimal python2.7.6\py2exe_wx_nis\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
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\programa.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\programa.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\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\python27.dll"
Delete "$INSTDIR\programa.exe"
Delete "$INSTDIR\library.zip"
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"
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