corsasport.co.uk
 

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


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Silent Install using VBScript
kazazza
Member

Registered: 5th Oct 09
Location: Herne Bay, Kent
User status: Offline
2nd Dec 12 at 12:11   View User's Profile U2U Member Reply With Quote

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
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
2nd Dec 12 at 12:28   View User's Profile U2U Member Reply With Quote

Paste up the contents of line 1...
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
2nd Dec 12 at 12:29   View Garage View User's Profile U2U Member Reply With Quote

Why vbscript? Just run it as a batch file
kazazza
Member

Registered: 5th Oct 09
Location: Herne Bay, Kent
User status: Offline
2nd Dec 12 at 12:37   View User's Profile U2U Member Reply With Quote

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
kazazza
Member

Registered: 5th Oct 09
Location: Herne Bay, Kent
User status: Offline
2nd Dec 12 at 12:38   View User's Profile U2U Member Reply With Quote

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


I did
kazazza
Member

Registered: 5th Oct 09
Location: Herne Bay, Kent
User status: Offline
2nd Dec 12 at 12:42   View User's Profile U2U Member Reply With Quote

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...
VrsTurbo
Premium Member

Registered: 8th Jun 10
User status: Offline
2nd Dec 12 at 20:25   View Garage View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
2nd Dec 12 at 20:50   View Garage View User's Profile U2U Member Reply With Quote

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

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Need a bit of help (HTML) PaulW General Chat 16 1439
5th Jan 04 at 22:48
by VisibleMan
 
pc help Dan General Chat 13 672
18th Feb 05 at 15:35
by Macca_G
 
New to VB scripting Dan Lewis Geek Day 1 477
7th Jan 08 at 15:27
by Dan Lewis
 
unable to install a flash player ali_corsa Geek Day 10 791
20th Apr 09 at 21:14
by Andrew
 
Pros and cons of PS3 and X-BOX 360 Bonney Geek Day 45 1572
26th Oct 09 at 11:11
by jezza
 

Corsa Sport » Message Board » Off Day » Geek Day » Silent Install using VBScript 28 database queries in 0.0151360 seconds