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?
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)
Please log in to answer
Posted by:
usachrisk
20 years ago
Posted by:
MSIMaker
20 years ago
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.
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
20 years ago
Posted by:
MSIMaker
20 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.