Solved

VBScript to change Adobe Reader Registy

Posted on 2009-04-09
2
1,075 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Reader Viewing Issue 1 53
Need to Modify a Script I found 5 98
VBA & VBSCRIPT: re-adapt log file 13 26
Creating An Intelligent Dropdown, Part Deux! 9 27
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

776 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