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?
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)
Please log in to answer
Posted by:
spartacus
14 years ago
Posted by:
pjgeutjens
14 years ago
Posted by:
shweta_kar
14 years ago
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.
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
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.
so that the conversation will remain readable.