This is the print version of this page. All content is copyright Indezine.com 2000- .



Register the Default Version of PowerPoint

Monday, November 30, 2009
posted by Geetesh on 2:45 PM IST



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!

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!

Labels: , ,

Comments

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!

Posted by Blogger elif on 1:20 AM
Permalink to this comment

 


Post a 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  |   December 2006  |   February 2007  |   May 2007  |   August 2007  |   November 2007  |   February 2008  |   October 2008  |   June 2009  |   November 2009  |   January 2010  |   August 2010  |   October 2010  |   November 2010  |   December 2010  |   February 2012  |   August 2012  |   October 2012  |   August 2014  |   January 2016  |   May 2016  |   June 2016  |  




Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.

Home | PowerPoint | Photoshop | PowerPoint Templates | PowerPoint Tutorials | Blog | Notes | Ezine | Advertise | Feedback | Site Map | About Us | Contact Us

Link to Us | Privacy | Testimonials

PowerPoint Backgrounds | Christian PowerPoint Backgrounds | Business PowerPoint Presentation Templates

Plagiarism will be detected by Copyscape

©2000-2016, Geetesh Bajaj. All rights reserved.

since November 02, 2000