Display property in a shortcut
Posted 18 July 2001 - 14:22
Does anybody know how to display a property in a shortcut?
In fact, i try to display the "ProductVersion" in my Program's shortcut, but when i put [ProductVersion] in the field "display name", it doesn't work.
Is it possible to do that?
Posted 24 September 2001 - 15:40
Basically, that's what I think you need to do. Write a CustomAction with
Target: [ProductName] v[Product Version]
Where WhateverNominalName is the name of the folder as seen in the Directory Table.
Hope that helps.
(Edited by pdriley at 4:04 pm on Sep. 24, 2001)
Posted 25 September 2001 - 15:14
Thomas can create a new record in the Shortcut Table at runtime with a custom action. Then he can create any valid shortcut name he chooses (and retain full windows installer functionality).
Posted 25 September 2001 - 16:14
Target: [ProgramMenuFolder][ProductName] v[Product Version]
Target: [ProgramMenuFolder][Manufacturer]\[ProductName] v[ProductVersion]
It's not more difficult. This is working fine for me (though I did make the same mistake that I made here... doh!).
That's another interesting idea though... hadn't thought of doing it that way :)
Posted 25 September 2001 - 20:22
However Thomas will need to define the directory to use my suggestion, but even then it is probably better to enter a line or two in the directory table than use CA 35.