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

PocketC Runtime on x86

1 2 3
torch Page Icon Posted 2023-01-21 6:15 AM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Hi referencing this thread :
https://www.hpcfactor.com/forums/forums/thread-view.asp?tid=20449&st...
I dunk for bananas was able to get PocketC runtime working by :
Quote
I dunk for bananas - 2022-09-28 1:11 PM

OH MY GOD, I GOT IT TO WORK
I copied the PocketC executables to the 204FILES directory from the cmonex site, and it works now! gosh


Unfortunately I can’t get Pocketc runtime to work on my HP t5540 thin client x86. I’m trying the PocketPC x86 3.00 build from the SCL but it seems like nothing actually installed from the cab.

Any ideas ?

Edit: Okay, I extracted the cab. Maybe we can make a new cab installer for x86 CE?

Here's the code result:
Show spoiler...
Genéralities	  
 
Selected Filename C:\Users\Joe Berte\Downloads\pkpc310.PPC310_x86(1).CAB
Installation filename (.000) PKPC31~2.000
File size (.000) 575 bytes
Processor 686 (Unknown)
File Signature MSCE
Minimal WinCE 3.0
Maximal WinCE 3.0
Minimal WinCE Build 0
Maximal WinCE Build 0
Strings 9
Directories 2
Files 3
Hives 4
Registry Keys 4
Shortcuts 1
Application Name PocketC
Provider Orbworks
Unsupported Platforms "HPC","JUPITER","PALM PC2"

*****************************************************************************************************************************************************************

Strings Value Equivalent

001 %CE2% \Windows
002 %CE11% \Windows\Start Menu\Programs
003 .app .app
004 pktc_appfile pktc_appfile
005 DefaultIcon DefaultIcon
006 Shell Shell
007 Open Open
008 Command Command
009 PocketC Runtime.lnk PocketC Runtime.lnk

*****************************************************************************************************************************************************************

Directories String ID Value

002 1 \Windows
003 2 \Windows\Start Menu\Programs

*****************************************************************************************************************************************************************

Files Order Number Flags ID Dir FileName in CAB FileName

001 001 0x40000003 \Windows 0pcshell.001 pcshell.exe
002 002 0x40000003 \Windows PCSHEL~1.002 "pcshellv2.exe"
003 003 0x40000003 \Windows 00pkcnet.003 pkcnet.dll

*****************************************************************************************************************************************************************

Hives Root String

004 HKCR pktc_appfile\Shell\Open\Command
003 HKCR pktc_appfile\DefaultIcon
001 HKCR .app
002 HKCR pktc_appfile

*****************************************************************************************************************************************************************

R.K. ID Key Value Type

001 HKCR\.app\Default pktc_appfile REG_SZ
002 HKCR\pktc_appfile\Default pcapp REG_SZ
003 HKCR\pktc_appfile\DefaultIcon\Default \Windows\pcshell.exe,-112 REG_SZ
004 HKCR\pktc_appfile\Shell\Open\Command\Default "\Windows\pcshell.exe" %1 REG_SZ

*****************************************************************************************************************************************************************

ID S. Shortcut Name Installed at Points to

001 PocketC Runtime.lnk \Windows\Start Menu\Programs pcshell.exe

*****************************************************************************************************************************************************************

*****************************************************************************************************************************************************************

INF file rebuilt : "PocketC.INF"

*****************************************************************************************************************************************************************

[Version]
Signature = "$Chicago$"
CESignature = "$Windows CE$"
Provider = "Orbworks"

[CEStrings]
Appname = "PocketC"
InstallDir = "%CE2%" ; (%CE2%)

[CEDevice]
ProcessorType = 686
Unsupported Platforms = "HPC","JUPITER","PALM PC2"
VersionMin = 3.0
VersionMax = 3.0

[SourceDisksNames]
2 = ,"Dir2",,.\Windows

[SourceDisksFiles]
pcshell.exe = 2 ; 001
"pcshellv2.exe" = 2 ; 002
pkcnet.dll = 2 ; 003

