Shortcut Icon
Hello,
I am creating multiple shortcuts using Shortcut table. One of the shortcuts is not an executable. Its a shortcut for product user manual (PDF). Currently, I am explicitly adding icon (I extracted it using Icon Extraction tool that freely available and then added that Icon to Icon table) of PDF file and thus it shows nice icon on the shortcut (Its just a work around). But ideally, if Acrobat reader is not installed on the target machine, it should not display that PDF icon. How can I achieve this???
Regards
I am creating multiple shortcuts using Shortcut table. One of the shortcuts is not an executable. Its a shortcut for product user manual (PDF). Currently, I am explicitly adding icon (I extracted it using Icon Extraction tool that freely available and then added that Icon to Icon table) of PDF file and thus it shows nice icon on the shortcut (Its just a work around). But ideally, if Acrobat reader is not installed on the target machine, it should not display that PDF icon. How can I achieve this???
Regards
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
The only way you could do that would be to have a Custom Action which creates the shortcut conditioned to execute only if AR is present. The condition could test for a property created by an AppSearch for the executable or, more reliably - since people could have chosen a non-standard installation target - a registry value.
Posted by:
AngelD
14 years ago
Posted by:
anonymous_9363
14 years ago
Would one want a shortcut which points to a non-existent application?
Of course, a corporate build will include one flavour or other of AR but we don't know if that the intended target.
[ASIDE]
Actually, this is a bit of a hobby horse for me, a bit like apps with menu items which, when selected, say something like "That feature is unavailable in the [crippled/lite/shareware/demo] version." Well, in that case, DON'T SHOW IT TO ME, THEN!
[/ASIDE]
Of course, a corporate build will include one flavour or other of AR but we don't know if that the intended target.
[ASIDE]
Actually, this is a bit of a hobby horse for me, a bit like apps with menu items which, when selected, say something like "That feature is unavailable in the [crippled/lite/shareware/demo] version." Well, in that case, DON'T SHOW IT TO ME, THEN!
[/ASIDE]
Posted by:
milindsm
14 years ago
Posted by:
pjgeutjens
14 years ago
Milind,
do you want to show/not show the shortcut depending on wether Adobe Reader is installed, or always show the shortcut but not with an icon if there's no Adobe Reader?
in the first case, here's what I'd do:
1) make a property READERINSTALLED
2) using system search, populate this property with some value if Adobe reader is installed, maybe do a registry search for the existence of HKCR\.pdf, or so
3) make a new component and associate the shortcut for the PDF with it.
4) condition the component using the READERINSTALLED property to only install when adobe reader is installed
That should make the shortcut only show up when you have Adobe reader available.
In the second case, AngelD's post is correct.
Rgds,
PJ
do you want to show/not show the shortcut depending on wether Adobe Reader is installed, or always show the shortcut but not with an icon if there's no Adobe Reader?
in the first case, here's what I'd do:
1) make a property READERINSTALLED
2) using system search, populate this property with some value if Adobe reader is installed, maybe do a registry search for the existence of HKCR\.pdf, or so
3) make a new component and associate the shortcut for the PDF with it.
4) condition the component using the READERINSTALLED property to only install when adobe reader is installed
That should make the shortcut only show up when you have Adobe reader available.
In the second case, AngelD's post is correct.
Rgds,
PJ
Posted by:
anonymous_9363
14 years ago
Neat! Now why didn't I think of that? I think it's because I'm suffering from Script Cabin Fever: I'm banging out VBSs and HTAs like they're going out of fashion at the moment, as the client I'm working for has basically zero tools for AD manipulation. Junk like copying/moving users between groups is done long-hand...
Posted by:
yuriv
14 years ago
My solution would be the same as AngelD's. Dont change it and leave it default, if AR is installed the icon will show, if not the icon wont show.
As for the solution to install it using a condition, this will work fine but what if I install AR afterwards? I would need to repair/reinstall the application to show me a shortcut to the PDF file. I don't think you want that.
As for the solution to install it using a condition, this will work fine but what if I install AR afterwards? I would need to repair/reinstall the application to show me a shortcut to the PDF file. I don't think you want that.
Posted by:
anonymous_9363
14 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.