Link to home
Start Free TrialLog in
Avatar of HKFuey
HKFueyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Visual Studio 2013 Shortcut (VB)

I have a simple project that users install from an exe file. It creates a click-once shortcut in a folder in their all programs list.

Does anyone know how I can create a desktop click once shortcut on install?
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

I prefer it in a task view.

Just open the Visual Studio. Right click on the icon in the task view and select pin to task view.

Hope it helps !
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of harry for
harry for

use %USERPROFILE%/desktop as path to get desktop path and can use vbscript to automate this

link.vbs
/////////////////////////////////////////////////////////////////////////
set fs  = CreateObject("Scripting.FileSystemObject")
set ws  = WScript.CreateObject("WScript.Shell")
set arg = Wscript.Arguments

linkFile = arg(0)

set link = ws.CreateShortcut(linkFile)
    link.TargetPath = fs.BuildPath(ws.CurrentDirectory, arg(1))
    link.Save
////////////////////////////////////////////////

command from Command prompt
C:\dir>link.vbs ..\shortcut.txt.lnk target.txt


alternatively u can use "mlink.exe" command to generate symbolic link but it file system level thing not shortcut.

symbolic links is very different beast but you can try this , :)
Avatar of HKFuey

ASKER

So easy!!!! Thank you Scott.