View Single Post
10/20/15, 07:23 PM   #10
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Quick Suggestion

If you leave the executable in the AddOns folder it's less likely to get used.

If you want you can use my Desktop Icon vbs.

Put it in the zip as MakeDesktopShortCut.vbs.remove

That way the user can rename it minus the .remove and run it so it puts a shortcut on the desktop.

This is the way mine does it - feel free to use this if you want...

Code:
Set oWS = WScript.CreateObject("WScript.Shell")  
Set objFSO = CreateObject("Scripting.FileSystemObject")
homedrive = oWS.Environment("PROCESS").Item("HOMEDRIVE")
homepath = oWS.Environment("PROCESS").Item("HOMEPATH")
CurrentDirectory = objFSO.GetAbsolutePathName(".")
shortCut = homedrive & homepath & "\desktop\Guild Sales Assistant.lnk"   
Set oLink = oWS.CreateShortcut(shortCut)   
oLink.TargetPath = CurrentDirectory & "\Guild Sales Assistant.exe"
oLink.Save
The more convenient you make it, the more likely people are to use it.

-d

Last edited by dopiate : 10/20/15 at 07:27 PM.