Solved

batch file to install according to office version

Posted on 2006-11-02
5
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

710 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