如何修复InstallShield错误-1501:无法压缩?

时间:2021-01-10 17:05:26

I'm using an InstallShield project to generate setup files. Everything was working fine, but I've recently encountered following error which says,

我正在使用InstallShield项目来生成安装文件。一切都工作正常,但我最近遇到以下错误,说,

  • Could not compress "bin\x86\QA\AppManifest.xaml" into "\Default Configuration\MSI
  • 无法将“bin \ x86 \ QA \ AppManifest.xaml”压缩为“\ Default Configuration \ MSI”
  • Could not find file "bin\x86\QA\AppManifest.xaml" ISDEV : error : -6103:
  • 找不到文件“bin \ x86 \ QA \ AppManifest.xaml”ISDEV:错误:-6103:

So far I have been unable to fix these issues. Can someone help me understand what I may be doing wrong?

到目前为止,我一直无法解决这些问题。有人能帮助我理解我可能做错了吗?

3 个解决方案

#1


2  

Thought it's late to reply, I came with similar error on dynamic file linking. But, problem was with double slash being on Resource directory.

认为回复已经很晚了,我在动态文件链接上遇到了类似的错误。但是,问题是在资源目录上有双斜杠。

My problem was, I provided path as : "PATH_TO_HELP_FILES\Docs\", while i removed the last \ on path i.e PATH_TO_HELP_FILES\Docs, the problem was gone.

我的问题是,我提供了路径:“PATH_TO_HELP_FILES \ Docs \”,而我删除了最后一个路径,即PATH_TO_HELP_FILES \ Docs,问题就消失了。

#2


1  

  • It could be the AppManifest.xaml is missing from the source folder? I think this is the most likely scenario - your application build could have failed, and this particular file could be missing?
  • 可能是源文件夹中缺少AppManifest.xaml?我认为这是最可能的情况 - 您的应用程序构建可能已失败,并且此特定文件可能会丢失?
  • You could also have a file lock in the build output folder - did you try to reboot and rebuild?
  • 您还可以在构建输出文件夹中拥有文件锁 - 您是否尝试重新启动并重建?
  • You can also try to run the release wizard and make a new release configuration and try to build that
  • 您还可以尝试运行发布向导并创建新的发行版配置并尝试构建它

http://www.codeproject.com/Articles/192738/What-is-AppManifest-xaml-in-Silverlight

http://www.codeproject.com/Articles/192738/What-is-AppManifest-xaml-in-Silverlight

#3


0  

Another late reply. For my situation, I merged multiple branches together, and something is lost along the way. It was probably a setting file or something with the gitignore file. Anyways, I got that same -1501 could not compress file error. The reason was the build order of projects in the solution. Incorrect build order caused VS to look for dependencies when they were not yet created or included. I right-clicked on the solution, went to the Dependencies tab to set the order (by setting dependencies). Once that was done, I could Clean Solution and Rebuild Solution without getting any error.

另一个迟回复。对于我的情况,我将多个分支合并在一起,并且在此过程中丢失了一些东西。它可能是一个设置文件或gitignore文件的东西。无论如何,我得到了同样的-1501无法压缩文件错误。原因是解决方案中项目的构建顺序。构建顺序不正确导致VS在尚未创建或包含依赖项时查找依赖项。我右键单击解决方案,转到Dependencies选项卡以设置顺序(通过设置依赖项)。完成后,我可以使用Clean Solution和Rebuild Solution而不会出现任何错误。

#1


2  

Thought it's late to reply, I came with similar error on dynamic file linking. But, problem was with double slash being on Resource directory.

认为回复已经很晚了,我在动态文件链接上遇到了类似的错误。但是,问题是在资源目录上有双斜杠。

My problem was, I provided path as : "PATH_TO_HELP_FILES\Docs\", while i removed the last \ on path i.e PATH_TO_HELP_FILES\Docs, the problem was gone.

我的问题是,我提供了路径:“PATH_TO_HELP_FILES \ Docs \”,而我删除了最后一个路径,即PATH_TO_HELP_FILES \ Docs,问题就消失了。

#2


1  

  • It could be the AppManifest.xaml is missing from the source folder? I think this is the most likely scenario - your application build could have failed, and this particular file could be missing?
  • 可能是源文件夹中缺少AppManifest.xaml?我认为这是最可能的情况 - 您的应用程序构建可能已失败,并且此特定文件可能会丢失?
  • You could also have a file lock in the build output folder - did you try to reboot and rebuild?
  • 您还可以在构建输出文件夹中拥有文件锁 - 您是否尝试重新启动并重建?
  • You can also try to run the release wizard and make a new release configuration and try to build that
  • 您还可以尝试运行发布向导并创建新的发行版配置并尝试构建它

http://www.codeproject.com/Articles/192738/What-is-AppManifest-xaml-in-Silverlight

http://www.codeproject.com/Articles/192738/What-is-AppManifest-xaml-in-Silverlight

#3


0  

Another late reply. For my situation, I merged multiple branches together, and something is lost along the way. It was probably a setting file or something with the gitignore file. Anyways, I got that same -1501 could not compress file error. The reason was the build order of projects in the solution. Incorrect build order caused VS to look for dependencies when they were not yet created or included. I right-clicked on the solution, went to the Dependencies tab to set the order (by setting dependencies). Once that was done, I could Clean Solution and Rebuild Solution without getting any error.

另一个迟回复。对于我的情况,我将多个分支合并在一起,并且在此过程中丢失了一些东西。它可能是一个设置文件或gitignore文件的东西。无论如何,我得到了同样的-1501无法压缩文件错误。原因是解决方案中项目的构建顺序。构建顺序不正确导致VS在尚未创建或包含依赖项时查找依赖项。我右键单击解决方案,转到Dependencies选项卡以设置顺序(通过设置依赖项)。完成后,我可以使用Clean Solution和Rebuild Solution而不会出现任何错误。