Cab install files for Pocket Pc

Post Reply
pawelu
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland
Contact:

Cab install files for Pocket Pc

Post by pawelu »

Hello,

This is simply (?) install procedure for exe files for Pocket Pc.

1.
install pocket pc 2003 sdk (it's include CabWiz.Exe which produce cab files for Pocket Pc)

2.
download EzSetup.Exe from http://www.spbsoftwarehouse.com/product ... ad.html?en
(this is free software)

3. Create Inf file for Pocket installation for Yoyr app eg:
[Version]
Signature = "$Windows NT$"
Provider = "YourName"
CESignature = "$Windows CE$"

[CEStrings]
AppName = "YourAppName"
InstallDir = "\YourInstallDir"

[SourceDisksNames]
1 = , "Common Files",,FullPathForPcExeFile

[SourceDisksFiles]
YourExeFile.Exe = 1

[DefaultInstall]
CopyFiles = CopyToYourProg
AddReg = RegData
CEShortcuts = Shortcuts

[DestinationDirs]
CopyToYourProg = 0, %InstallDir%
Shortcuts = 0, %CE11%

[CopyToYourProg]
"YourProg.Exe", YourProg.Exe

[RegData]
HKCU,Software\%AppName%,MajorVersion,0x00010001,1
HKCU,Software\%AppName%,MinorVersion,0x00010001,0

[Shortcuts]
%AppName%,0,YourProg.Exe

4. Create bat file (CAB.BAT) eg:
"C:\Program Files\Windows Ce Tools\WCe420\Pocket PC 2003\Tools\CabWiz.Exe" YourInf.Inf /err YourProg.Err /cpu PPC2003_ARM

5. Create Ini file for Your app
[CEAppManager]
Version = 1.0
Component = YourAppName

[YourAppName]
Description = YourAppDescritpion
IconFile = YourAppIcon.Ico
IconIndex = 0
DeviceFile = YourAppExe.Exe
CabFiles = YourAppCab.CAB

6. Create bat (EXE.BAT) file eg:
EzSetup.Exe -l english -i YourApp.Ini -r Readme.Txt -e Eula.txt -o YourApp.Exe

7. Create readme .txt file whiere You include inf for user

8. Create eulat.txt file where You include software licence

For create installation files for Pocket Pc You will run:
- CAB.BAt file for create cab file
- EXE/BAt file for create install exe file for Pocket Pc

Regards
Pawel
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Pawel,

Thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
pawelu
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland
Contact:

Post by pawelu »

Sample:

We have program Test.Exe located in C:\Projects\Test dir.
Pocket Pc install dir is \Test.

Test.Inf file source

[Version]
Signature = "$Windows NT$"
Provider = "Test Inc."
CESignature = "$Windows CE$"

[CEStrings]
AppName = "Test"
InstallDir = "\Test"

[SourceDisksNames]
1 = , "Common Files",,C:\Projects\Test

[SourceDisksFiles]
Test.Exe = 1

[DefaultInstall]
CopyFiles = CopyToTest
AddReg = RegData
CEShortcuts = Shortcuts

[DestinationDirs]
CopyToTest = 0, %InstallDir%
Shortcuts = 0, %CE11%

[CopyToTest]
"Test.Exe", Test.Exe

[RegData]
HKCU,Software\%AppName%,MajorVersion,0x00010001,1
HKCU,Software\%AppName%,MinorVersion,0x00010001,0

[Shortcuts]
%AppName%,0,Test.Exe

Cab.Bat file source

@Echo Off
"C:\Program Files\Windows Ce Tools\WCe420\Pocket PC 2003\Tools\CabWiz.Exe" Test.Inf /err Test.Err /cpu PPC2003_ARM

Test.Ini file source

[CEAppManager]
Version = 1.0
Component = Test

[MoBi]
Description = Test, the best program in the world
IconFile = Test.Ico
IconIndex = 0
DeviceFile = Test.Exe
CabFiles = Test.PPC2003_ARM.CAB

Exe.Bat file source

@Echo Off
EzSetup.Exe -l english -i Test.Ini -r Readme.Txt -e Eula.txt -o TestSetup.Exe

1. Run Cab.Bat
2. Run Exe.Bat
3. Install software using TestSetup.Exe (Active Sync must be installed)

Pawel
Post Reply