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

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [gui/] [nis/] [for_installer.nsi] - Blame information for rev 392

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

Line No. Rev Author Line
1 182 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\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
; Directory page
23
!insertmacro MUI_PAGE_DIRECTORY
24
; Instfiles page
25
!insertmacro MUI_PAGE_INSTFILES
26
; Finish page
27
!define MUI_FINISHPAGE_RUN "$INSTDIR\phr-gui.exe"
28
!insertmacro MUI_PAGE_FINISH
29
 
30
; Uninstaller pages
31
!insertmacro MUI_UNPAGE_INSTFILES
32
 
33
; Language files
34
!insertmacro MUI_LANGUAGE "Spanish"
35
 
36
; MUI end ------
37
 
38
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
39
OutFile "phr-gui_instalar.exe"
40
InstallDir "$PROGRAMFILES\PHR GUI"
41
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
42
ShowInstDetails show
43
ShowUnInstDetails show
44
 
45
Section "Principal" SEC01
46
  SetOutPath "$INSTDIR"
47
  SetOverwrite try
48
  File "C:\Me\gui\windows\dist\bz2.pyd"
49
  SetOutPath "$INSTDIR\ejemplos"
50
  File "C:\Me\gui\windows\dist\ejemplos\test.bit"
51
  SetOutPath "$INSTDIR\grafica"
52
  File "C:\Me\gui\windows\dist\grafica\banner.jpg"
53
  File "C:\Me\gui\windows\dist\grafica\phr-gui-96.png"
54
  File "C:\Me\gui\windows\dist\grafica\phr-gui.ico"
55
  SetOutPath "$INSTDIR"
56
  File "C:\Me\gui\windows\dist\library.zip"
57
  File "C:\Me\gui\windows\dist\phr-gui.exe"
58
  CreateDirectory "$SMPROGRAMS\PHR GUI"
59
  CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
60
  CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\phr-gui.exe"
61
  File "C:\Me\gui\windows\dist\python27.dll"
62
  SetOutPath "$INSTDIR\redist"
63
  File "C:\Me\gui\windows\dist\redist\vcredist_x86.exe"
64
  SetOutPath "$INSTDIR"
65
  File "C:\Me\gui\windows\dist\select.pyd"
66
  File "C:\Me\gui\windows\dist\unicodedata.pyd"
67
  File "C:\Me\gui\windows\dist\wx._controls_.pyd"
68
  File "C:\Me\gui\windows\dist\wx._core_.pyd"
69
  File "C:\Me\gui\windows\dist\wx._gdi_.pyd"
70
  File "C:\Me\gui\windows\dist\wx._misc_.pyd"
71
  File "C:\Me\gui\windows\dist\wx._windows_.pyd"
72
  File "C:\Me\gui\windows\dist\wxbase30u_net_vc90.dll"
73
  File "C:\Me\gui\windows\dist\wxbase30u_vc90.dll"
74
  File "C:\Me\gui\windows\dist\wxmsw30u_adv_vc90.dll"
75
  File "C:\Me\gui\windows\dist\wxmsw30u_core_vc90.dll"
76
  File "C:\Me\gui\windows\dist\wxmsw30u_html_vc90.dll"
77
  SetOutPath "$INSTDIR\xc3sprog"
78
  File "C:\Me\gui\windows\dist\xc3sprog\avrfuseparse.exe"
79
  File "C:\Me\gui\windows\dist\xc3sprog\bitparse.exe"
80
  File "C:\Me\gui\windows\dist\xc3sprog\detectchain.exe"
81
  File "C:\Me\gui\windows\dist\xc3sprog\javr.exe"
82
  File "C:\Me\gui\windows\dist\xc3sprog\jedecparse.exe"
83
  File "C:\Me\gui\windows\dist\xc3sprog\readdna.exe"
84
  File "C:\Me\gui\windows\dist\xc3sprog\srecparse.exe"
85
  File "C:\Me\gui\windows\dist\xc3sprog\xc2c_warp.exe"
86
  File "C:\Me\gui\windows\dist\xc3sprog\xc3sprog.exe"
