/build/static/layout/Breadcrumb_cap_w.png

Change PDF Icon Programatically

Hi Everyone,

I've recently repackaged a customized version of Adobe Acrobat 5.0 Full Version (we have a lot of add-ins and settings that need changing) and the default icon becomes the grey square with the funny looking "A" inside and the red border (one of the icons stored in ACROBAT.EXE).

I'm looking to get this back to default, but having a heck of a time. I've tried capturing the changes when I manually push the icon back to default, but manually making the changes that get captured or applying the capture file doesn't change the icon to what I want if I run it again.

The main key I see changed is:
HKLM\Software\Classes\AcroExch.Document\DefaultIcon\(Default).

Every time I make a change to the File Type icon thruogh the GUI, this value changes. But if I change the value directly, it doesn't reverse-relate back to the GUI.

Any thoughts?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: cdupuis 19 years ago
Third Degree Green Belt
0
Did you try rebooting after changing the DefaultIcon value?
Posted by: usachrisk 19 years ago
Purple Belt
0
I've tested with rebooting and found these results:

If I simply run my package and then modify the registry and reboot, the icon doesn't change. However, if I open FILE TYPES and use the RESTORE option to .PDF and then modify the registry and reboot, I can make changes to the icon.

Hmm.
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
It sounds like the msi is putting the value back in if you change it. Is that what you mean?

In your msi go to the Setup Editor and click on the icons table.

Delete the icon name and data.

Go to shortcuts and add the shortcut and change icon to the one you want. Drill down in your install to find the right one. This will populate the icon table correctly.
Posted by: usachrisk 19 years ago
Purple Belt
0
MSIMaker,

It's not an MSI, so this isn't possible. I worked around the problem by setting up a script that runs on first use (RunOnce) that quickly opens the File Types box, finds PDF, clicks RESTORE and then closes the window.

Chris.
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
oops ok Chris...i saw you say repackage and assumed it was.

Well done tho.....glad its worknig for you :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