EDN Admin
Well-known member
Hi;
I am a SharePoint Admin, and a client of mine wants to use an OUtlook add-on to interface with Sharepoint.
They want to be able to install the add on which includes four pre-requisite files, and a serial number dialog box.
I want to use the executable file provided by the sw vendor to d the install but i want to enhance it to perform the install unattended.
So what I did is create a bactch file to call the executable AND a vbscript file to basically hit enter on the dialog boxes that pop up once the pre-reqs get rolling.
I was able to hit enter on the first dialog box by doing the following:
Dim oShell <br/>
Set oShell = WScript.CreateObject ("WScript.Shell")<br/>
wscript.Sleep 3000 <br/>
rem oshell.sendkeys ("+{Tab}") --- use this if you have to move you focus of the pointer <br/>
oshell.sendkeys "~" --- this is for enter button
However when the second dialog box pops up, I cannot get control of it to basically hit enter on the "yes" key.
How can I code this so that I can control each dialog box that pops up AND enter the serial number and complete the install unattended?
Im not a vbscript prorammer so this is all new to me.....
View the full article
I am a SharePoint Admin, and a client of mine wants to use an OUtlook add-on to interface with Sharepoint.
They want to be able to install the add on which includes four pre-requisite files, and a serial number dialog box.
I want to use the executable file provided by the sw vendor to d the install but i want to enhance it to perform the install unattended.
So what I did is create a bactch file to call the executable AND a vbscript file to basically hit enter on the dialog boxes that pop up once the pre-reqs get rolling.
I was able to hit enter on the first dialog box by doing the following:
Dim oShell <br/>
Set oShell = WScript.CreateObject ("WScript.Shell")<br/>
wscript.Sleep 3000 <br/>
rem oshell.sendkeys ("+{Tab}") --- use this if you have to move you focus of the pointer <br/>
oshell.sendkeys "~" --- this is for enter button
However when the second dialog box pops up, I cannot get control of it to basically hit enter on the "yes" key.
How can I code this so that I can control each dialog box that pops up AND enter the serial number and complete the install unattended?
Im not a vbscript prorammer so this is all new to me.....
View the full article