在Visual Studio解决方案(我正在使用Visual Studio 2022)中,如何配置Boostrapper来输出名为 setup.exe
的文件?
我有一个 wixproj
项目,该项目构建了一个bootstrapper,该项目在另一个 wixproj
project中安装了几个先决条件和MSI。一切都按预期工作,除非我在Bootstrapper项目上设置输出名称 设置
我的Visual Studio build会失败,但有以下错误:
light.exe(0,0): error LGHT0388: The file name 'setup.exe' creates an insecure bundle. Windows will load unnecessary compatibility shims into a bundle with that file name. These compatibility shims can be DLL hijacked allowing attackers to compromise your customers' computer. Choose a different bundle file name.
Done building project "Bootstrapper.wixproj" -- FAILED.
如果我设置 upput名称以其他任何内容(例如[我的项目]设置),构建成功。我可以将输出文件重命名为 setup.exe
,它的行为与我在不重命名的情况下运行时的行为相同。
我在这样提到的 lght0388
上什么都没有找到,我唯一发现的是2019年的邮件列表帖子,没有任何响应 - [wix-users] lght0388:文件名'setup.exe'创建一个不安全的bundle 。
In a Visual Studio solution (I'm using Visual Studio 2022), how can I configure a boostrapper to output a file named setup.exe
?
I have a wixproj
project that builds a bootstrapper that installs a couple of prerequisites and an MSI from another wixproj
project. Everything is working as expected, except when I set the Output name on the bootstrapper project to setup
my Visual Studio build fails with the following error:
light.exe(0,0): error LGHT0388: The file name 'setup.exe' creates an insecure bundle. Windows will load unnecessary compatibility shims into a bundle with that file name. These compatibility shims can be DLL hijacked allowing attackers to compromise your customers' computer. Choose a different bundle file name.
Done building project "Bootstrapper.wixproj" -- FAILED.
If I set Output name to anything else ([My Project] setup, for example), the build succeeds. I can rename the output file to setup.exe
and it seems to behave the same as when I run it without renaming it.
I found nothing on SO mentioned LGHT0388
and on the web the only thing I found is a mailing list post from 2019 with no responses - [wix-users] LGHT0388: The file name 'Setup.exe' creates an insecure bundle.
发布评论
评论(1)
您不能按设计。来自:
You can't, by design. From http://lists.wixtoolset.org/pipermail/wix-users-wixtoolset.org/2019-April/007992.html: