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

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [wx_simple_gui_events_dist/] [nis/] [para_instalador.nsi] - Blame information for rev 172

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://www.frc.utn.edu.ar/"
8
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\phr-gui.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\wx_simple_gui_events_dist\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\phr-gui.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\wx_simple_gui_events_dist\dist\bz2.pyd"
50
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\imagen.jpg"
51
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\library.zip"
52
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\phr-gui.exe"
53
  CreateDirectory "$SMPROGRAMS\PHR GUI"
54
  CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
55
  CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
56
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\python27.dll"
57
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\select.pyd"
58
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\unicodedata.pyd"
59
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wx._controls_.pyd"
60
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wx._core_.pyd"
61
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wx._gdi_.pyd"
62
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wx._misc_.pyd"
63
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wx._windows_.pyd"
64
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wxbase30u_net_vc90.dll"
65
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wxbase30u_vc90.dll"
66
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wxmsw30u_adv_vc90.dll"
67
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wxmsw30u_core_vc90.dll"
68
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\wxmsw30u_html_vc90.dll"
69
  File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist\dist\_hashlib.pyd"
70
SectionEnd
71
 
72
Section -AdditionalIcons
73
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
74
  CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
75
  CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe"
76
SectionEnd
77
 
78
Section -Post
79
  WriteUninstaller "$INSTDIR\uninst.exe"
80
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\phr-gui.exe"
81
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
82
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
83
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\phr-gui.exe"
84
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
85
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
86
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
87
SectionEnd
88
 
89
 
90
Function un.onUninstSuccess
91
  HideWindow
92
  MessageBox MB_ICONINFORMATION|MB_OK "La desinstalación de $(^Name) finalizó satisfactoriamente."
93
FunctionEnd
94
 
95
Function un.onInit
96
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "¿Está completamente seguro que desea desinstalar $(^Name) junto con todos sus componentes?" IDYES +2
97
  Abort
98
FunctionEnd
99
 
100
Section Uninstall
101
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
102
  Delete "$INSTDIR\uninst.exe"
103
  Delete "$INSTDIR\_hashlib.pyd"
104
  Delete "$INSTDIR\wxmsw30u_html_vc90.dll"
105
  Delete "$INSTDIR\wxmsw30u_core_vc90.dll"
106
  Delete "$INSTDIR\wxmsw30u_adv_vc90.dll"
107
  Delete "$INSTDIR\wxbase30u_vc90.dll"
108
  Delete "$INSTDIR\wxbase30u_net_vc90.dll"
109
  Delete "$INSTDIR\wx._windows_.pyd"
110
  Delete "$INSTDIR\wx._misc_.pyd"
111
  Delete "$INSTDIR\wx._gdi_.pyd"
112
  Delete "$INSTDIR\wx._core_.pyd"
113
  Delete "$INSTDIR\wx._controls_.pyd"
114
  Delete "$INSTDIR\unicodedata.pyd"
115
  Delete "$INSTDIR\select.pyd"
116
  Delete "$INSTDIR\python27.dll"
117
  Delete "$INSTDIR\phr-gui.exe"
118
  Delete "$INSTDIR\library.zip"
119
  Delete "$INSTDIR\imagen.jpg"
120
  Delete "$INSTDIR\bz2.pyd"
121
 
122
  Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk"
123
  Delete "$SMPROGRAMS\PHR GUI\Website.lnk"
124
  Delete "$DESKTOP\PHR GUI.lnk"
125
  Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk"
126
 
127
  RMDir "$SMPROGRAMS\PHR GUI"
128
  RMDir "$INSTDIR"
129
 
130
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
131
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
132
  SetAutoClose true
133
SectionEnd

powered by: WebSVN 2.1.0

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