i have a property SNAME with a value of my app.
when i create a non advertised shortcut to an exe i set the display name attribute to [SNAME]
when i install the app it is set to [SNAME] including the brackets.
Am i missing something? why is it not resolving to the property value?
0 Comments   [ + ] Show 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.


The shortcut display name is of the Windows Installer "Filename" data type and not the "Formatted" type which might account for the problem you face.

If you are using InstallShield, you could create an entry in the String Table and reference that, as an alternative.


Answered 07/14/2009 by: spartacus
Fifth Degree Brown Belt

Please log in to comment
hi Spartacus,
thx for the response.
no joy with that though.
Answered 07/14/2009 by: frodo
Orange Senior Belt

Please log in to comment
have you tried passing your property forward to deferred context?
Answered 07/15/2009 by: pjgeutjens
Red Belt

Please log in to comment

I tried using the below Vbscript to make it work

Dim objws, strdesk, display
Set objws =CreateObject("Wscript.shell")
strdesk = objws.ExpandEnvironmentStrings("%AllUsersProfile%")
Set objshortcut = objws.CreateShortcut(strdesk & "\Start Menu\Programs\" & display & ".lnk")
objshortcut.TargetPath = ("C:\Windows\notepad.exe")
objshortcut.WorkingDirectory = ("C:\Windows\")
objShortcut.IconLocation ="C:\Windows\notepad.exe"

all you need to do is create a Property by SNAME and edit the above script to the required targetpath,workign directory and icon u want.

Place the script in Immediate execution after CostFinalize.
Answered 07/15/2009 by: shweta_kar
Blue Belt

Please log in to comment
hmm...i think for Display Name, might be just good to put the real value there instead... USually the target is what we worry off...for sometimes it launches exe in a network folder etc.... nevertheless.. i dont see special requirement for u needing to put the property value in the Display name field...
Answered 07/15/2009 by: PackageExpert
Blue Belt

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