Bonjour, à tous et à toutes

Voici mon problème :
Quand j'exécute le script en HTA+VBS pour déployer des MSI sur un ordinateur distant , la console CMD s'ouvre et ce ferme. A mon avis une erreur de droit Admin
Quand j'exécute CMD en tant qu'Administrateur le .MSI s'installe sur mon PC non distant, quand j'utilise un ordinateur distant j'ai une erreur ( msiexec 1619 return code ) .

Voici le HTA + VBS

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
<html>
<head>
<!--
*******************************************************************************
*  INFO                                                                                                                            *
*  Active Directory / Domain Name -> XXXXX.LAN                                                                 *
*                                               -> IP ADRESS : 10.10.XX.XX                                               *
*******************************************************************************
-->
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  <title> Remote MSI Deploy 1.0 (04/01/2018) </title>
  <HTA:application 
  applicationName="RemoteMSIDeploy" 
  version="1.0"
  maximizebutton="yes"
  showintaskbar="yes"
  singleinstance="yes"
  scroll="no"
  sysmenu="yes" 
  />
  <style type="text/css">
  /* <![CDATA[ */
  BODY {
    background-color: rgb(0,0,0);
    color: white;
    margin: 10px 10px 10px 10px;
    font: 14px Verdana;  
  }
  #status_bar {
  box-shadow:rgb(136, 136, 136) 0px 5px 5px;
  background-color:#F7F7F7;
  border:1px solid #A5A5A5;
  font-color: #A5A5A5;
  font-size: 70%;
  border-bottom:0px;
  bottom:0px;
  height:25px;
  margin:auto;
  padding:5px 5px 5px 5px;
  position:absolute;
  width:100%;
  z-index:500;
    
}
.texta {  
  font-size: 14px;  
  background-color: white;  
  border: 1px solid #666666;  
  }
 
  /* ]]> */
  </style>
 
 
<script language="vbscript">
 
 
On Error Resume Next
Const ForReading = 1
Const ForWriting = 2
Const sPSEXECDownload = "http://live.sysinternals.com/psexec.exe"
 
Dim sLogFolder, sPSEXEC, MSISwitches, PSEXECSwitches
Dim sDebugInfo, bDebug, sLastComputer
 
bDebug = true 
 
Set objfso = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
currentpath = objShell.CurrentDirectory & "\"
sPSEXEC = currentPath & "psexec.exe"
 
 
Sub Window_onLoad
    txtComputerName.focus()
    window.resizeTo 560,730
                 If not ReportFileStatus(sPSEXEC) then 
                                 sResult = msgbox("You must have a copy of PSExec.exe in the same folder as this HTA (" & currentpath & ")." & vbcrlf & vbcrlf & "Would you like to download PSEXEC.exe now from live.sysinternals.com?",52,"PSExec not found!")
                                 if sResult = 6 then HTTPDownload sPSEXECDownload, currentpath & "psexec.exe"
                 End If
 
End Sub
 
on error resume next
 
MSISwitches = objShell.RegRead("HKCU\Software\RDScripts\RemoteMSI\MSISwitches")
sPSEXECSwitches = objShell.RegRead("HKCU\Software\RDScripts\RemoteMSI\PSEXECSwitches")
 
If MSISwitches = "" then 
  MSISwitches = "/passive "
End If
 
If PSEXECSwitches = "" then 
  sPSEXECSWITCHES = "-s -i"
End If
 
on error goto 0
 
sPSEXECUSER = ""
 
'Call RunProcess(sPSEXEC & sPSEXECUSER & " \\" & txtComputerName.value & sPSEXECSWITCHES & " " & chr(34) & MSIFile & chr(34) & " /qb"
</script>
</head>
 
<script language="VBSCRIPT">
Dim successlog, failurelog, unreachablelog, sLogFolder
 
Function removefromlist(svalue)
  For each objOption in lstMSI.Options
    If objOption.selected then objOption.removenode
  Next
End Function 'removefromlist
 
Function addtolist(sValue)
  If sValue <> "" then
    if not ReportFileStatus(sValue) then msgbox "Cannot verify this path (" & sValue & ")",16,"Could not verify path"
    For Each objOption in lstMSI.Options
      if sValue = objOption.value then exit function
    Next
   
    Set objOption = Document.createElement("OPTION")
    objOption.Text = sValue
    objOption.Value =  sValue
    
    lstMSI.Add(objOption)
    set objOption = nothing
  End If
End Function 'addtolist
 
