PowerPoint Notes
Info-things on PowerPoint usage including tips, techniques and tutorials.
If you have multiple versions of PowerPoint installed, you might find that when you double-click on a PPT or PPTX file, it opens in a version of PowerPoint that's different from the one you want it to open! Labels: multiple_versions, powerpoint, programming
Now you can reinstall all your versions of PowerPoint (and Microsoft Office) again in the sequence you want -- and that might take a few hours, or you might do a few registry tweaks -- and that's not for the faint of heart, or even if you are scared of the registry!
So it was a great thing that one of our readers decided to share this DOS batch file with us that makes the whole process painless. Having said that, do this at your own risk -- and if you are comfortable!
Damian McDonald is the founder of Visual Newmedia which has over 15 years’ experience in developing communication solutions for a number of leading global brands.
Here is the code you need to paste in your batch file -- just replace this line:
set PathStart=C:\Program Files\Microsoft Office\OFFICE
to reflect the name of the partition where your copy of Microsoft Office is installed -- for example, if you installed to the D drive, the above line would change to:
set PathStart=D:\Program Files\Microsoft Office\OFFICE
OK -- here is the batch file:
REM **********************************************
REM Version 1.1 Date: 29/11/09
REM By Damian McDonald
REM www.visualpresenter.com.au
REM Registers the required Version of PowerPoint if it exists.
set PathStart=C:\Program Files\Microsoft Office\OFFICE
set PathEnd=\powerpnt.exe
set DirNum=11
set Version=2003
@echo Off
:Start
CLS
ECHO. Select the Version of PowerPoint to register.
ECHO.
ECHO 1. PowerPoint2003
ECHO 2. PowerPoint2007
ECHO 3. PowerPoint2010
ECHO.
set choice=
set /p choice=Enter your selection or Q to Quit.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto 1
if '%choice%'=='2' goto 2
if '%choice%'=='3' goto 3
if '%choice%'=='q' goto end
ECHO "%choice%" is not valid please try again
pause
Goto Start
:1
CLS
ECHO.
set DirNum=11
set Version=2003
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End
:2
CLS
ECHO.
set DirNum=12
set Version=2007
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End
:3
CLS
ECHO.
set DirNum=14
set Version=2010
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" ECHO PowerPoint %Version% does not appear to be loaded.
IF NOT EXIST "%PathStart%%DirNum%%PathEnd%" pause
IF EXIST "%PathStart%%DirNum%%PathEnd%" ECHO Registering PowerPoint %Version%.
IF EXIST "%PathStart%%DirNum%%PathEnd%" "%PathStart%%DirNum%%PathEnd%" /regserver
Goto End
:End
@echo on
REM **********************************************
Thanks Damian!
If you have multiple versions of PowerPoint installed, you might find that when you double-click on a PPT or PPTX file, it opens in a version of PowerPoint that's different from the one you want it to open!
Edit Comment
Archives:
July 2004 | August 2004 | September 2004 | May 2005 | June 2005 | July 2005 | November 2005 | February 2006 | April 2006 | June 2006 | September 2006 | October 2006 | February 2007 | May 2007 | August 2007 | November 2007 | February 2008 | October 2008 | June 2009 | November 2009 | January 2010 | April 2010 |



