author | Dan |
Sun, 18 Apr 2010 19:40:59 -0400 | |
changeset 22 | 15fdea3d539e |
parent 0 | d5ce4c64ef88 |
permissions | -rwxr-xr-x |
0
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
1 |
!ifdef MAKEFILE |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
2 |
!verbose 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
3 |
!else |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
4 |
!define VERSION 1.1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
5 |
!endif |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
6 |
;!define BETA |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
7 |
!define BETA_IP 192.168.0.253 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
8 |
!define BETA_PORT 8765 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
9 |
SetCompress off |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
10 |
XPStyle on |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
11 |
Icon Update.ico |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
12 |
Name "ExperienceUI Downloader" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
13 |
Caption "ExperienceUI Update Wizard" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
14 |
OutFile ..\Updater.exe |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
15 |
ChangeUI all ..\..\UIs\tinyui.exe |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
16 |
SubCaption 3 " " |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
17 |
SubCaption 4 " " |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
18 |
InstallColors 0x000000 0xFFFFFF |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
19 |
BrandingText " " |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
20 |
CompletedText "Done." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
21 |
!define VER_MAJOR 1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
22 |
!define VER_TENS 1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
23 |
!define VER_ONES 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
24 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
25 |
Page custom welcome lock |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
26 |
Page custom infonotice lock |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
27 |
Page instfiles |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
28 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
29 |
Function welcome |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
30 |
LockWindow on |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
31 |
SetOutPath $TEMP |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
32 |
File Updater.ini |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
33 |
InstallOptions::initDialog /NOUNLOAD $TEMP\Updater.ini |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
34 |
Pop $1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
35 |
SetCtlColors $1 0xFFFFFF 0xFFFFFF |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
36 |
GetDlgItem $0 $1 1200 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
37 |
SetCtlColors $0 0xC0C0C0 0xFFFFFF |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
38 |
CreateFont $2 "Verdana" 28 100 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
39 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
40 |
GetDlgItem $0 $1 1201 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
41 |
SetCtlColors $0 0x000000 transparent |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
42 |
CreateFont $2 "MS Sans Serif" 8 700 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
43 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
44 |
!ifdef BETA |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
45 |
SendMessage $0 0xC 0 "STR:This is a ßeta release." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
46 |
!endif |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
47 |
GetDlgItem $0 $1 1202 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
48 |
SetCtlColors $0 0x000000 transparent |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
49 |
CreateFont $2 "MS Sans Serif" 8 350 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
50 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
51 |
!ifdef BETA |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
52 |
SendMessage $0 0xC 0 "STR:This updater will fail unless you have a computer with the IP address ${BETA_IP} on your network, and it has the file xpui/updates.ini on port ${BETA_PORT}. Please e-mail dandaman32@users.sourceforge.net for an updated version of this program!" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
53 |
!endif |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
54 |
LockWindow off |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
55 |
InstallOptions::show |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
56 |
FunctionEnd |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
57 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
58 |
Function infonotice |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
59 |
SetOutPath $TEMP |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
60 |
File Updater.ini |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
61 |
WriteINIStr $TEMP\Updater.ini "Field 1" Left -173 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
62 |
InstallOptions::initDialog /NOUNLOAD $TEMP\Updater.ini |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
63 |
Pop $1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
64 |
SetCtlColors $1 0xFFFFFF 0xFFFFFF |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
65 |
GetDlgItem $0 $1 1200 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
66 |
SetCtlColors $0 0xC0C0C0 0xFFFFFF |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
67 |
CreateFont $2 "Verdana" 28 100 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
68 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
69 |
SendMessage $0 0xC 0 "STR:privacy notice" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
70 |
GetDlgItem $0 $1 1201 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
71 |
SetCtlColors $0 0x000000 transparent |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
72 |
CreateFont $2 "MS Sans Serif" 8 700 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
73 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
74 |
SendMessage $0 0xC 0 "STR:Your privacy is important." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
75 |
GetDlgItem $0 $1 1202 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
76 |
SetCtlColors $0 0x000000 transparent |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
77 |
CreateFont $2 "MS Sans Serif" 8 350 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
78 |
SendMessage $0 0x30 $2 "" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
79 |
SendMessage $0 0xC 0 "STR:This program does not send any information about to or your computer to anyone. The only thing it does is download a text file from my web server and check its version information." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
80 |
LockWindow off |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
81 |
InstallOptions::show |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
82 |
FunctionEnd |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
83 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
84 |
Function lock |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
85 |
LockWindow on |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
86 |
FunctionEnd |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
87 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
88 |
Function .onUserAbort |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
89 |
LockWindow off |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
90 |
FunctionEnd |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
91 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
92 |
!define LVM_DELETEALLITEMS 0x1009 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
93 |
!macro CLS |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
94 |
Push $0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
95 |
FindWindow $0 "#32770" "" $HWNDPARENT |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
96 |
GetDlgItem $0 $0 1016 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
97 |
SendMessage $0 ${LVM_DELETEALLITEMS} 0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
98 |
Pop $0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
99 |
!macroend |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
100 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
101 |
Section |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
102 |
LockWindow off |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
103 |
GetDlgItem $0 $HWNDPARENT 1044 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
104 |
ShowWindow $0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
105 |
GetDlgItem $0 $HWNDPARENT 3 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
106 |
ShowWindow $0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
107 |
FindWindow $0 "#32770" "" $HWNDPARENT |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
108 |
GetDlgItem $0 $0 1004 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
109 |
ShowWindow $0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
110 |
FindWindow $0 "#32770" "" $HWNDPARENT |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
111 |
GetDlgItem $0 $0 1027 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
112 |
ShowWindow $0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
113 |
GetDlgItem $0 $HWNDPARENT 1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
114 |
ShowWindow $0 0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
115 |
DetailPrint "Connecting to the Internet..." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
116 |
Dialer::AttemptConnect |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
117 |
IfErrors noie3 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
118 |
Pop $R0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
119 |
!insertmacro CLS |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
120 |
DetailPrint "Connecting to the Internet...$R0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
121 |
StrCmp $R0 "online" connected |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
122 |
MessageBox MB_OK|MB_ICONSTOP "The ExperienceUI was unable to establish a connection to the Internet. A few possible reasons for this are:$\n$\n1) You have an Internet provider that requires authentication (such as dial-up) and you did not supply a valid$\n username or password.$\n2) Your firewall is preventing this program ($CMDLINE) from accessing the Internet.$\n3) You do not have an Internet connection set up on this computer.$\n$\nThe updater cannot continue. Please click OK to exit." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
123 |
Call cleanup |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
124 |
Abort "Unable to connect." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
125 |
noie3: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
126 |
!insertmacro CLS |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
127 |
DetailPrint "Connecting to the Internet...cannot find IE3 or later" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
128 |
MessageBox MB_OK|MB_ICONINFORMATION "The ExperienceUI has detected that you do not have Microsoft Internet Explorer 3 or later installed. The automatic internet connection feature requires MSIE3 or later to work right.$\n$\nPlease connect to the Internet now, and then click OK to continue updating the ExperienceUI." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
129 |
connected: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
130 |
!ifdef BETA |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
131 |
nsisdl::download /TRANSLATE "Downloading the update information file..." "Initializing..." " " " " " " s " " "Time left: %d %s%s" "http://${BETA_IP}:${BETA_PORT}/xpui/Updates.ini" "$TEMP\xpuiupd.ini" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
132 |
!else |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
133 |
nsisdl::download /TRANSLATE "Downloading the update information file..." "Initializing..." " " " " " " s " " "Time left: %d %s%s" http://xpui.sourceforge.net/bin/Updates.ini "$TEMP\xpuiupd.ini" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
134 |
!endif |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
135 |
Pop $0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
136 |
StrCmp $0 success GoodINI |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
137 |
MessageBox MB_OK|MB_ICONINFORMATION "The ExperienceUI updater was unable to download the update information file from the web site.$\nThe web server may be down, or there may be a problem with your Internet connection.$\n$\nError: $0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
138 |
Call cleanup |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
139 |
SetDetailsPrint textonly |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
140 |
DetailPrint "The updater cannot continue. Click Cancel to exit." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
141 |
SetDetailsPrint listonly |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
142 |
Abort "Release info download failed: $0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
143 |
Goto Done |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
144 |
GoodINI: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
145 |
DetailPrint "Checking version..." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
146 |
DetailPrint " Current: ${VERSION}" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
147 |
ReadINIStr $0 $TEMP\xpuiupd.ini ExperienceUI Display |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
148 |
DetailPrint " Latest: $0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
149 |
ReadINIStr $1 $TEMP\xpuiupd.ini ExperienceUI Major |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
150 |
ReadINIStr $2 $TEMP\xpuiupd.ini ExperienceUI Tens |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
151 |
ReadINIStr $3 $TEMP\xpuiupd.ini ExperienceUI Ones |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
152 |
ReadINIStr $4 $TEMP\xpuiupd.ini ExperienceUI Size |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
153 |
IntCmp $1 ${VER_MAJOR} "" "" Updates |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
154 |
IntCmp $2 ${VER_TENS} "" "" Updates |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
155 |
IntCmp $3 ${VER_ONES} "" "" Updates |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
156 |
Goto NoUpdates |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
157 |
Updates: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
158 |
ReadINIStr $5 $TEMP\xpuiupd.ini ExperienceUI Class |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
159 |
ReadINIStr $6 $TEMP\xpuiupd.ini ExperienceUI HighlightsLine1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
160 |
ReadINIStr $7 $TEMP\xpuiupd.ini ExperienceUI HighlightsLine2 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
161 |
ReadINIStr $8 $TEMP\xpuiupd.ini ExperienceUI TimeID |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
162 |
DetailPrint "Update ready!" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
163 |
MessageBox MB_YESNO|MB_ICONQUESTION "An update is available!$\n$\nYour version: ${VERSION}$\nNew version: $0 (Release ID: $8) $\n$\nThis update is classified as $5.$\n$\nRelease highlights:$\n$6$\n$7$\n$\nDownload it now? (size: ~$4kb)" IDYES Download |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
164 |
DetailPrint "Update found, but not downloaded." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
165 |
Goto done |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
166 |
Download: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
167 |
!ifdef BETA |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
168 |
nsisdl::download /TRANSLATE "Downloading ExperienceUI version $0..." "Connecting to server..." second minute hour s "%dKB (%d%%) of %dKB at %d.%01dKB/second" "; Time left: %d %s%s" http://${BETA_IP}:${BETA_PORT}/xpui/$0/ExperienceUISetup$0.exe "$DESKTOP\ExperienceUI Setup $0.exe" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
169 |
!else |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
170 |
nsisdl::download /TRANSLATE "Downloading ExperienceUI version $0..." "Connecting to server..." second minute hour s "%dKB (%d%%) of %dKB at %d.%01dKB/second" "; Time left: %d %s%s" http://internap.dl.sourceforge.net/sourceforge/xpui/ExperienceUISetup$0.exe "$DESKTOP\ExperienceUI Setup $0.exe" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
171 |
!endif |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
172 |
Pop $0 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
173 |
StrCmp $0 cancel DLCancelled |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
174 |
StrCmp $0 success "" DLError |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
175 |
MessageBox MB_OK|MB_ICONINFORMATION "The file was downloaded successfully to your Desktop." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
176 |
DetailPrint "Update found and downloaded successfully." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
177 |
Goto done |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
178 |
DLCancelled: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
179 |
DetailPrint "Download cancelled." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
180 |
MessageBox MB_OK|MB_ICONINFORMATION "The download was cancelled." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
181 |
Goto done |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
182 |
DLError: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
183 |
SetDetailsPrint textonly |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
184 |
DetailPrint "The updater cannot continue. Click Cancel to exit." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
185 |
SetDetailsPrint listonly |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
186 |
Call Cleanup |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
187 |
Abort "Download error: $0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
188 |
MessageBox MB_OK|MB_ICONINFORMATION "The updater was unable to download the file from the web site.$\n$\nThe following error occurred:$\n$0" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
189 |
Goto done |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
190 |
NoUpdates: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
191 |
DetailPrint "No updates available." |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
192 |
MessageBox MB_OK|MB_ICONINFORMATION "No updates are available at this time. Please try again later.$\n$\nCurrent version: ${VERSION}$\nLatest version: $0$\n" |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
193 |
Done: |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
194 |
Call Cleanup |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
195 |
SectionEnd |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
196 |
|
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
197 |
Function cleanup |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
198 |
SetDetailsPrint none |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
199 |
Delete $TEMP\xpuiupd.ini |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
200 |
SetDetailsPrint both |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
201 |
FindWindow $R0 "#32770" "" $HWNDPARENT |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
202 |
GetDlgItem $R0 $R0 1016 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
203 |
ShowWindow $R0 5 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
204 |
GetDlgItem $R0 $HWNDPARENT 1 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
205 |
ShowWindow $R0 5 |
d5ce4c64ef88
Initial population with stock ExUI 1.11pre + a couple of fixes needed to compile the installer
Dan
parents:
diff
changeset
|
206 |
Functionend |