Skip to main content
Participant
March 19, 2012
Question

.PDF File Association for All User Profiles

  • March 19, 2012
  • 2 replies
  • 37346 views

Hello. I am currently working on a deployment of Adobe Acrobat X Professional.  The deployment works folllowing this process:

  • Remove Foxit Reader
  • Install Adobe Acrobat X Professional (Which removes Adobe Acrobat 😎
  • Run command >>> assoc .pdf = "C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" "%1"

Foxit removes itself fine, Acrobat 8 gets removed, and Acrobat X is installed, the only issue is PDF files are not associated with Acrobat X.  If you choose to open the pdf in a browser it opens in Acrobat fine, but if you have a PDF saved somewhere it pops up asking what program to open it with.

I am looking for a way to associate PDF files with Adobe Acrobat X Professional across all user profiles.  I thought the command assoc .pdf = "C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" "%1" was going to be my solution but it does not work, even though it runs fine.

Any ideas / advice is greatly appreciated, even if you point out that I am doing something complety incorrect.

Thanks,

Larry

This topic has been closed for replies.

2 replies

Participant
June 11, 2012

Hi, not sure if you had the right command there... ftype and assoc are used for associations. .pdf should have the value:

C:\Users>assoc .pdf

.pdf=AcroExch.Document

To associate with Acrobat use ftype:

ftype AcroExch.Document="C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" "%1"

Cheers,

Simon

Sandeep_V_
Participating Frequently
March 19, 2012

HKEY_CLASSES_ROOT\.pdf\OpenWithList

This should contain Acrobat.exe

HKEY_CLASSES_ROOT\Applications\Acrobat.exe\shell\Open\command  -> Default String = "C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" "%1"


Participant
March 19, 2012

That key does exist, and I even made sure that Acrobat.exe is the only key that exists. 

However it still pops up on other user profiles asking if you want to open it with Adobe Acrobat X ("Choose the program you want to use to open this file").  Attached is a screenshot.  Basically I would like a script that essentially checks the "Always use the selected program to open this kind of file" box but apply that for all users.

Sandeep_V_
Participating Frequently
March 19, 2012