/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (8)

Posted by: anonymous_9363 13 years ago
Red Belt
0
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 13 years ago
Red Belt
0
If you leave the Icon_ column field empty then the default icon for the pdf association will be used and if no association exists then no icon will be displayed for that shortcut.
Posted by: anonymous_9363 13 years ago
Red Belt
0
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]
Posted by: milindsm 13 years ago
Blue Belt
0
ORIGINAL: AngelD

If you leave the Icon_ column field empty then the default icon for the pdf association will be used and if no association exists then no icon will be displayed for that shortcut.


Didn't really help...!!! [:(]
Posted by: pjgeutjens 13 years ago
Red Belt
0
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
Posted by: anonymous_9363 13 years ago
Red Belt
0
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 13 years ago
Yellow Belt
0
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.
Posted by: anonymous_9363 13 years ago
Red Belt
0
I would need to repair/reinstall the applicationIf the package was built with that in mind, it would be configured to self-heal.
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