Shortcuts/Folder + Properties
Posted 13 January 2003 - 18:43
Ok, say I create a shortcut in the shortcuts/folder. What I'm trying to do is set the the 'Display Name' to something like the following:
[PRODUCT_NAME] [PRODUCT_VERSION] where PRODUCT_NAME, and PRODUCT_VERSION are defined properties in the properties table.
Instead of getting the values for product_name, and product_version, i end up with the strings '[PRODUCT_NAME] [PRODUCT_VERSION]' any idea what the heck I'm doing wrong?
My main reason for doing this is because I don't want to hardcode product specific information in my shortcuts area + if i can access the properties table, at least this part will be dynamic.
Thanks for your help.
Posted 14 January 2003 - 06:19
Best is, you write a CA getting ProductName property and rename the .lnk file with the value.
Galway Scripting Center
Digital GlobalSoft Ltd.
(Subsidiary of Hewlett-Packard Company)
Posted 14 January 2003 - 18:59
RenameFile (sourceFile, destinationFile);
Posted 31 March 2003 - 15:23
Posted 21 April 2003 - 19:53
|QUOTE (haffster @ 2003-03-31 14:23)|
| In my experience, renaming like this causes the shortcuts to be left when the product is uninstalled, can anyone confirm?|
Yes renaming shortcuts will cause them to be left over. You need to write a custom action that gets executed which either
1) deletes the shortcut that you changed
2) change back the name of the shortcut to what it was originally so the uninstaller can locate it and delete it.
perhaps there are other methods, but I just use method #1.