/build/static/layout/Breadcrumb_cap_w.png

Property for shortcut name not working

hi,
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

Answers (5)

Posted by: spartacus 14 years ago
Black Belt
0
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.

Regards,

Spartacus
Posted by: frodo 14 years ago
Orange Senior Belt
0
hi Spartacus,
thx for the response.
no joy with that though.
Posted by: pjgeutjens 14 years ago
Red Belt
0
have you tried passing your property forward to deferred context?
Posted by: shweta_kar 14 years ago
Blue Belt
0
Hi,

I tried using the below Vbscript to make it work

Dim objws, strdesk, display
Set objws =CreateObject("Wscript.shell")
display=Session.property("SNAME")
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"
objshortcut.Save


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.
Posted by: PackageExpert 14 years ago
Blue Belt
0
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...
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