最近我升级到Windows 8.1。
尝试使用我的旧版Windows Mobile项目的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和2008有什么问题吗?这个项目在我之前的窗口中运行良好。
答案 0 :(得分:2)
我找到了一个解决方案,它对我有用。 它实际上与“8.3文件名”有关
答案 1 :(得分:0)
可能会遇到应该创建cab的文件夹的访问限制。
如果您有INF文件,您可以尝试使用inf文件手动运行cabwiz(我非常喜欢VS集成)并获取有关任何错误的更多信息:http://www.hjgode.de/dev/imec/Making%20a%20CAB%20file.htm