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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 09/01/2010 by: VBScab
Red Belt

Please log in to comment
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.
Answered 09/01/2010 by: AngelD
Red Belt

Please log in to comment
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]
Answered 09/01/2010 by: VBScab
Red Belt

Please log in to comment
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...!!! [:(]
Answered 09/01/2010 by: milindsm
Blue Belt

Please log in to comment
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
Answered 09/02/2010 by: pjgeutjens
Red Belt

Please log in to comment
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...
Answered 09/02/2010 by: VBScab
Red Belt

Please log in to comment
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.
Answered 09/02/2010 by: yuriv
Yellow Belt

Please log in to comment
0
I would need to repair/reinstall the applicationIf the package was built with that in mind, it would be configured to self-heal.
Answered 09/02/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity