?
Solved

VBScript to change Adobe Reader Registy

Posted on 2009-04-09
2
Medium Priority
?
1,086 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
Hubasan earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

752 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