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"
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.