#region 创建桌面快捷方式
try
{
string deskTop = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
if (!System.IO.File.Exists(deskTop + "\\xxx.lnk")) //
{
ShortCutHelper.CreateShortcutOnDesktop("xxx", AppDomain.CurrentDomain.BaseDirectory + "\\" + AppDomain.CurrentDomain.FriendlyName, null, System.Environment.SystemDirectory + "\\" + "SHELL32.dll," + "238");//-183
}
}
catch (Exception ex)
{
MessageBox.Show("创建快捷方式失败!");
}
#endregion