OpenCores
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] - Blame information for rev 375

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

Line No. Rev Author Line
1 172 maximiq
; Script generated by the HM NIS Edit Script Wizard.
2
 
3
; HM NIS Edit Wizard helper defines
4
!define PRODUCT_NAME "PHR GUI"
5
!define PRODUCT_VERSION "0.1"
6
!define PRODUCT_PUBLISHER "CUDAR (UTN-FRC)"
7
!define PRODUCT_WEB_SITE "http://opencores.org/project,phr"
8
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\programa.exe"
9
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
10
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
11
 
12
; MUI 1.67 compatible ------
13
!include "MUI.nsh"
14
 
15
; MUI Settings
16
!define MUI_ABORTWARNING
17
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
18
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
19
 
20
; Welcome page
21
!insertmacro MUI_PAGE_WELCOME
22
; License page
23
!insertmacro MUI_PAGE_LICENSE "C:\Me\minimal python2.7.6\py2exe_wx_nis\nis\Licencia.txt"
24
; Directory page
25
!insertmacro MUI_PAGE_DIRECTORY
26
; Instfiles page
27
!insertmacro MUI_PAGE_INSTFILES
28
; Finish page
29
!define MUI_FINISHPAGE_RUN "$INSTDIR\programa.exe"
30
!insertmacro MUI_PAGE_FINISH
31
 
32
; Uninstaller pages
33
!insertmacro MUI_UNPAGE_INSTFILES
34
 
35
; Language files
36
!insertmacro MUI_LANGUAGE "Spanish"
37
 
38
; MUI end ------
39
 
40
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
41
OutFile "phr-gui_instalar.exe"
42
InstallDir "$PROGRAMFILES\PHR GUI"
43
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
44
ShowInstDetails show
45
ShowUnInstDetails show
46
 
47
Section "Principal" SEC01
48
  SetOutPath "$INSTDIR"
49
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\bz2.pyd"
50
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\library.zip"
51
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\programa.exe"
52
  CreateDirectory "$SMPROGRAMS\PHR GUI"
53
  CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\programa.exe"
54
  CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\programa.exe"
55
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\python27.dll"
56
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\select.pyd"
57
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\unicodedata.pyd"
58
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._controls_.pyd"
59
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._core_.pyd"
60
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._gdi_.pyd"
61
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._misc_.pyd"
62
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wx._windows_.pyd"
63
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxbase30u_net_vc90.dll"
64
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxbase30u_vc90.dll"
65
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_adv_vc90.dll"
66
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_core_vc90.dll"
67
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\wxmsw30u_html_vc90.dll"
68
  File "C:\Me\minimal python2.7.6\py2exe_wx_nis\dist\_hashlib.pyd"
69
SectionEnd
70
 
71
Section -AdditionalIcons
72
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
73
  CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
74
  CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe"
75
SectionEnd
76
 
77
Section -Post
78
  WriteUninstaller "$INSTDIR\uninst.exe"
79
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\programa.exe"
80
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
81
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
82
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\programa.exe"
83
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
84
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
85
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
86
SectionEnd
87
 
88
 
89
Function un.onUninstSuccess
90
  HideWindow
91
  MessageBox MB_ICONINFORMATION|MB_OK "La desinstalación de PHR GUI finalizó satisfactoriamente."
92
FunctionEnd
93
 
94
Function un.onInit
95
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "¿Está completamente seguro que desea desinstalar PHR GUI junto con todos sus componentes?" IDYES +2
96
  Abort
97
FunctionEnd
98
 
99
Section Uninstall
100
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
101
  Delete "$INSTDIR\uninst.exe"
102
  Delete "$INSTDIR\_hashlib.pyd"
103
  Delete "$INSTDIR\wxmsw30u_html_vc90.dll"
104
  Delete "$INSTDIR\wxmsw30u_core_vc90.dll"
105
  Delete "$INSTDIR\wxmsw30u_adv_vc90.dll"
106
  Delete "$INSTDIR\wxbase30u_vc90.dll"
107
  Delete "$INSTDIR\wxbase30u_net_vc90.dll"
108
  Delete "$INSTDIR\wx._windows_.pyd"
109
  Delete "$INSTDIR\wx._misc_.pyd"
110
  Delete "$INSTDIR\wx._gdi_.pyd"
111
  Delete "$INSTDIR\wx._core_.pyd"
112
  Delete "$INSTDIR\wx._controls_.pyd"
113
  Delete "$INSTDIR\unicodedata.pyd"
114
  Delete "$INSTDIR\select.pyd"
115
  Delete "$INSTDIR\python27.dll"
116
  Delete "$INSTDIR\programa.exe"
117
  Delete "$INSTDIR\library.zip"
118
  Delete "$INSTDIR\bz2.pyd"
119
 
120
  Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk"
121
  Delete "$SMPROGRAMS\PHR GUI\Website.lnk"
122
  Delete "$DESKTOP\PHR GUI.lnk"
123
  Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk"
124
 
125
  RMDir "$SMPROGRAMS\PHR GUI"
126
  RMDir "$INSTDIR"
127
 
128
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
129
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
130
  SetAutoClose true
131
SectionEnd

powered by: WebSVN 2.1.0

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