87
  SetOutPath "$INSTDIR"
88
  File "C:\Me\gui\windows\dist\_hashlib.pyd"
89
SectionEnd
90
 
91
Section -AdditionalIcons
92
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
93
  CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
94
  CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe"
95
SectionEnd
96
 
97
Section -Post
98
  ExecWait '$INSTDIR\redist\vcredist_x86.exe /q'
99
  WriteUninstaller "$INSTDIR\uninst.exe"
100
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\phr-gui.exe"
101
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
102
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
103
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\phr-gui.exe"
104
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
105
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
106
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
107
SectionEnd
108
 
109
 
110
Function un.onUninstSuccess
111
  HideWindow
112
  MessageBox MB_ICONINFORMATION|MB_OK "La desinstalación de $(^Name) finalizó satisfactoriamente."
113
FunctionEnd
114
 
115
Function un.onInit
116
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "¿Está completamente seguro que desea desinstalar $(^Name) junto con todos sus componentes?" IDYES +2
117
  Abort
118
FunctionEnd
119
 
120
Section Uninstall
121
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
122
  Delete "$INSTDIR\uninst.exe"
123
  Delete "$INSTDIR\_hashlib.pyd"
124
  Delete "$INSTDIR\xc3sprog\xc3sprog.exe"
125
  Delete "$INSTDIR\xc3sprog\xc2c_warp.exe"
126
  Delete "$INSTDIR\xc3sprog\srecparse.exe"
127
  Delete "$INSTDIR\xc3sprog\readdna.exe"
128
  Delete "$INSTDIR\xc3sprog\jedecparse.exe"
129
  Delete "$INSTDIR\xc3sprog\javr.exe"
130
  Delete "$INSTDIR\xc3sprog\detectchain.exe"
131
  Delete "$INSTDIR\xc3sprog\bitparse.exe"
132
  Delete "$INSTDIR\xc3sprog\avrfuseparse.exe"
133
  Delete "$INSTDIR\wxmsw30u_html_vc90.dll"
134
  Delete "$INSTDIR\wxmsw30u_core_vc90.dll"
135
  Delete "$INSTDIR\wxmsw30u_adv_vc90.dll"
136
  Delete "$INSTDIR\wxbase30u_vc90.dll"
137
  Delete "$INSTDIR\wxbase30u_net_vc90.dll"
138
  Delete "$INSTDIR\wx._windows_.pyd"
139
  Delete "$INSTDIR\wx._misc_.pyd"
140
  Delete "$INSTDIR\wx._gdi_.pyd"
141
  Delete "$INSTDIR\wx._core_.pyd"
142
  Delete "$INSTDIR\wx._controls_.pyd"
143
  Delete "$INSTDIR\unicodedata.pyd"
144
  Delete "$INSTDIR\select.pyd"
145
  Delete "$INSTDIR\redist\vcredist_x86.exe"
146
  Delete "$INSTDIR\python27.dll"
147
  Delete "$INSTDIR\phr-gui.exe"
148
  Delete "$INSTDIR\library.zip"
149
  Delete "$INSTDIR\grafica\phr-gui.ico"
150
  Delete "$INSTDIR\grafica\phr-gui-96.png"
151
  Delete "$INSTDIR\grafica\banner.jpg"
152
  Delete "$INSTDIR\ejemplos\test.bit"
153
  Delete "$INSTDIR\bz2.pyd"
154
 
155
  Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk"
156
  Delete "$SMPROGRAMS\PHR GUI\Website.lnk"
157
  Delete "$DESKTOP\PHR GUI.lnk"
158
  Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk"
159
 
160
  RMDir "$SMPROGRAMS\PHR GUI"
161
  RMDir "$INSTDIR\xc3sprog"
162
  RMDir "$INSTDIR\redist"
163
  RMDir "$INSTDIR\grafica"
164
  RMDir "$INSTDIR\ejemplos"
165
  RMDir "$INSTDIR"
166
 
167
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
168
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
169
  SetAutoClose true
170
SectionEnd

powered by: WebSVN 2.1.0

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