最近我升级到 Windows 8.1。
在为我的 windows mobile 旧项目之一尝试 craete CAB install 后,我收到此错误:
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 有什么问题吗?这个项目在我以前的窗口中运行良好。