需要的2个文件,visual studio 下面是可以找到的啊
cabwiz.exe
cabwiz.ddf
然后就是先把自己的WinCE程序写好啊
之后就是编写 *.inf 文件了
[Version]
Signature = "$Windows NT$" ; required as-is
Provider = "Microsoft" ; maximum of 30 characters, full app name will be "<Provider> <AppName>"
CESignature = "$Windows CE$" ; required as-is
[CEStrings]
AppName = "Jr_Wx_Txm" ; maximum of 40 characters, full app name will be "<Provider> <AppName>"
InstallDir = %CE1%\%AppName% ; Program Files\Jr_Wx_Txm
; Directory Identifier Pocket PC Directory
; %CE1% \Program Files
; %CE2% \Windows
; %CE4% \Windows\StartUp
; %CE5% \My Documents
; %CE8% \Program Files\Games
; %CE11% \Windows\Start Menu\Programs
; %CE14% \Windows\Start Menu\Programs\Games
; %CE15% \Windows\Fonts
; %CE17% \Windows\Start Menu
[SourceDisksNames] ; directory that holds the application's files
1 = , "Common Files",,Jr_Wx_Txm\bin\Debug ; disk_id = ,comment,,path (absolute or relative paths)
[SourceDisksFiles] ; list of files to be included in .cab
Jr_Wx_Txm.exe = 1
System.Data.SqlClient.dll = 1
dbnetlib.dll = 1
cellcore.dll = 1
host.xml = 1
[DefaultInstall] ; operations to be completed during install
CopyFiles = CopyToProgramFiles
AddReg = RegData
CEShortcuts = Shortcuts
[DestinationDirs] ; default destination directories for each operation section
CopyToProgramFiles = 0, %InstallDir%
Shortcuts = 0, %CE14% ; \Windows\Start Menu\Programs\%AppName%
[CopyToProgramFiles] ; copy operation file list
"Jr_Wx_Txm.exe", Jr_Wx_Txm.exe
"System.Data.SqlClient.dll", System.Data.SqlClient.dll
"dbnetlib.dll", dbnetlib.dll
"cellcore.dll", cellcore.dll
"host.xml", host.xml
[RegData] ; registry key list
HKCU,Software\%AppName%,MajorVersion,0x00010001,1
HKCU,Software\%AppName%,MinorVersion,0x00010001,0
[Shortcuts] ; Shortcut created in destination dir, %CE14%
%AppName%,0,Jr_Wx_Txm.exe
最后就是DOS下面去 执行 cabwiz *.inf 这样你的CAB包就成功生成了
特别要注意的是自己的程序所放的位置,不过也没关系打包的时候是会提示错误的!