简体   繁体   English

无法打开报告文件 (iexpress)

[英]Unable to open the Report file (iexpress)

我正在尝试使用 iexpress 为我今天完成的 C 中的 WAV 音频播放器创建一个安装程序,但是,当我进行最后一步时,它出现了以下错误消息:“无法打开报告文件 C :\\Users\\Poleto\\Desktop\\~SWAV.RPT" 知道如何解决这个问题吗?

您可能需要以提升的权限运行,请参阅IExpress 上SS64 条目

您应该以管理员身份运行 iexpress,然后这将得到解决。

I came accross this issue as Admin.我作为管理员遇到了这个问题。 Something that worked for me:对我有用的东西:

On the Package Name and Options screen, tick 'Store files using Long File Name inside Package' and then create.在包名和选项屏幕上,勾选“在包内使用长文件名存储文件”,然后创建。

Sorry, I know this is an old post, but I found a solution, and it doesn't need admin.对不起,我知道这是一个旧帖子,但我找到了一个解决方案,它不需要管理员。 To create an installer, navigate to the folder you are installing from, click the Explorer path bar, and type in "iexpress".要创建安装程序,请导航到您要安装的文件夹,单击资源管理器路径栏,然后输入“iexpress”。 Then, create the installer as normal.然后,照常创建安装程序。 You do not need admin privileges.您不需要管理员权限。 Make sure you save the installer to the same folder.确保将安装程序保存到同一文件夹中。 This defines the %cd% environment variable as the path of your installer folder, which makes it work.这将%cd%环境变量定义为安装程序文件夹的路径,从而使其工作。 Maybe it's something with the command-line bundler.也许它与命令行捆绑器有关。 I don't know.我不知道。 All I know is that it works.我只知道它有效。 Even with a non-administrator account running as non-elevated.即使非管理员帐户以非提升方式运行。

Proof:证明:

安装程序成功运行的图像

I ran into this issue when I had by mistake, included the same filename twice in this file.我错误地遇到了这个问题,在这个文件中包含了两次相同的文件名。 I was able to narrow down the culprit section by removing all sections one at a time and running the build until the build passed.通过一次删除所有部分并运行构建直到构建通过,我能够缩小罪魁祸首的范围。 And then an analysis of the erring section revealed the filename duplication.然后对错误部分的分析揭示了文件名重复。

Yes, running IExpress as administrator usually solves this problem, but in my case there was an additional issue.是的,以管理员身份运行 IExpress 通常可以解决这个问题,但就我而言,还有一个额外的问题。 I noticed that IExpress produces the same error when the path to the source files contains folders with spaces AND the path is based on another partition than C: (or maybe the system partition).我注意到当源文件的路径包含带空格的文件夹并且路径基于另一个分区而不是 C:(或者可能是系统分区)时,IExpress 会产生相同的错误。 For example:例如:

Working Path => C:\Some Folder With Space\file.SED
Not Working => D:\Some Folder With Space\file.SED
Working Path => D:\SomeFolderWithSpace\file.SED

I liked that IExpress extracts to temporary folder, generates initial SED file from GUI, which can easily be edited as it has INI format, has command line, can include install script/executable after extraction and is part of Windows.我喜欢 IExpress 提取到临时文件夹,从 GUI 生成初始 SED 文件,该文件可以轻松编辑,因为它具有 INI 格式,具有命令行,可以在提取后包含安装脚本/可执行文件,并且是 Windows 的一部分。 Really nice features, but this bug is a killer.非常好的功能,但这个错误是一个杀手。 Also, running as administrator and not providing error codes when unable to create archive (from command line) is not nice.此外,以管理员身份运行并且在无法创建存档(从命令行)时不提供错误代码也不好。

你必须以管理员权限运行它希望我帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM