Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Executing a silent installshield installer with VBS

Reply
 
Old 06-15-2009   #1 (permalink)
sandert


 
 

Executing a silent installshield installer with VBS

Hello all,

i am new to VBS

I want to use VBS to execute a silent InstallshieldInstaller.

Here is the source

'Script Created by juni 2009
Dim WshShell, fso, temp, sysd, app

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
temp = WshShell.ExpandEnvironmentStrings("%TEMP%")
sysd = WshShell.ExpandEnvironmentStrings("%Systemdrive%")
app = "\\<servername>\d$\SetUp\Prequisities\Packaging\<setupdir>\"

On Error Resume Next


WshShell.Run (app & "setup.exe /s /sms /f1"setup.iss" ")

This does not work

---------------------------------------------

I need the correct vbs syntax for executing

setup.exe /s /f1"<somepath>setup.iss"

in a vb script file

Thanks in advance

sandert

My System SpecsSystem Spec
Old 06-15-2009   #2 (permalink)
sandert


 
 

RE: Executing a silent installshield installer with VBS

I have managed to find a solutions myself

Thanks to :
http://en.wiki.mcneel.com/default.as...StringLiterals


'Unattended install in VBscript
'Script Created by juni 2009
Dim WshShell, fso, temp, sysd, app

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
temp = WshShell.ExpandEnvironmentStrings("%TEMP%")
sysd = WshShell.ExpandEnvironmentStrings("%Systemdrive%")
app = "\\<servername>\<setupdir>\"
ins = "/s /f1""\\<servername>\<setupdir>\setup.iss"" "

On Error Resume Next

`Combine app 'setup.exe' with installation switch
Wshshell.Run (app & "setup.exe " & ins)

I hope this helps someone else

Sandert
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
silent hunter 3 Vista Games
My computer has gone silent! Vista music pictures video
Suddenly silent Sound & Audio
Silent Installation of an msi installer file. Vista performance & maintenance
Silent Hunter 3 Vista Games


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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