Solved

VBScript to change Adobe Reader Registy

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Power PDF (http://www.nuance.com/for-business/document-imaging-and-scanning/power-pdf-converter/index.htm) is the newest product from the Document Imaging division of Nuance Communications (http://www.nuance.com/). It is available in two editions — …
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
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…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

746 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

13 Experts available now in Live!

Get 1:1 Help Now