UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Vbscript    
 
   
Briandr
post Jun 13 2011, 10:58 AM
Post #1

UtterAccess Veteran
Posts: 424



Hi,

I am piecing together a VB script. Can someone take a look and tell me if looks Ok?

Set WshShell = WScript.CreateObject("WScript.Shell")
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
WshShell.CurrentDirectory = "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\"
WshShell.Run "msiexec /i C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence Desktop Components.msi" /qn VAULTADDRESS=ascvip.myorg.org
WshShell.Run "msiexec /i C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence BridgeWorks Runtime.msi" /qn
WshShell.Run "msiexec /i C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence Authenticator.msi" Installlevel=200 /qn Reboot="reallysuppress"
WshShell.Run "msiexec /i C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\SentillionExtensions.msi" /qn
FSO.CopyFile "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\authenticator.ini", "C:\Program Files\Sentillion\Vergence Authenticator\authenticator.ini"
FSO.CopyFile "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\launchpad.ini", "C:\Program Files\Sentillion\Vergence Authenticator\launchpad.ini"
FSO.CopyFile "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Clinicians.ini","C:\Program Files\Sentillion\Vergence Authenticator\Clinicians.ini"
FSO.CopyFile "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Log.bmp","C:\Program Files\Sentillion\Vergence Authenticator\Log.bmp"

This post has been edited by Briandr: Jun 13 2011, 10:59 AM
Go to the top of the page
 
+
 
Start new topic
Replies (1 - 3)
Doug Steele
post Jun 13 2011, 11:25 AM
Post #2

UtterAccess VIP
Posts: 17,645
From: Don Mills, ON (Canada)



Your quotes are wrong. I believe that, because of the spaces in the file path, you need double quotes around the path. Note that to put double quotes inside a quote string, you need to double up on the quotes:

CODE
WshShell.Run "msiexec /i ""C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence Desktop Components.msi"" /qn VAULTADDRESS=ascvip.myorg.org"
  
WshShell.Run "msiexec /i ""C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence BridgeWorks Runtime.msi"" /qn"
  
WshShell.Run "msiexec /i ""C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\Vergence Authenticator.msi"" Installlevel=200 /qn Reboot=""reallysuppress"""
  
WshShell.Run "msiexec /i ""C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{529c13e6-cf8a-4cc9-b9cb-30074805dabf}\SentillionExtensions.msi"" /qn"
Go to the top of the page
 
+
Briandr
post Jun 13 2011, 11:43 AM
Post #3

UtterAccess Veteran
Posts: 424



Hi Doug,

I had a feeling the double quotes were wrong. I may need a pop up to add to the let the user know a reboot is required. Could you help me with something that will come up every 20 minutes until the user does restart?

Thanks again for your help.
Go to the top of the page
 
+
Doug Steele
post Jun 13 2011, 12:01 PM
Post #4

UtterAccess VIP
Posts: 17,645
From: Don Mills, ON (Canada)



I would think that if a reboot is required, running the msi using msiexec should take care of making the necessary registry updates to have the pop-up occur. I don't think there's a reliable way of doing it through VBScript.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 26th May 2013 - 02:25 AM