Solved

VBScript to change Adobe Reader Registy

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now