Creating Shortcut
All,
In my package, I want to create a shortcut on the desktop that points to an .exe file on the network. How can I accomplish this. I tried using the shortcut option Wise Package Studio, Installer Editor but It only lets me create local ones.
Any suggestions?
Thanks in advance.
In my package, I want to create a shortcut on the desktop that points to an .exe file on the network. How can I accomplish this. I tried using the shortcut option Wise Package Studio, Installer Editor but It only lets me create local ones.
Any suggestions?
Thanks in advance.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
aa006
18 years ago
Posted by:
Lillude
18 years ago
I have one suggestion for this problem.
Create a Link file ".lnk" pointing to that exe over the network and then add the link file to wise application as file to Desktop folder.
to create a link file pointing to some network location can be done using the script :-
Set WshShell = CreateObject("WScript.Shell")
Set oFileSys = CreateObject("Scripting.FileSystemObject")
sPath = "c:\Documents and Settings\All users\Desktop"
Set objShortcutLnk = WshShell.CreateShortcut(sPath & "\ShortCutName.lnk")
objShortcutLnk.TargetPath ="X:\Server\test.exe"
objShortcutLnk.Arguments = "-Argument"
objShortcutLnk.WorkingDirectory = "X:\Server\"
objShortcutLnk.Save
hope this helps
thanks,
Create a Link file ".lnk" pointing to that exe over the network and then add the link file to wise application as file to Desktop folder.
to create a link file pointing to some network location can be done using the script :-
Set WshShell = CreateObject("WScript.Shell")
Set oFileSys = CreateObject("Scripting.FileSystemObject")
sPath = "c:\Documents and Settings\All users\Desktop"
Set objShortcutLnk = WshShell.CreateShortcut(sPath & "\ShortCutName.lnk")
objShortcutLnk.TargetPath ="X:\Server\test.exe"
objShortcutLnk.Arguments = "-Argument"
objShortcutLnk.WorkingDirectory = "X:\Server\"
objShortcutLnk.Save
hope this helps
thanks,
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.