[DefaultInstall]
AddReg = ClesRegistre
CEShortcuts = RaccourcisCourts
CopyFiles = CopierVersDir00

[CopierVersDir00] ; (%CE2% : \Windows)
pcshell.exe,,,0x40000003
"pcshellv2.exe",,,0x40000003
pkcnet.dll,,,0x40000003

[DestinationDirs]
CopierVersDir00 = 0, %InstallDir%
RaccourcisCourts = 0, %InstallDir%

[Strings]
reg_path00 = pktc_appfile\Shell\Open\Command
reg_path01 = pktc_appfile\DefaultIcon
reg_path02 = .app
reg_path03 = pktc_appfile

[ClesRegistre]
HKCR,%reg_path02%,Default,0x00000000,pktc_appfile
HKCR,%reg_path03%,Default,0x00000000,pcapp
HKCR,%reg_path01%,Default,0x00000000,"%InstallDir%\pcshell.exe,-112"
HKCR,%reg_path00%,Default,0x00000000,"""%InstallDir%\pcshell.exe""" %%1

[RaccourcisCourts]
%AppName% Runtime.lnk, 0, pcshell.exe, %CE11% ; (\Windows\Start Menu\Programs)

Here's the download cab in question:
https://www.hpcfactor.com/scl/1068/OrbWorks/PocketC_Runtime/version_...
pkpc310.PPC310_x86.CAB
And I attached the extracted cab

Edited by torch 2023-01-21 7:50 AM




Attachments
----------------
Attachments New folder.zip (88KB - 0 downloads)
 Top of the page
I dunk for bananas Page Icon Posted 2023-01-21 4:16 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
701
Location:
Europe
Status:
You need imgdecmp.dll and zlib.dll, have you added those?
 Top of the page
torch Page Icon Posted 2023-01-21 4:18 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Okay, I will. Do they go into /Windows
and do I need to register all of the dlls with regsvrce?
 Top of the page
I dunk for bananas Page Icon Posted 2023-01-21 4:27 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
701
Location:
Europe
Status:
You can just put them in the same folder as the PocketC files, and you don't need to register them
 Top of the page
torch Page Icon Posted 2023-01-21 5:05 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Okay so I’ll make a cab installer for x86 pocketc.
Do I need to mess with the registry ?

Or just make those files you mentioned all go to /windows ?
Or where is the default directory where the files are supposed to go?

Also do all Pocketc programs work or is it just some of them ?

Edited by torch 2023-01-21 5:06 PM
 Top of the page
I dunk for bananas Page Icon Posted 2023-01-21 5:11 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
701
Location:
Europe
Status:
You don't need to do anything with the registry, all CE versions after 4.2 require the extra imgdecmp.dll and zlib.dll since those are no longer included as part of the OS, as of CE 5. The two DLLs should go in the same directory as the other PocketC files.

All Pocket C programs will work!
 Top of the page
torch Page Icon Posted 2023-01-22 3:15 AM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Thank you!
I finally got it mostly working.
Right now I can:
1-use any PocketC app that has a cab installer
But
2-I can't use any that just use an .app file
So looking at the inf file for the cab installer, it looks like I need to make some registry keys to make it associate .app files with PocketC.

Here's the inf file:
Show spoiler...
[Version] 
Signature = "$Chicago$" 
CESignature = "$Windows CE$"
Provider = "Orbworks"

[CEStrings]
Appname = "PocketC"
InstallDir = "%CE2%" ; (%CE2%)

[CEDevice]
ProcessorType = 686
Unsupported Platforms = "HPC","JUPITER","PALM PC2"
VersionMin = 3.0
VersionMax = 3.0

[SourceDisksNames]
2 = ,"Dir2",,.\Windows

[SourceDisksFiles]
pcshell.exe = 2 ; 001
"pcshellv2.exe" = 2 ; 002
pkcnet.dll = 2 ; 003

[DefaultInstall]
AddReg = ClesRegistre
CEShortcuts = RaccourcisCourts
CopyFiles = CopierVersDir00

