Installation 使用squirrel.windows部署WPF应用程序,并且程序&;中没有windows 10条目;特征
目标是使用squirrel.windows进行部署,以便能够安装、更新、卸载并在windows 10的程序和功能中看到它。另外,如果要添加一个MyApp.msi文件作为结尾,那就更好了 案例1: 我用Nuget包资源管理器创建了一个NugetPackage。然后通过软件包管理器控制台“squirrel--releasify myNuget.1.0.0.nupkg”将其重新简化,获取发布文件,单击setup.exe进行安装,应用程序的图标显示在windows菜单中 在Windows程序和功能中,它不会出现在已安装的应用程序列表中 当我部署应用程序的下一个nugetPackage时,更新正在运行。它创建了一个很好的myApp.msi文件 案例2: 当我在GitHub“”上使用Squirrel应用程序时,它会显示出来。-太好了 当我部署应用程序的下一个nugetPackage时,更新不起作用。它会创建一个myApp.msi文件 对于小型testApp,它使用的代码完全相同,但也没有myApp.msi文件。不同之处在于,它使用了DevExpress Dll,在生产应用程序中有54个Dll。myTestApp中有13个Dll 安装和更新代码Installation 使用squirrel.windows部署WPF应用程序,并且程序&;中没有windows 10条目;特征,installation,nuget-package,squirrel.windows,Installation,Nuget Package,Squirrel.windows,目标是使用squirrel.windows进行部署,以便能够安装、更新、卸载并在windows 10的程序和功能中看到它。另外,如果要添加一个MyApp.msi文件作为结尾,那就更好了 案例1: 我用Nuget包资源管理器创建了一个NugetPackage。然后通过软件包管理器控制台“squirrel--releasify myNuget.1.0.0.nupkg”将其重新简化,获取发布文件,单击setup.exe进行安装,应用程序的图标显示在windows菜单中 在Windows程序和功能中,它
public static async Task CheckForUpdates()
{
using (var mgr = new UpdateManager(DEPLOYMENT_PATH))
{
// Note, in most of these scenarios, the app exits after this method
// completes!
SquirrelAwareApp.HandleEvents(
onInitialInstall: v => mgr.CreateShortcutForThisExe(),
onAppUpdate: v => mgr.CreateShortcutForThisExe(),
onAppUninstall: v => mgr.RemoveShortcutForThisExe(),
onFirstRun: () => ShowTheWelcomeWizard = true);
}
}
public static bool ShowTheWelcomeWizard { get; set; }
请帮助我达到我的目标
你好,弗雷迪