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
Thanks to :
http://en.wiki.mcneel.com/default.aspx/McNeel/RsStringLiterals
'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