【发布时间】: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