【问题标题】:Creating Cab failed with VS2008 In windows 8.1在 Windows 8.1 中使用 VS2008 创建 Cab 失败
【发布时间】:2014-01-16 00:39:30
【问题描述】:

最近我升级到 Windows 8.1。

在为我的 Windows Mobile 旧项目之一尝试 craete CAB 安装后,我收到此错误:

Warning: Section [RegKeys] has no data
Warning: Section [DefaultInstall] key "AddReg" - there are no section entries to process
Error: CAB file "SomePath\Release\FCS Setup.CAB" could not be created

这是inf文件

[Version]
Signature="$Windows NT$"
Provider="Souren"
CESignature="$Windows CE$"

[CEStrings]
AppName="FCS"
InstallDir=%CE1%\%AppName%

[Strings]
Manufacturer="Souren"

[CEDevice]
VersionMin=4.0
VersionMax=6.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1

[SourceDisksNames]
1=,"Common1",,"SomePath\Release\"

[SourceDisksFiles]
"FCS.exe"=1

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"%InstallDir%"

[Files.Common1]
"FCS.exe","FCS.exe",,0


[Shortcuts]
"FCS",0,"FCS.exe","%CE17%"

[RegKeys]

出现此错误后,我注意到 [RegKeys] 部分为空,因此向 cab 添加了一些寄存器,并将我的 inf 文件的最后部分更改为:

[RegKeys]
"HKCR","FCS","FCSName","0x00000000","SomeName"

但仍然没有创建出租车。并且错误只是更改为:

Error: CAB file "SomePath\Release\FCS Setup.CAB" could not be created

Windows 8.1 和 vs 2008 有什么问题吗?这个项目在我以前的窗口中运行良好。

【问题讨论】:

    标签: visual-studio-2008 windows-mobile windows-8.1 cab cabwiz


    【解决方案1】:

    您可能遇到了对应创建 cab 的文件夹的访问限制。

    如果您有 INF 文件,您可以尝试使用 inf 文件手动运行 cabwiz(我非常喜欢 VS 集成)并获取有关任何错误的更多信息:http://www.hjgode.de/dev/imec/Making%20a%20CAB%20file.htm

    【讨论】:

      【解决方案2】:

      我找到了一个解决方案,它对我有用。 它实际上与“8.3文件名”有关

      http://social.msdn.microsoft.com/Forums/en-US/66ecc60c-5895-4020-b876-af122b56b058/ce-cab-wizard-error-cab-file-could-not-be-created

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-01-13
        • 1970-01-01
        • 2016-03-28
        • 2013-08-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多