corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Silent Install using VBScript » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

Steve

posted on 2nd Dec 12 at 20:50

we sometimes roll out software using batch files as some msi's dont always work using group policy, and its easier than faffing about recreating an msi


VrsTurbo

posted on 2nd Dec 12 at 20:25

Why even run as a batch file? Do it via gpo software installer as its an msi.


kazazza

posted on 2nd Dec 12 at 12:42

quote:
Originally posted by Steve
Why vbscript? Just run it as a batch file


This is only 1 very small part of the program - vbs seemed the most appropriate for what I want...


kazazza

posted on 2nd Dec 12 at 12:38

quote:
Originally posted by Sam
Paste up the contents of line 1...


I did :)


kazazza

posted on 2nd Dec 12 at 12:37

Dont worry guys, got it:

Dim objShell
Set oShell = CreateObject("WScript.Shell")

oShell.Run "c:\CrystalReports2005x86.msi /quiet /passive /norestart",0, True

Set oShell = Nothing


Steve

posted on 2nd Dec 12 at 12:29

Why vbscript? Just run it as a batch file


Sam

posted on 2nd Dec 12 at 12:28

Paste up the contents of line 1...


kazazza

posted on 2nd Dec 12 at 12:11

Hi everyone, hopefully some clever person will have the answer :)

I'm trying to run this script:

msiexec /i "c:\EXAMPLE.msi" /quiet

But I'm getting this error:

Line: 1
Char: 9
Error: Syntax error
Code: 800A03EA
Source: Microsoft VBScript compilation error

Its only a syntax error but I've tried everything I can think of to fix it... Any help would be highly appreciated