首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >拒绝WiX工具集错误INSG0001对路径的访问

拒绝WiX工具集错误INSG0001对路径的访问
EN

Stack Overflow用户
提问于 2018-02-21 13:29:23
回答 1查看 1.2K关注 0票数 2

嗨,我使用WiX工具集v3.11来部署几个项目。这已经在一段时间内没有问题了。我使用Visual 2017中的构建后事件命令行对我的安装包进行数字签名。不幸的是,我的电脑上的USB接口出了问题,所以我不得不重新安装Windows 10,因为重新安装后构建命令不再运行。我希望解决方案是简单的,我忽略了。

生成命令

代码语言:javascript
复制
"C:\Program Files (x86)\WiX Toolset v3.11\bin\insignia.exe" -ib Installer.exe -o engine.exe
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\signtool.exe" sign /f "c:\users\username\documents\Cert.pfx" /p "password" /d "My Software" /fd sha256 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 "engine.exe"
"C:\Program Files (x86)\WiX Toolset v3.11\bin\insignia.exe" -ab engine.exe Installer.exe -o Installer.exe 
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\signtool.exe" sign /f "c:\users\username\documents\Cert.pfx" /p "password" /d "My Software" /fd sha256 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 "$(TargetPath)"
del engine.exe

生成的输出。

代码语言:javascript
复制
Windows Installer XML Toolset Inscriber version 3.11.1.2318
2>  Copyright (c) .NET Foundation and contributors. All rights reserved.
2>Insignia.exe(0,0): error INSG0001: Access to the path is denied.
2>  Exception Type: System.UnauthorizedAccessException
2>  Stack Trace:
2>     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2>     at System.IO.__Error.WinIOError()
2>     at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
2>     at Microsoft.Tools.WindowsInstallerXml.Inscriber.InscribeBundleEngine(String bundleFile, String outputFile)
2>     at Microsoft.Tools.WindowsInstallerXml.Tools.Insignia.Run(String[] args)
2>  Done Adding Additional Store
2>  Number of errors: 1
2>EXEC(0,0): error : File not found: engine.exe
2>  Windows Installer XML Toolset Inscriber version 3.11.1.2318
2>  Copyright (c) .NET Foundation and contributors. All rights reserved.
2>Insignia.exe(0,0): error INSG0001: Could not find file 'C:\Users\username\Documents\Visual Studio 2017\Projects\My Sotware\Bootstrapper\bin\Release\engine.exe'.
2>  Exception Type: System.IO.FileNotFoundException
2>  Stack Trace:
2>     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2>     at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
2>     at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
2>     at Microsoft.Tools.WindowsInstallerXml.Inscriber.InscribeBundle(String bundleFile, String signedEngineFile, String outputFile)
2>     at Microsoft.Tools.WindowsInstallerXml.Tools.Insignia.Run(String[] args)
2>  Done Adding Additional Store
2>  Successfully signed: C:\Users\username\Documents\Visual Studio 2017\Projects\My Software\Bootstrapper\bin\Release\Installer.exe
2>  Could Not Find C:\Users\username\Documents\Visual Studio 2017\Projects\My Software\Bootstrapper\bin\Release\engine.exe
2>C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(2832,5): error MSB3073: The command ""C:\Program Files (x86)\WiX Toolset v3.11\bin\insignia.exe" -ib Installer.exe -o engine.exe
2>"C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\signtool.exe" sign /f "c:\users\username\documents\Cert.pfx" /p "password" /d "My Software" /fd sha256 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 "engine.exe"
2>"C:\Program Files (x86)\WiX Toolset v3.11\bin\insignia.exe" -ab engine.exe Installer.exe -o Installer.exe 
2>"C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\signtool.exe" sign /f "c:\users\username\documents\Cert.pfx" /p "password" /d "My Software" /fd sha256 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 "C:\Users\username\Documents\Visual Studio 2017\Projects\My Software\Bootstrapper\bin\Release\Installer.exe"
2>del engine.exe" exited with code -1.
2>Done building project "Bootstrapper.wixproj" -- FAILED.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-21 18:39:08

作为参考,解决方案确实很简单,我的安全软件BitDefender完全安全2018年阻碍了访问。

允许访问

  • 开放Bitdefender
  • 单击“查看功能”链接(向右)
  • 在“销售文件”瓷砖中单击“应用程序访问”
  • 切换“WiX工具集题词”以允许
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48907226

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档