x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

CE CAB Installer INF doesnt work

fragenmensch Page Icon Posted 2005-10-22 2:09 PM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
Hi!
With CuteInstall, I created this INF file and the cab:
;==================================================
; SkyCommander.inf
;
; CuteInstall Wizard
; Copyright 1998-1999 Acer Sofech(Shanghai) Inc.
; All Rights Reserved.
;
; This script was generated as a starting setup template.
; You should modify it as needed for your setup
==================================================

; Required Section
[Version]
Signature = "$Windows NT$"
Provider = %Provider%
CESignature = "$Windows CE$"


; Create a CPU-specific CAB file...
[CEDevice.SH3]
ProcessorType = 10003


; Settings common to all processors...
[DefaultInstall]
AddReg = AddRegistry.All
CopyFiles = Files00.All



; CPU-specific settings...
[DefaultInstall.SH3]
CopyFiles = Files00.SH3

; CPU-independent source disks
[SourceDisksNames]
1 =, "Common Files",, C:\Programme\CuteInstall\projects\SkyCommander

; SH3-specific source disks...
[SourceDisksNames.SH3]
2 =, "SH3 files",, C:\Programme\CuteInstall\projects\SkyCommander

; CPU-independent source files...
[SourceDisksFiles]
sc_info_cl.bmp = 1
sc_learn_cl.bmp = 1
sc_play_cl.bmp = 1
sd_edit_cl.bmp = 1
sd_move_cl.bmp = 1
sd_test_cl.bmp = 1


; SH3-specific source files...
[SourceDisksFiles.SH3]
cir.dll = 2
skyclass.dll = 2
skycommander.exe = 2
skydesigner.exe = 2


; Ouput directories for files & shortcuts
[DestinationDirs]
Files00.All = 0, %InstallDir%
Files00.SH3 = 0, %InstallDir%
DefaultDestDir = 0, %InstallDir%


; Files common to all process types.
[Files00.All]
"sc_info_cl.bmp"
"sc_learn_cl.bmp"
"sc_play_cl.bmp"
"sd_edit_cl.bmp"
"sd_move_cl.bmp"
"sd_test_cl.bmp"






; Files for specified CPU type only.
[Files00.SH3]
"cir.dll"
"skyclass.dll"
"skycommander.exe"
"skydesigner.exe"

; Create registry entries...
[AddRegistry.All]
HKLM, "Drivers\BuiltIn\ConsumerIR", "Prefix", 0, "CIR"
HKCR, "Drivers\BuiltIn\ConsumerIR", "Dll", 0, "cir.dll"
HKCR, "Drivers\BuiltIn\ConsumerIR", "Param1", 65537, 00000000
HKCR, "Drivers\BuiltIn\ConsumerIR", "Param2", 65537, 004650AC
HKCR, "Drivers\BuiltIn\ConsumerIR", "IRPort", 0, "COM4:"
HKCR, "Drivers\BuiltIn\ConsumerIR", "Order", 65537, 00000006
HKCR, "Drivers\BuiltIn\ConsumerIR", "Index", 65537, 00000001


; CE-specific strings...
[CEStrings]
AppName = "SkyCommander"
InstallDir = %CE2%


; Misc. strings...
[Strings]
Provider = "XXXXXXX"

;==================================================

as a repackaging of Skycommander 0.99e which doesn't come with a CAB by nature, but with a .exe with requires activesync.
So I took the files and built the cab in attachment. But as I installed it, only the first registry entry, "Prefix" was in the registry, but all files were there where they belonged, but with small letters anywhere.
Can anyone solve this?



Attachments
----------------
Attachments SkyCommander.sh3.CAB (89KB - 53 downloads)
 Top of the page
C:Amie Page Icon Posted 2005-10-22 2:21 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,007
Location:
United Kingdom
Status:
If this is for use with cab gen, you don't " " the sections of the hive entry.

e.g.
HKLM,%drv_adf2%,Dll,0x00000000,Ndis.Dll

not

"HKLM","%drv_adf2%","Dll","0x00000000","Ndis.Dll"
 Top of the page
fragenmensch Page Icon Posted 2005-10-22 2:24 PM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
Thanks, but I dont think thats the source of the problem since 1 of the keys is created.

Marco
 Top of the page
C:Amie Page Icon Posted 2005-10-22 3:02 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,007
Location:
United Kingdom
Status:
You should not need to use the quotation marks, as outlined on MSDN. You also should use the full HEX string 0x00000000 not just 0.

However I've noticed the specific problem. You're having issues because you're writing the driver information into HKClass_Root, it should be going into HKLocal_Machine.
 Top of the page
fragenmensch Page Icon Posted 2005-10-22 3:11 PM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
C:Amie - 2005-10-22 9:02 PM

You should not need to use the quotation marks, as outlined on MSDN. You also should use the full HEX string 0x00000000 not just 0.

However I've noticed the specific problem. You're having issues because you're writing the driver information into HKClass_Root, it should be going into HKLocal_Machine.


LOL, how stupid I was. CuteInstall had the error that HKCR is standard . I think I should write some tutorial and post it here-i'm sure it will be useful for any developer.

marco

PS: is a ce port for cabwiz or makecab available so that it's possible directly create .cabs on the mobile device??
 Top of the page
C:Amie Page Icon Posted 2005-10-22 3:25 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,007
Location:
United Kingdom
Status:
I've never used cuteinstall myself, I always script directly for cabwiz.

I've never head of a CE device version.
 Top of the page
Jump to forum:
Seconds to generate: 0.218 - Cached queries : 64 - Executed queries : 9