Solved

VBScript to change Adobe Reader Registy

Posted on 2009-04-09
2
1,078 Views
Last Modified: 2012-06-27
I am trying to create vbscript that will check to see what version of Adobe Reader is installed.  If version 9.0 is installed the script needs to change a value in the register.

We deployed Adobe Reader 9.1 via GPO and now anyone with 9.1 cannot open pdf's in a web browser.  I found if I change this registry path from version 8 to 9 you are now able to open pdf's in a web browser.

This is an export of the registry value
[HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe]@="\"C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe\""

If anyone has any other ideas other then script I am all ears. Here is was I have so far for the script.
Dim filesys
Const REG_SZ = "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
 
If  filesys.FolderExists("C:\Program Files\Adobe\Reader 9.0") Then
	Set Shell = CreateObject( "WScript.Shell" )
	WshShell.RegWrite "HKCR\Software\Adobe\Acrobat\Exe\", "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe", "REG_SZ"
	
Else
	' do nothing	
end If

Open in new window

0
Comment
Question by:bbhitgroup
2 Comments
 
LVL 7

Accepted Solution

by:
Hubasan earned 500 total points
ID: 24108420
Hello bbhitgroup,

I had the same thing in my organization and the fix is basically to tell internet explorer where your new AcroRd32.exe is located, as you already figured out.

I was lucky to discover this issue when we were still in testing of the package, before it was deployed to all the users. I modified the package via MST to include this new registry key in the Adobe Reader MSI file and deployed it like that. You can do the same thing with your package and then use it for all future updates, or just update the existing software.

If you don't want to deploy Adobe Reader again with this modification, then one other option would be to have a script go through all the PC's in your domain and change this registry key, if it finds the new Adobe Acrobat Reader installed. This is a very easy script to write and if you want I can do it for you.
That is if you are interested in this kind of solution.
0
 

Expert Comment

by:DeoGracia
ID: 24325636
You save my life!
I had the same issue and I was looking  for this reg path.
And It really fix it!

I also use deployment via GPO and on a few computers I had this "bug".

Have a nice guys.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

This article is in response to a question here (http://www.experts-exchange.com/Other/URLs/Q_28283850.html) at Experts Exchange. The Original Poster has a scanned signature and wants to make the background transparent so that the signature may be pl…
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…

832 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