Solved

batch file to install according to office version

Posted on 2006-11-02
5
290 Views
Last Modified: 2010-04-16
I want a batch file to do the following.

I have the install section of it working, I just need the if statement.

It should go as follows:

IF office = 2000 then run

start /w \\UNCPath\Templates.exe /s
start /w \\UNCPath\PowerPoint_Addin_Office_2000.exe /s
start /w \\UNCPath\Image_Library.exe /s

IF office = 2003 then run

start /w \\UNCPath\Templates.exe /s
start /w \\UNCPath\PowerPoint_Addin_Office_2003.exe /s
start /w \\UNCPath\Image_Library.exe /s

How can I achieve this?

Thanks
0
Comment
Question by:Priscilla_Hora
5 Comments
 
LVL 9

Accepted Solution

by:
crawfordits earned 125 total points
ID: 17863677
You can always check the reg key
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\xx.x
xx.x = 10.0 ~ Office XP
xx.x = 11.0 ~ Office 2003
0
 
LVL 7

Assisted Solution

by:yotamsher
yotamsher earned 125 total points
ID: 17866569
if you can use a vbscript, then here is a script returning office ver:
http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_frm/thread/933a9c0e69e7a480/e800e6e0cbe1970#e800e6e0cbe1970

I think it would be easier to execute some commands through vbscript, then reading registry through batch code

Yotam
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unable To Install MSI 6 26
Java array 10 57
Automate and generate Azure reports for the following items 3 41
Oracle programming for starter 14 28
This is an explanation of a simple data model to help parse a JSON feed
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question