Function About()
  Msgbox "This utility was written by Rob Dunn." & vbcrlf & vbcrlf & "See the Spiceworks Community 'Script Center' for the latest version of this HTA, in addition to access to a top-notch technical community at http://community.spiceworks.com",32,"About"
End Function 'About
 
 
 
' ---------------------------------------------------------------------
'* @info Generate a folder tree from the path
'*
'* @param (String) Path
'* @return (Boolean) Folder Exists: Recursion continues (Y/N)
' ---------------------------------------------------------------------
Function GeneratePath(pFolderPath)
                 GeneratePath = False
                 'msgbox pFolderPath
                 If Not objFSO.FolderExists(pFolderPath) Then
                                 If GeneratePath(objFSO.GetParentFolderName(pFolderPath)) Then
                                                 GeneratePath = True
                                                 Call objFSO.CreateFolder(pFolderPath)
                                 End If
                 Else
                                 GeneratePath = True
                 End If
End Function
 
'------- END CODE
 
 
 
 
'Function PrepareFolder(sFldr)
'  If ReportFolderStatus(sFldr) then 
'  
'  Else
'      Set f = objfso.CreateFolder(sFldr)
'      CreateFolderDemo = f.Path
'  End If
'  
'End Function 'PrepareFolder
 
Function BrowseForFile()
  hiddenInput.click
  strFilePath = hiddenInput.value
  If right(lcase(strFilePath),3) <> "msi" and right(lcase(strFilePath),3) <> "msp" then 
    msgbox "Please choose an MSI/MSP file.",64,"No MSI/MSP file chosen"
  Else
    txtMSIPath.value = strFilePath
    divProductName.innerhtml = GetMSIProductCode(txtMSIPath.value)
    Call addtolist(txtMSIPath.value)
  End If
End function
 
Sub ValidateFields(sID)
  If sID = "txtComputerName" then 
    If trim(txtComputerName.value) = "" then
      txtComputerListing.disabled = false
      document.getElementByID("txtComputerListing").style.backgroundColor = "white"
    Else
      txtComputerListing.disabled = true
      txtComputerListing.value = ""
      document.getElementByID("txtComputerListing").style.backgroundColor = "gainsboro"
    End If
  ElseIf sID = "txtComputerListing" then 
    If trim(txtComputerListing.value) = "" then
      txtComputerName.disabled = false
      document.getElementByID("txtComputerName").style.backgroundColor = "white"
    Else
      txtComputerName.disabled = true
      txtComputerName.value = ""
      document.getElementByID("txtComputerName").style.backgroundColor = "gainsboro"
    End If
  ElseIf sID = "btnReset" then
      document.getElementByID("txtComputerName").style.backgroundColor = "white"
      document.getElementByID("txtComputerListing").style.backgroundColor = "white"
      txtComputerName.value = ""
      txtComputerListing.value = ""
      txtFailure.value = ""
      txtSuccess.value = ""
      txtComputerName.disabled = false
      txtComputerListing.disabled = false
      
      For Each objOption in lstMSI.Options
        objOption.RemoveNode
      Next
 
        
  End if
  
End Sub
 
 
'==========================================================================
' The following function will test if a machine is reachable via a ping
' using WMI and the Win32_PingStatus Class
'==========================================================================
 
Function Reachable(strComputer)
'     On Error Resume Next
 
  Dim wmiQuery, objWMIService, objPing, objStatus
  
  wmiQuery = "Select * From Win32_PingStatus Where Address = '" & strComputer & "'"
  
  Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
  Set objPing = objWMIService.ExecQuery(wmiQuery)
  
  For Each objStatus in objPing
      If IsNull(objStatus.StatusCode) Or objStatus.Statuscode<>0 Then
          Reachable = False 'if computer is unreacable, return false
          'msgbox "FALSE"
      Else
          Reachable = True 'if computer is reachable, return true
          'msgbox "TRUE"
      End If
                                                 
  Next
 End Function
 
Function ReportFileStatus(filespec)
   If (objfso.FileExists(filespec)) Then
      ReportFileStatus = true
   Else
      ReportFileStatus = false
   End If
 
End Function
 
 
 
Function ReportFolderStatus(fldr)
   Dim msg
   If (objfso.FolderExists(fldr)) Then
      msg = true
   Else
      msg = false
   End If
   ReportFolderStatus = msg
End Function
 
Sub SetOptions(sWhichOne)   
  Select Case sWhichOne
    Case "psexec" 
      sPSEXECSwitches = InputBox("Set PSEXEC switches","PSEXEC Command-line switch setup","-s -i")
    Case "msi"
      MSISwitches = InputBox("Set MSI switches","MSI Command-line switch setup","/passive")
  End Select
