示例#1
0
 AddCLIShortcut(string shortcutName, string shortcutArgs, string shortcutDesc, bool allUsers)
 {
     if (shortcutName != null && shortcutArgs != null)
     {
         var processPath = GetProcessPath();
         var iconPath    = Path.Combine(processPath, shortcutIconName);
         CommonUtils.AddShortcut(
             shortcutName,
             PyRevitConsts.ProductName,
             GetProcessFileName(),
             shortcutArgs,
             processPath,
             iconPath,
             shortcutDesc,
             allUsers: allUsers
             );
     }
 }