安装 WebView2 WinForms

huangapple go评论75阅读模式
英文:

Install WebView2 Winforms

问题

我有一个WinForms应用程序,它使用WebView2,当我在发布模式下构建应用程序时,应用程序正常工作,但当我尝试使用Windows安装程序项目创建项目的安装程序exe文件时,文件会被复制,但总是抛出错误,最近的一个错误是Edge无法读取或写入其目录。
有人知道我是否遗漏了什么吗?
我尝试过Windows Installer、Advanced Installer和WinRAR SFX。

英文:

I have a winforms application, it's using WebView2, when I build in release the app works fine, when I attempt to use Windows installer project to create a setup exe file for the project, the files get copied but it always throws an error, the most recent one was that edge can't read or write to its directory.
Does anyone know if there is something I am missing please ?

I tried windows installer, advanced installer and winrar SFX

答案1

得分: 0

感谢 @David Risney,问题出在安装目录上,一旦我将安装移到用户具有写权限的目录,问题就解决了。

英文:

Thanks to @David Risney, the problem was the installation directory, once I moved the installation to a directory the user had write access to the problem was solved.

huangapple
  • 本文由 发表于 2023年5月25日 01:02:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76325885.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定