我有需要通过ClickOnce部署的Windows应用程序。 发布向导会创建安装页面,其中包含错误的安装文件位置,这里是错误日志:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18408
System.Deployment.dll : 4.0.30319.18408 built by: FX451RTMGREL
clr.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfdll.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///D:/Download/My.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\Download\My.application resulted in exception. Following failure messages were detected:
+ Downloading file:///D:/Download/My.application did not succeed.
+ Could not find file 'D:\Download\My.application'.
+ Could not find file 'D:\Download\My.application'.
+ Could not find file 'D:\Download\My.application'.
发布文件夹loc:' d:\ Projects \ Setup \' 安装文件夹loc:' \ mypc \ d \ Projects \ Setup \'
所以不要在' D:\ Download'中查找我的应用文件。我需要将其更改为我的安装文件所在的文件夹' d:\ Projects \ Setup \'
我可以在哪里更改?
答案 0 :(得分:0)
仅当在生成的页面中使用“安装”按钮(下载setup.exe的按钮)时,我才遇到同样的问题。使用“启动”(运行.application)在以下方面可以正常工作:查找和下载文件。据我所知,问题是由下载然后运行文件引起的,我的意思是,它似乎只能与IE或Edge等安装程序配合使用,在该安装程序中,您可以“运行”否则将保存该文件,否则setup.exe使用的部署URL将始终是您正在运行setup.exe的目录,即您的下载文件夹。