End Sub ' SetOptions 
 
 
Sub ProcessComputer
  If txtComputerListing.value = "" and txtComputerName.value = "" then
    msgbox "You must specify a computer or list to install an MSI.",64,"No computers specified"
    Exit Sub
  End If
  If (right(lcase(txtMSIPath.value),3) <> "msi" and right(lcase(txtMSIPath.value),3) <> "msp") or trim(txtMSIPath.value) = "" then 
    msgbox "You must specify a MSI file to install.",64,"No MSI file specified"
    Exit Sub
  End If
  on error goto 0
  objShell.RegWrite "HKCU\Software\RDScripts\RemoteMSI\LastComputer",txtComputerName.value,"REG_SZ"
  
  If not ReportFileStatus(sPSEXEC) then 
    sResult = msgbox("You must have a copy of PSExec.exe in the same folder as this HTA (" & currentpath & ").  Download it from " & sPSEXECDownload,36,"PSExec not found!")
                 
                 if sResult = 6 then HTTPDownload sPSEXECDownload, currentpath & "psexec.exe"
                 
    Exit Sub
  End If
 
    txtFailure.value = ""
    txtSuccess.value = ""    
    
    sFileName = replace(lcase(right(txtMSIPath.value,len(txtMSIPath.value) - InstrRev(txtMSIPath.value, "\", -1, 1))),".msi","")
    sFileName = replace(lcase(sFileName),".msp","")
    
    sLogFolder = currentpath & "\logs\" & sFileName
    
    'If GeneratePath(".\logs\" & sLogFolder) then
    sSuffix = "_" & Year(Now) & Month(now) & Day(Now) & "-" & Hour(Now) & Minute(Now) & Second(Now)   
    'sLogFolder = sLogFolder & "_" & Year(Now) & Month(now) & Day(Now) & "-" & Hour(Now) & Minute(Now) & Second(Now)
    'End If
  
    GeneratePath(sLogFolder)
  
    Set successlog = objFSO.OpenTextFile (sLogFolder & "\success" & sSuffix & ".log", ForWriting, True)
    Set failurelog = objFSO.OpenTextFile (sLogFolder & "\failure" & sSuffix & ".log", ForWriting, True)
    Set unreachablelog = objFSO.OpenTextFile (sLogFolder & "\unreachable" & sSuffix & ".log", ForWriting, True)
  
 
  If trim(txtComputerName.value) = "" then
    'Process the listing of computers
    aComputers = split(txtComputerListing.value,vbcrlf)
    
    For i = 0 to ubound(aComputers)
      'msgbox aComputers(i)
        For Each objOption in lstMSI.Options
          If trim(aComputers(i)) <> "" then Call InstallMSI(aComputers(i),objOption.value)
        Next
 
    Next
   
  Else
    'Process the single computer in the input field
        For Each objOption in lstMSI.Options
          Call InstallMSI(txtComputerName.value,objOption.value)
        Next
  End If
  
  successlog.close
  failurelog.close
  unreachablelog.close
  
  Set failurelogread = objFSO.OpenTextFile(sLogFolder & "\failure" & sSuffix & ".log", ForReading)
  Set successlogread = objFSO.OpenTextFile(sLogFolder & "\success" & sSuffix & ".log", ForReading)
 
  
  If objFSO.GetFile(sLogFolder & "\failure" & sSuffix & ".log").Size > 0 Then
    txtFailure.value = failurelogread.ReadAll
  End If
  If objFSO.GetFile(sLogFolder & "\success" & sSuffix & ".log").Size > 0 Then
    txtSuccess.value = successlogread.ReadAll
  End If
 
 
  successlogread.close
  failurelogread.close
 
  objShell.RegWrite "HKCU\Software\RDScripts\RemoteMSI\PSEXECSwitches", sPSEXECSwitches, "REG_SZ"
  objShell.RegWrite "HKCU\Software\RDScripts\RemoteMSI\MSISwitches", MSISwitches, "REG_SZ"    
 
  End Sub 'ProcessComputer
 
 
Function InstallMSI(strComputer,MSIFile) 
 
  If Reachable(strComputer) Then
                   
    on error goto 0
    sCmd = sPSEXEC & sPSEXECUSER & " \\" & strComputer & " " & sPSEXECSWITCHES & " msiexec.exe " & MSISwitches & " /i " & chr(34) & MSIFile & chr(34) & " /qb"
    
    divStatus.innerhtml = "Preview: " & sCMD
    'msgbox sCMD
                                 on error goto 0
    Call RunProcess(sCmd,false,strComputer)
  Else
    unreachablelog.writeline(strComputer)
    failurelog.writeline(strComputer)
    exit Function  
  End If
 
End Function
 
'------------------------------------------------------------------------------'
' Subroutine RunProcess - Runs a specified executable or script.
'
' Correct input is RunProcess("c:\process.exe",false)
'
' If you want the process to wait until completion before going on, set the
' second argument to 'true'
'##############################################################################'
Sub RunProcess(sProcessName,blnWait,strComputer)
                 on error goto 0
  
 
                 Dim Return 
                 Return = objShell.Run(sProcessName, 1, true)
                 'Set Return = objShell.Exec(sProcessName)
 
 
                 
  'Set oExec = objShell.Exec(sProcessName)
 
                 If err.number <> 0 then
                                 If err.number = -2147024894 then
                                                 'Call WriteLog("Could not locate " & sProcessName)
                                 End If
                                 if bDebug = true then sDebugInfo = " " & err.description & " (" & err.number & ")"
    failurelog.writeline(strComputer & sDebugInfo)
                 Else
                                 successlog.writeline(strComputer)
                 End if
                 
                 err.clear
End Sub 'RunProcess
 
'This code was plundered from http://leereid.wordpress.com
Function GetMSIProductCode(msi) ' Return the Product Code from a given msi
 On Error Resume Next
 GetMSIProductCode=""
 If msi = "" Then Exit Function End If
 
 Dim FS, TS, WI, DB, View, Rec
 Set WI = CreateObject("WindowsInstaller.Installer")
 Set DB = WI.OpenDatabase(msi,2)
 If Err.number Then Exit Function End If
 
 Set View = DB.OpenView("Select `Value` From Property WHERE `Property` ='ProductName'")
 View.Execute
 Set Rec = View.Fetch
 If Not Rec Is Nothing Then
  GetMSIProductCode=Rec.StringData(1)
 End If
End Function
 
 
'Sub HTTPDownload( strFileURL, strHDLocation )
function fDownloadManually(sFileURL)
                 dim ie
                 set ie = createobject("internetexplorer.application")
                 ie.visible = false
                 ie.navigate(sFileURL)
                                 
                 do while ie.busy = true
                 
                 loop
                 'ie.document.execwb "saveas",2,sLocation
                 'SendKeys "%S"
                 ie.quit
End function
 
Function HTTPDownload(strUrl, strFile)
 
Const adTypeBinary = 1
Const adSaveCreateOverWrite = 2
Const ForWriting = 2
Dim web, varByteArray, strData, strBuffer, lngCounter, ado
    on error goto 0
                 
                 'On Error Resume Next
    'Download the file with any available object
    Err.Clear
    Set web = Nothing
    Set web = CreateObject("WinHttp.WinHttpRequest.5.1")
    If web Is Nothing Then Set web = CreateObject("WinHttp.WinHttpRequest")
    If web Is Nothing Then Set web = CreateObject("MSXML2.ServerXMLHTTP")
    If web Is Nothing Then Set web = CreateObject("Microsoft.XMLHTTP")
 
                 web.Open "GET", strURL, False
    web.Send
                 
    If Err.Number <> 0 Then
        SaveWebBinary = False
        Set web = Nothing
        Exit Function
    End If
 
    If web.Status <> "200" Then
        SaveWebBinary = False
        Set web = Nothing
        Exit Function
    End If
 
    varByteArray = web.ResponseBody
 
    Set web = Nothing
 
    'Now save the file with any available method
    On Error Resume Next
    Set ado = Nothing
    Set ado = CreateObject("ADODB.Stream")
    If ado Is Nothing Then
        Set fs = CreateObject("Scripting.FileSystemObject")
        Set ts = fs.OpenTextFile(strFile, ForWriting, True)
        strData = ""
        strBuffer = ""
        For lngCounter = 0 to UBound(varByteArray)
            ts.Write Chr(255 And Ascb(Midb(varByteArray,lngCounter + 1, 1)))
        Next
        ts.Close
    Else
                                 ado.Type = adTypeBinary
        ado.Open
        ado.Write varByteArray
        
                                 ado.SaveToFile strFile, adSaveCreateOverWrite
        ado.Close
                                 if err.number = 3716 then 
                                                 sResult = msgbox("Error while trying to download file from an untrusted domain.  Try copying the entire MSIDeploy folder to a local drive and re-downloading the file again automatically." _
                                                  & vbcrlf & vbcrlf & "Alternatively, would you like to manually download this file?  You will need to save psexec.exe to '" & objshell.CurrentDirectory & "'",52,"Download file manually?")
                                                 if sResult = 6 then fDownloadManually(sPSEXECDownload)
                                 End If
                                 
                                 'msgbox err.number & err.description
    End If
    HTTPDownload = True
 
End Function
 
'End Sub
 
</script>
 
 
 
<body>
    <div style="position:absolute; visibility:'hidden';">
      <input type="file" ID="hiddenInput" class="texta">
    </div>
<table>
  <tr>
    <td>
      <span style="padding-left:8px;font-size:70%">Computer name:</span>
    </td>
    <td>
      <INPUT TYPE=TEXT TABINDEX="2" class="texta" size='30' NAME="txtComputerName" id="txtComputerName" onChange="validatefields('txtComputerName')">
    </td>
    <td>
    </td>
  </tr>
  <tr>
    <td>
      <span style="padding-left:8px;font-size:70%">Installation file (MSI):</span>
    </td>
    <td>
      <INPUT TYPE=TEXT TABINDEX="3" size='30' class="texta" NAME="txtMSIPath">
      &nbsp<BUTTON NAME=submit VALUE=Browse ACCESSKEY=B onclick='BrowseForFile()'>...</BUTTON>
      &nbsp<BUTTON NAME=btnAdd VALUE="add" onclick='addtolist(txtMSIPath.value)'>&nbsp;+&nbsp; </BUTTON>
      &nbsp<BUTTON NAME=btnremove VALUE="remove" onclick='removefromlist(txtMSIPath.value)'>&nbsp;-&nbsp; </BUTTON>
    </td>
    <td>
    </td>
  </tr>
  <tr>
    <td colspan="3" style="padding-left:8px;padding-top:5px;font-size:70%">
      Product name: <span id="divProductName"></span>          
    </td>
    <td>
    </td>
    <td>
    </td>
  </tr>
</table>
<table>
  <tr>
    <td style="padding:8px;" colspan="3">
        <select id="lstMSI" style="border:1px solid #666666;width:500px;color:blue" multiple="multiple" size="6">
        </select>
    </td>
  </tr>  
  <tr>
    <td>
      <span style="padding-left:8px;font-size:70%">Computer list:</span>
    </td>
    <td>
      <span style="padding-left:8px;font-size:70%">Success:</span>
    </td>
    <td>
      <span style="padding-left:8px;font-size:70%">Failure:</span>
    </td>
  </tr>
 
  <tr>
    <td style="padding:8px"><textarea style="border:1px solid #666666;" title="Type a listing of computers to run this command against, one per line."  onchange="validatefields('txtComputerListing')" ID="txtComputerListing" rows="18" cols="16"></textarea>
    </td>
    <td style="padding:8px;"><textarea  style="border:1px solid #666666;" title="Success is based on whether or not the PSExec process can start and there is a successful WMI ping connection to the remote PC" style="color:blue;background-color:whitesmoke" disabled=true ID="txtSuccess" rows="18" cols="16"></textarea>
    </td>
    <td style="padding:8px;"><textarea  style="border:1px solid #666666;" title="Failure is determined if PSExec cannot execute or if there is not a successful WMI ping to the remote computer." style="color:red;background-color:whitesmoke" disabled=true ID="txtFailure" rows="18" cols="16"></textarea>
    </td>
  </tr>
</table>
<br>
&nbsp;&nbsp;<BUTTON NAME="execute" VALUE="Install" onclick='ProcessComputer()'>Install MSI</BUTTON>&nbsp;&nbsp;<BUTTON NAME="execute" VALUE="Install" id="btnReset" onclick="Validatefields('btnReset')">Reset fields</BUTTON>
<br>
<div style="padding-left:8px;padding-top:10px;font-family:courier;font-size:70%" id="divStatus"></div>
<div id="status_bar" style="padding-top:5px;">
 
  <span title="Configure PSEXEC switches" style="text-decoration:underline;color:blue;cursor:pointer" onclick="SetOptions('psexec')">
  PSExec
  </span>&nbsp;
  <span title="Configure MSI switches" style="text-decoration:underline;color:blue;cursor:pointer" onclick="SetOptions('msi')">
  MSI
  </span>
  <span title="About the HTA MSI Deploy tool" style="padding-left:420px;text-decoration:underline;color:blue;cursor:pointer" onclick="About()">?</span>
</div>
</body>
 
<script language="VBScript">
on error resume next
sLastComputer = objShell.RegRead("HKCU\Software\RDScripts\RemoteMSI\LastComputer")
If sLastComputer = "" then 
                 txtComputerName.value = sLastComputer
End If
</script>
 
</htmL>
Je vous remercie d'avance .

Cordialement .