Support for AutoRun INF

Top Rated Autorun Software!

How can I copy a shortcut to my application on to the users Desktop?

54,285 views - AutoRun INF FAQ

Within AutoRun Wizard there is no option create a shortcut to your application and place it on the users desktop. However, some of our savvy customers have created a VB Script file that achieves the same thing.

Simply open notepad and type in this:

set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "\shortcut name.lnk" )
oShellLink.TargetPath = "c:\application folder\application.exe"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "c:\application folder\application.ico"
oShellLink.Description = "Shortcut Name"
oShellLink.WorkingDirectory = "c:\application folder"
oShellLink.Save

Note: Modify lines 3, 4, 6, 7, 8 (bolded) to change this to your specific needs.

Save the file as addshortcut.vbs (make sure there is not a .txt extension and it is only .vbs)

Then copy the newly created vbs file to your Base Folder. Once in your Base Folder you can auto launch the vbs file as part of your autorun. When the user inserts the cd, the shortcut will be copied to their desktop.

Try it yourself. AutoRun INF is free to download and fully functional - see how it handles this on your own USB drive or CD.
Download & Try Free

Go back to the FAQ for AutoRun INF.

Questions? Talk to a real person.

RJL Software has built Windows software since 1994. Send us a message and we will get back to you.

Contact Us