public override void Invoke()
        {
            VSNEWPROJECTDLGINFO info = new VSNEWPROJECTDLGINFO();

            info.pwzExpand = (this.installedTemplateProvider as IVsTemplatePathServices)?.GetPathFromNode(template.OwnerNode);
            info.pwzSelect = template.Name;

            LaunchNewProjectDialog(info);
        }
        public static void LaunchNewProjectDialog(VSNEWPROJECTDLGINFO newProjectDialogInfo)
        {
            IVsDialogService dialogService = ServiceProvider.GlobalProvider.GetService(typeof(SVsDialogService)) as IVsDialogService;

            if (dialogService != null)
            {
                string loc;
                try
                {
                    dialogService.InvokeDialog(newProjectDialogInfo, out loc);
                }
                catch (Exception ex)
                {
                    Debug.Fail("Failed to invoke new project dialog: " + ex.Message);
                }
            }
        }