Battlelogium.Installer.InstallerCommon.CreateShortcut C# (CSharp) Method

CreateShortcut() public static method

public static CreateShortcut ( string shortcutName, string description, string exePath, string shortcutPath ) : void
shortcutName string
description string
exePath string
shortcutPath string
return void
        public static void CreateShortcut(string shortcutName, string description, string exePath, string shortcutPath)
        {
            WshShell shell = new WshShell();
            string shortcutAddr =  shortcutPath + @"\" + shortcutName;
            IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddr);
            shortcut.Description = description;
            shortcut.TargetPath = exePath;
            shortcut.Save();
        }
        public static void CreateDesktopShortcut(string shortcutName, string description, string exePath)