-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLW.hta
558 lines (469 loc) · 20.2 KB
/
LW.hta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<html>
<title>Lane Wizard | GaP Solutions pty. ltd.</title>
<head>
<HTA:APPLICATION
ID="LaneWizard"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
WINDOWSTATE="window"
NAVIGATABLE="yes"
INNERBORDERS="no"
SCROLL="no"
APPLICATIONNAME="Lane Wizzard"
SINGLEINSTANCE="no"
SYSMENU="yes"
SELECTION="no"
VERSION="2019.05.09" />
</head>
<!-- https://github.com/nathan026/MySQLBackup -->
<style>
BODY {
background-color: #333333;
font-family: Verdana;
font-size: 15px;
color: cbcbcb;
margin: 0;
}
div.Blanket_Div {
visibility:hidden;
Background:Black;
filter:alpha(opacity=80);
opacity:0.2;
z-index:9999;
height:100%;
width:100%;
position:absolute;
text-align:center;
line-height:600px;
}
</style>
<script language="VBScript">
window.resizeTo 500,550
window.moveTo (screen.Width - 500)/2, ((screen.Height - 550)/2)-20
Dim fso, tempfile, tfolder, strMySQL, strSQLUser, strPassword, strSQLFile, strBackup, strMySQLdump, strMySQLcheck, strAppVer, loaded, http_obj, stream_obj, objShell, strUpdate
Dim strCommandLine, strHTA
Const TemporaryFolder = 2
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
Set fso = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
Set UAC = CreateObject("Shell.Application")
Set tfolder = fso.GetSpecialFolder(TemporaryFolder)
set http_obj = CreateObject("Microsoft.XMLHTTP")
set stream_obj = CreateObject("ADODB.Stream")
strSQLUser = tfolder & "\sqluser"
strTools = tfolder & "\sqlTools"
strSQLFile = tfolder & "\mysqldump.sql"
strBackup = tfolder & "\MySQL_Backup"
strAppVer = LaneWizard.Version
strHTA = Self.location.pathname
strCommandLine = LaneWizard.CommandLine
Sub Window_OnLoad
AppVersion.InnerHTML = strAppVer
If Not IsAdmin( True ) Then
msgbox "Need permission to write file...", , "Warning!"
End If
Set colIP = objWMIService.ExecQuery ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
Set colBIOS = objWMIService.ExecQuery ("Select * from Win32_BIOS")
Set colUSER = objWMIService.ExecQuery ("select * from Win32_useraccount")
Set colCOMPNAME = objWMIService.ExecQuery( "Select * from Win32_ComputerSystem" )
Set colComputers = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem")
For each objCOMPNAME in colCOMPNAME
strCompName = objCOMPNAME.Name
strHTML = strHTML & strCompName
next
For each objBIOS in colBIOS
Serial.Value = objBIOS.SerialNumber
Next
For each objCOMPNAME in colCOMPNAME
CompName.innerHTML = objCOMPNAME.Name
next
On Error Resume Next
For each objitem in colIP
strIPAddress = Join(objitem.IPAddress, ".")
IP.innerHTML = Join(objitem.IPAddress, " _ _ _ ")
Exit For
Next
outputArray = split(strIPAddress, ".")
StoreNo.Value = outputArray(2)
Set objRegEx = CreateObject("VBScript.RegExp")
objRegEx.Global = True
objRegEx.Pattern = "[^0-9]"
Set colMatches = objRegEx.Execute(Right(strCompName,2))
If colMatches.Count > 0 Then
MachineNo.Value = "00"
Else
MachineNo.Value = Right(strCompName,2)
End If
On Error Goto 0
For each objUser in colUSER
strUser = ucase(objUser.caption & ",")
Next
DataArea.innerHTML = strHTML
If fso.FileExists("C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe") Then
objShell.CurrentDirectory = "C:\Program Files\MySQL\MySQL Server 5.5\bin\"
strMySQL = "mysql.exe"
strMySQLadmin = "mysqladmin.exe"
strMySQLdump = "mysqldump.exe"
strMySQLcheck = "mysqlcheck.exe"
MySQLInstall = True
ElseIf fso.FileExists("C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysql.exe") Then
objShell.CurrentDirectory = "C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\"
strMySQL = "mysql.exe"
strMySQLadmin = "mysqladmin.exe"
strMySQLdump = "mysqldump.exe"
strMySQLcheck = "mysqlcheck.exe"
MySQLInstall = True
Else
strMySQL = "echo"
strMySQLadmin = "echo"
strMySQLdump = "echo"
strMySQLcheck = "echo"
document.getElementById("start").disabled=true
MsgBox "MySQL could not be found", , "Error!"
End If
'-----------------------------------------------------------------------------------------
'' strPassword = InputBox("Enter Password", MySQLBackup.applicationName, "")
strPassword = "gap"
'-----------------------------------------------------------------------------------------
setTimeout "CheckUpdate", 100, "VBScript"
End Sub
Function IsAdmin( showMessage )
Dim intRC
Dim objUAC
IsAdmin = False
On Error Resume Next
' intRC = objShell.Run( "CMD /C OPENFILES > NUL 2>&1", 7, True ) ' CHeck for Admin
intRC = objShell.Run( "cmd /C echo. > c:\windows\1.1", 7, True ) ' Check for Write Privileges to Windows folder
If Err Then intRC = 1
On Error Goto 0
If intRC = 0 Then
IsAdmin = True
Else
strHTA = Self.location.pathname
strCommandLine = LaneWizard.CommandLine
' Strip HTA file name or path from command line
If InStr( strCommandLine, """" & strHTA & """" ) = 1 Then
strCommandLine = Mid( strCommandLine, Len( strHTA ) + 3 )
ElseIf InStr( strCommandLine, strHTA ) = 1 Then
strCommandLine = Mid( strCommandLine, Len( strHTA ) + 1 )
ElseIf InStr( strCommandLine, """" & gvoFSO.GetFileName( strHTA ) & """" ) = 1 Then
strCommandLine = Mid( strCommandLine, Len( strHTA ) + 3 )
ElseIf InStr( strCommandLine, gvoFSO.GetFileName( strHTA ) ) = 1 Then
strCommandLine = Mid( strCommandLine, Len( strHTA ) + 1 )
ElseIf InStr( strCommandLine, gvoFSO.GetFileName( strHTA ) ) > 0 Then
strCommandLine = Mid( strCommandLine, InStr( strHTA ) + Len( strHTA ) + 1 )
If Left( strCommandLine, 1 ) = """" Then strCommandLine = Mid( strCommandLine, 2 )
Else
' Error: do nothing, the HTA will close
End If
strCommandLine = Replace( Trim( strCommandLine ), """", """""" )
' Elevate privileges
Set objUAC = CreateObject( "Shell.Application" )
objUAC.ShellExecute "MSHTA.EXE", """" & strHTA & """ /NOADMIN " & strCommandLine, "", "runas", 1
Set objUAC = Nothing
window.close True
End If
End Function
Sub Start
Set colComputers = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem")
Blanket_Div.style.visibility="hidden"
''###### serial Number
If fso.FileExists("c:\Serialno.txt") Then
Set objFile = fso.OpenTextFile("c:\Serialno.txt", 2)
objFile.WriteLine Serial.Value
objFile.Close
Else
Set objFile = fso.CreateTextFile("c:\Serialno.txt")
objFile.WriteLine Serial.Value
objFile.Close
End If
''###### timezone
UAC.ShellExecute "tzutil.exe", "/s """ & timezone.Value & "", "", "runas", 1
''###### machine name
If mode(0).Checked Then
MachineType = "Lane"
ElseIf mode(1).Checked Then
MachineType = "Lane"
ElseIf mode(2).Checked Then
MachineType = "ezi-scale"
End If
For Each objComputer in colComputers
If StoreCheckBox(2).Checked Then ''HFM
err = objComputer.Rename("HF_02" & Right("0" & StoreNo.Value, 2) & Right("00" & MachineNo.Value, 2))
ElseIf StoreCheckBox(1).Checked Then ''Drakes
err = objComputer.Rename(Right("000" & StoreNo.Value, 3) & "_" & MachineType & Right("00" & MachineNo.Value, 2))
ElseIf StoreCheckBox(0).Checked Then ''None
err = objComputer.Rename(MachineType & Right("00" & MachineNo.Value, 2))
End If
Next
''###### ezipos
If mode(0).Checked Then
Set lnk = objShell.CreateShortcut("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\ezi-POS.lnk")
lnk.TargetPath = "C:\Program Files (x86)\GaP Solutions Pty Ltd\ezi-POS\ezi-POS.exe"
If fso.FileExists("C:\Program Files\GaP Solutions Pty Ltd\ezi-POS\ezi-POS.exe") Then
lnk.TargetPath = "C:\Program Files\GaP Solutions Pty Ltd\ezi-POS\ezi-POS.exe"
End If
lnk.Description = "ezi-POS"
lnk.Save
'Clean up
Set lnk = Nothing
Set objFile2 = fso.CreateTextFile(strTools)
strLine = "GRANT USAGE ON *.* TO 'gap'@'localhost' IDENTIFIED BY '" & strPassword & "'; GRANT ALL PRIVILEGES ON *.* TO 'gap'@'localhost' WITH GRANT OPTION;" & _
" GRANT USAGE ON *.* TO 'gap'@'%' IDENTIFIED BY '" & strPassword & "'; GRANT ALL PRIVILEGES ON *.* TO 'gap'@'%' WITH GRANT OPTION;" & _
" GRANT USAGE ON *.* TO 'gappde'@'localhost' IDENTIFIED BY 'gappde'; GRANT ALL PRIVILEGES ON *.* TO 'gappde'@'localhost' WITH GRANT OPTION;" & _
" SET PASSWORD FOR 'gappde'@'localhost' = OLD_PASSWORD('gappde'); FLUSH PRIVILEGES;"
objFile2.WriteLine strLine
objFile2.Close
objShell.Run "cmd /c " & strMySQL & " -u root -proot < " & DQ(strTools), 0, True
MsgBox("ezi-pos not installed, Please install latest version of ezi-pos...")
End If
''###### logivision
If mode(1).Checked Then
On error resume Next
Dim WshShell, oReg, keyname
Const HKEY_LOCAL_MACHINE = &H80000002
Set WshShell = CreateObject("WScript.Shell")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
keyname = ""
keyname = wshshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" & subkey & "\DisplayName")
If keyname = ezi-POS then
j = subkey
End If
Next
If j Then
WshShell.Run "MSIEXEC.EXE /X " & j & " /QB!", 1, True
End If
Set WshShell = Nothing
set ObjReg = Nothing
MsgBox("Please install correct version of L-POS...")
End If
''###### ezi-scale
If Mode(2).Checked Then
MsgBox("Please install latest version of ezi-scale...")
End If
''###### Delete Desktop Shortcut
If fso.FileExists("C:\Users\POS\Desktop\Lane Wizard.lnk") Then
fso.DeleteFile "C:\Users\POS\Desktop\Lane Wizard.lnk"
End If
''###### Delete Startup Shortcut
If fso.FileExists("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\Lane Wizard.lnk") Then
fso.DeleteFile "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\Lane Wizard.lnk"
End If
''###### Message Box
result = MsgBox ("Restart Windows? Press No if you plan to restart later.", vbYesNo+vbExclamation+vbDefaultButton1, "Setup Complete!")
Dim message
Select Case result
Case vbYes
objShell.Run "shutdown.exe /R /T 5 /C ""Rebooting now!"" "
Case vbNo
End Select
Blanket_Div.style.visibility="visible"
End Sub
Sub S_Up
document.getElementById("StoreNo").value = document.getElementById("StoreNo").value + 1
StoreNoChange
end Sub
Sub S_Down
document.getElementById("StoreNo").value = document.getElementById("StoreNo").value - 1
StoreNoChange
End Sub
Sub M_Up
document.getElementById("MachineNo").value = document.getElementById("MachineNo").value + 1
StoreNoChange
End Sub
Sub M_Down
document.getElementById("MachineNo").value = document.getElementById("MachineNo").value - 1
StoreNoChange
End Sub
Sub StoreNoChange
If mode(0).Checked Then
MachineType = "Lane"
header.style.background="#B82601"
document.getElementById("heading").innerHTML = "GaP Solutions ezi-pos"
ElseIf mode(1).Checked Then
MachineType = "Lane"
header.style.background="#813772"
document.getElementById("heading").innerHTML = "Logivision L-POS"
ElseIf mode(2).Checked Then
MachineType = "ezi-scale"
header.style.background="#01b81c"
document.getElementById("heading").innerHTML = "GaP Solutions ezi-scale"
End If
If StoreCheckBox(2).Checked Then ''HFM
StoreNo.Disabled = False
StoreNoDiv.style.visibility="visible"
TeamviewerDRAKE.style.visibility="hidden"
TeamviewerHFM.style.visibility="visible"
Teamviewer.style.visibility="hidden"
DataAreaMachineName.innerHTML = "HF_02" & Right("0" & StoreNo.Value, 2) & Right("00" & MachineNo.Value, 2)
ElseIf StoreCheckBox(1).Checked Then ''Drakes
StoreNo.Disabled = False
StoreNoDiv.style.visibility="visible"
TeamviewerDRAKE.style.visibility="visible"
TeamviewerHFM.style.visibility="hidden"
Teamviewer.style.visibility="Hidden"
DataAreaMachineName.innerHTML = Right("000" & StoreNo.Value, 3) & "_" & MachineType & Right("00" & MachineNo.Value, 2)
ElseIf StoreCheckBox(0).Checked Then ''None
StoreNo.Disabled = True
StoreNoDiv.style.visibility="hidden"
TeamviewerDRAKE.style.visibility="hidden"
TeamviewerHFM.style.visibility="hidden"
Teamviewer.style.visibility="visible"
DataAreaMachineName.innerHTML = MachineType & Right("00" & MachineNo.Value, 2)
End If
End Sub
Sub CheckUpdate ''CHECK FOR UPDATES
Dim lenLatestVer, strCurrentVer, strLatestver
Checking.style.visibility="Visible"
strCurrentVer = Split( LaneWizard.Version )(0)
strUpdate = LEFT(TextFromHTML( "https://raw.githubusercontent.com/nathan026/MySQLBackup/master/LW-version.txt?noone=" & timer ), 500)
strLatestVer = LEFT(strUpdate,10)
If (Replace(strLatestver,".","") > Replace(strCurrentVer,".","")) Then
Blanket_Div.style.visibility="visible"
If Not IsAdmin( True ) Then
msgbox "Need permission to write file...", , "Warning!"
End If
http_obj.open "GET", "https://raw.githubusercontent.com/nathan026/MySQLBackup/master/LW.hta?noonce=" & timer, False
http_obj.send
stream_obj.type = 1
stream_obj.open
stream_obj.write http_obj.responseBody
stream_obj.savetofile self.location.pathname, 2
objShell.run DQ(self.location.pathname)
Self.Close()
Blanket_Div.style.visibility="hidden"
End If
setTimeout "Download", 500, "VBScript"
Checking.style.visibility="Hidden"
End Sub
Sub Download ''DOWNLOAD DBBackup UPDATE
Blanket_Div.style.visibility="visible"
If Not IsAdmin( True ) Then
msgbox "Need permission to write file...", , "Warning!"
End If
On Error Resume Next
http_obj.open "GET", "https://raw.githubusercontent.com/nathan026/MySQLBackup/master/DBBackup.hta?noonce=" & timer, False
http_obj.send
stream_obj.type = 1
stream_obj.open
stream_obj.write http_obj.responseBody
stream_obj.savetofile "C:\Support\DBBackup.hta", 2
On Error Goto 0
Blanket_Div.style.visibility="Hidden"
End Sub
Function TextFromHTML( myURL )
Dim objHTTP
TextFromHTML = ""
On Error Resume Next
Set objHTTP = CreateObject( "WinHttp.WinHttpRequest.5.1" )
objHTTP.Open "GET", myURL
objHTTP.Send
If Err Then gvbConnected = False
' Check if the result was valid, and if so return the result
If objHTTP.Status = 200 Then TextFromHTML = objHTTP.ResponseText
Set objHTTP = Nothing
On Error Goto 0
End Function
'-----------------------------------------------------------------------------------------
'Name : DQ -> Place double quotes around a string and replace double quotes
' : -> within the string with pairs of double quotes.
'Parameters : stringValue -> String value to be double quoted
'Return : DQ -> Double quoted string.
'-----------------------------------------------------------------------------------------
Function DQ(ByVal stringValue)
If stringValue <> "" Then
DQ = """" & Replace(stringValue, """", """""") & """"
Else
DQ = """"""
End If
End Function
'-----------------------------------------------------------------------------------------
</script>
<script language="javascript">
</script>
<body align="center">
<div id="Blanket_div" style="Background:Black; filter:alpha(opacity=80); opacity:0.2; z-index:9999; height:100%; width:100%; position:absolute; visibility:hidden; text-align:center; line-height: 600px;">
<span style="font-size:50px;display: inline-block; vertical-align: middle;">Please Wait...</span>
<br>
<span id="DataArea"></span><br>
</div>
<div id="header" style="height:10%; background-color:#B82601;">
<span id="CompName"></span>
<br>
<span id="IP" style="color:#dfe4e6;">NO NETWORK DETECTED</span>
<br>
<span id="MySQL" style="font-size:14px"></span>
</div>
<p>
<div id="main" align="center" style="width:100%; height:85%;">
<input type="Radio" checked="true" id="ezipos" name="mode" Value="1" onClick="StoreNoChange">
<label for="ezipos">ezi-pos</label>
<input type="Radio" id="logivision" name="Mode" Value="2" onClick="StoreNoChange">
<label for="logivision">L-POS</label>
<input type="Radio" id="eziscale" name="Mode" Value="3" onClick="StoreNoChange">
<label for="eziscale">ezi-scale</label>
<p>
<div id="Settings" style="visibility: visible; width:400px">
<h2 id="heading" align="Left">GaP Solutions ezi-pos</h2>
Select Time Zone:
<select size="1" name="timezone">
<option value="Cen. Australia Standard Time">---</option>
<option value="W. Australia Standard Time">Perth</option>
<option value="Cen. Australia Standard Time">Adelaide</option>
<option value="AUS Central Standard Time">Darwin</option>
<option value="E. Australia Standard Time">Brisbane</option>
<option value="AUS Eastern Standard Time">Canberra, Melbourne, Sydney</option>
<option value="Tasmania Standard Time">Hobart</option>
<option value="Cen. Australia Standard Time">---</option>
<option value="New Zealand Standard Time">Auckland, Wellington</option>
<option value="Fiji Islands Standard Time">Fiji Islands</option>
<option value="West Pacific Standard Time">Port Moresby</option>
<option value="Tokyo Standard Time">Osaka, Sapporo, Tokyo</option>
<option value="Singapore Standard Time">Kuala Lumpur, Singapore</option>
</select>
<p>
POS Serial Number:
<input class="text" value="" name="Serial">
<p>
Store Number:
<input type="Radio" checked="true" id="NoStoreNo" name="StoreCheckBox" Value="0" onClick="StoreNoChange" />
<label for="NoStoreNo">None</label>
<input type="Radio" id="DrakeStoreNo" name="StoreCheckBox" Value="1" onClick="StoreNoChange">
<label for="DrakeStoreNo">DRAKES</label>
<input type="Radio" id="HFMStoreNo" name="StoreCheckBox" Value="2" onClick="StoreNoChange">
<label for="HFMStoreNo">HFM</label>
<br>
<div id="StoreNoDiv" style="visibility: hidden">
<input type="button" name="BUT_S_Up" value="UP" onClick="S_Up">
<input class="text" name="StoreNo" value="0" onChange="StoreNoChange" disabled>
<input type="button" name="BUT_S_Down" value="DOWN" onClick="S_Down">
</div>
<p>
Lane Number:
<br>
<input type="button" name="BUT_M_Up" value="UP" onClick="M_Up">
<input type="text" name="MachineNo" value="00" onChange="StoreNoChange">
<input type="button" name="BUT_M_Down" value="DOWN" onClick="M_Down">
</div>
<br>
<span id="DataAreaMachineName">Lane00</span><br>
<br>
<input type="button" id="start" name="Start" value=" Start " style="font-size:20px; border:none; color:white; background-color:#B82601;" onClick="Start()">
</div>
<div id="Footer" style="background-color:062F4F; color:#dfe4e6; bottom:0px; height:5%; font-size:20px; position:absolute; width:100%;">
GaP Solutions Pty. Ltd.<br>
<a style="font-size:11px; color:#dfe4e6;">www.gapsolutions.com.au</a>
<a id="Checking" style="font-size:11px; text-align:right; color:#0099ff">check... </a>
<a style="font-size:11px;">V:<SPAN ID="AppVersion" style="font-size:11px;">0</SPAN></a>
<button type="button" id="TeamviewerDRAKE" name="TeamViewerDRAKE" style="Visibility:Hidden; position:absolute; bottom:0px; right:0px; height:100%; width:40%; font-size:20px; border:none; color:white; background-color:#0883d5;" onClick="location.href='http://get.teamviewer.com/gapsupportDrakes'">Click here to <br>Get TeamViewer</button>
<button type="button" id="TeamviewerHFM" name="TeamViewerHFM" style="Visibility:Hidden; position:absolute; bottom:0px; right:0px; height:100%; width:40%; font-size:20px; border:none; color:white; background-color:#0883d5;" onClick="location.href='http://get.teamviewer.com/gapsupportHFM'">Click here to <br>Get TeamViewer</button>
<button type="button" id="Teamviewer" name="TeamViewer" style="position:absolute; bottom:0px; right:0px; height:100%; width:40%; font-size:20px; border:none; color:white; background-color:#0883d5;" onClick="location.href='http://get.teamviewer.com/gapsupport'">Click here to <br>Get TeamViewer</button>
</div>
</body>
</html>