Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Executing a silent installshield installer with VBS

175 views
Skip to first unread message

sandert

unread,
Jun 15, 2009, 5:11:01 AM6/15/09
to
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

sandert

unread,
Jun 15, 2009, 10:00:01 AM6/15/09
to
I have managed to find a solutions myself

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

0 new messages