RJL Software
Home to RJL SoftwareWindows SoftwareTechnical Support
Home Support FAQ Software  
Money Help Fund
Search

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

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.

Support Our Work

Please consider making a contribution today to help us keep AutoRun Wizard available for everyone.

Get Help

Didn't find your answer?

Our support team can help you with your specific issue. Submit a request and we'll get back to you.

Get Help Now
Rating: Top Rated!Top Rated!Top Rated!Top Rated!Top Rated! (16 votes)
Rate this answer:
Additional Information
Added: Sep 9, 2010