[CopierVersDir00] ; (%CE2% : \Windows)
pcshell.exe,,,0x40000003
"pcshellv2.exe",,,0x40000003
pkcnet.dll,,,0x40000003

[DestinationDirs]
CopierVersDir00 = 0, %InstallDir%
RaccourcisCourts = 0, %InstallDir%

[Strings]
reg_path00 = pktc_appfile\Shell\Open\Command
reg_path01 = pktc_appfile\DefaultIcon
reg_path02 = .app
reg_path03 = pktc_appfile

[ClesRegistre]
HKCR,%reg_path02%,Default,0x00000000,pktc_appfile
HKCR,%reg_path03%,Default,0x00000000,pcapp
HKCR,%reg_path01%,Default,0x00000000,"%InstallDir%\pcshell.exe,-112"
HKCR,%reg_path00%,Default,0x00000000,"""%InstallDir%\pcshell.exe""" %%1

[RaccourcisCourts]
%AppName% Runtime.lnk, 0, pcshell.exe, %CE11% ; (\Windows\Start Menu\Programs)


I wanted your help so we could make an official x86 cab installer for PocketC and use HPC:Factor's cabmaker to do so.
So how do I add those registry keys into the cab installer?

Also, unrelated: after this, we can try and make a cab installer for CE 5.0 MIPS too!
 Top of the page
torch Page Icon Posted 2023-01-23 12:14 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Correct I’m fine with one at a time.
PocketC sounds pretty easy since i already got it mostly working. Is there a way to import an inf file into cab maker ? I need those registry keys replicated so I can make an x86 cab. The cab I made works just doesn’t have the registry enablement for .app files themselves
Edit camie you can move this reply into the pocketc x86 thread. I just wanted to make sure you saw it first.

Edited by torch 2023-01-22 4:46 PM
 Top of the page
C:Amie Page Icon Posted 2023-01-23 12:15 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,974
Location:
United Kingdom
Status:
There isn't an import on CABMaker, but you can add basic type registry settings on the UI.

 
HKCR,%reg_path02%,Default,0x00000000,pktc_appfile  
HKCR,%reg_path03%,Default,0x00000000,pcapp
HKCR,%reg_path01%,Default,0x00000000,"%InstallDir%\pcshell.exe,-112"
HKCR,%reg_path00%,Default,0x00000000,"""%InstallDir%\pcshell.exe""" %%1

All of that is doable in CABMaker
 Top of the page
torch Page Icon Posted 2023-01-23 4:23 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Sorry I know, it’s just that’s kinda gibberish to me. I don’t know how to write those settings into cab maker.
 Top of the page
C:Amie Page Icon Posted 2023-01-23 4:40 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,974
Location:
United Kingdom
Status:
Like this



(Untitled.jpg)



Attachments
----------------
Attachments Untitled.jpg (92KB - 0 downloads)
 Top of the page
torch Page Icon Posted 2023-01-23 5:07 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Thank you, I did exactly that in CabMaker, but I still get error that there's no app to open the files, and to run that program first
 Top of the page
torch Page Icon Posted 2023-02-02 2:05 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Can you (when you have a chance) pleaseeeee make us a cab for this one

 Top of the page
C:Amie Page Icon Posted 2023-02-03 12:21 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,974
Location:
United Kingdom
Status:
You want me to use the x86 files from the bottom of:
https://www.hpcfactor.com/scl/1068/OrbWorks/PocketC_Runtime/version_...

and apply the above registry settings?

Is that it?
 Top of the page
torch Page Icon Posted 2023-02-03 12:28 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
Correct but I couldn’t get it to associate with the settings you had marked
So maybe you can copy the settings from the hpc2000 arm pocketc runtime and use them for the x86 PocketPC cab. Maybe there’s a registry difference between ce shell and ppc shell?
So basically:
Extract inf from the hpc2000 build for the registry
Use that info for the x86 PocketPC build
Rebuild cab
(There is not x86 HPC2K build just ppc) but that program does open on x86)
 Top of the page
1 2 3
Jump to forum:
Seconds to generate: 0.234 - Cached queries : 54 - Executed queries : 30