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

Review: NEC Mobile Terminal S1596-01

1 2 3 4 5 6
C:Amie Page Icon Posted 2014-01-06 3:04 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
Try this. It will execute CeCreateDatabase_POOM.exe in \windows\temp
It will then delete CeCreateDatabase_POOM.exe

There is no checking for the file or any error handling!

Edit: In THEORY version 2 has a check for the file in the file system before attempting to execute CeCreateDatabase_POOM.exe and if either it doesn't exist of fails to run, it will trigger the CAB to self uninstall.



Attachments
----------------
Attachments PoomDbSetup.dll (4KB - 2 downloads)
Attachments PoomDbSetup-2.dll (4KB - 1 downloads)
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 4:51 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
The setupdll requires a specific format to work with a cab file...or at least OCPs cab manager software..

----------------------------------------------------------------------------------

A Setup DLL is simply a DLL that exports the following four pre-defined functions:

Install_Init
Install_Exit
Uninstall_Init
Uninstall_Exit

The Install_Init function is called just before the application is installed onto the device, while the Install_Exit function is called once installation is complete. Likewise, the Uninstall_Init function is called just before the application is uninstalled, while the Uninstall_Exit function is called after the application has been un-installed.

There are a few important things to keep in mind when developing a Windows CE Setup DLL:

· The DLL must be written and compiled using either eMbedded Visual C++ 3.0 or eMbedded Visual C++ 4.0.
· The DLL must be compiled for each processor type supported by the application.
· Since the compiled DLL is processor-specific, a separate CAB file must be created for each supported processor type.

---------------------------------------------------

Your's wouldn't import into the cab file. I have no idea what all that stuff is...

BTW, wrote to TecAce to ask them about CEPims/Gemini PIMS...this is what they wrote back...as expected:

Hello Mr. Hawley

First of all, thank you for interesting in our cePIMS. We are sorry that we don’t support cePIMS for Windows CE anymore. Sorry for this inconvenience.

Thanks.
TecAce Solutions, Inc.

Manager

OkKyeom Lee

Office: 02-2104-0370
Mobile: 010-3136-4759
www.tecace.com






 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 5:01 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
You know I got to thinking...another way to handle this to fully automate the procedure would be to write a simple batch file and have it installed into the \Windows\startup folder. It then could run the .exe and afterwards delete it. But then you would need some way to delete the batch file..or maybe you could just rename it so it wasn't a batch file any longer and would just be ignored during startup....I don't...just thinking...
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 5:12 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
Yes, I thought of that, but they would have to reboot the device...

The DLL IS written in eVC++ 3 and DOES expose Install_Init, Install_Exit, Uninstall_Init, Uninstall_Exit o.O

It is for CE 2.11 compiled as StrongARM
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 5:24 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
Maybe I see the problem, v3?

It should display some ok / cancel dialogues too.



Attachments
----------------
Attachments PoomDbSetup-3.dll (4KB - 2 downloads)
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 5:33 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
Whatever you did...that worked!

So I deleted the .exe from the file, added the dll you created which I guess does the same thing?

Attached is the latest CAB file...EDIT - DELETED SINCE IT WAS WRONG

And it did give me some of those OK requestors...so yahoo. That makes things really simple for anyone, and means you have to change your CESD significantly...
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 6:15 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
No, no. The CAB needs to be modified to copy the CeCreateDatabase_POOM.exe into the Temp folder

At the end of the install, it should search for CeCreateDatabase_POOM.exe in the temp folder and execute it automatically. It will then exit.

If you get a successful test I'll modify the notification messages to say something sensible. Presumably we need to get people to reboot, or does it work immediately?

The CESD already has a section on using your CAB, it just needs to be updated in the DLC.
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 6:36 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
okay, what would be the exact path to the temp folder?

\temp?
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 6:55 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
Isn't is \Windows\Temp ?

Edit:
I thought that Temp had a %CE#% shortcut, but I cannot seem to find it. So assuming that it doesn't, you tell me what path you want to use and I'll hard code it.
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 6:57 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
On my CE5 tablet, there is a temp folder at the root level...so that is what I set the cab install to. If a user doesn't have a temp folder, it will create one, so that is no problem. I don't have a temp folder in the windows folder however on this device.

So edit your dll to look for the executable in the \temp folder.
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 7:01 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
Your call? I thought it was under Windows on older devices.

It could be dropped on the desktop for all that it matters, the idea is that it will be deleted after execution (that's the theory, whether file locks get in the way...)
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 7:06 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
Let's go with root \temp location. I just checked my old MP 790 with HPC2000 and that where it is on that machine...and the same on my 900C and on this NEC Terminal tablet.

Plus I've owned a couple of weird CE devices that wouldn't let you into the Windows folder, or made everything in there hidden...
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 7:30 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
OK!

Version 4, this is hard coded to seek out \Temp\CeCreateDatabase_POOM.exe

It is now coded to wait for CeCreateDatabase_POOM.exe to finish before trying to delete CeCreateDatabase_POOM.exe. If it cannot find CeCreateDatabase_POOM.exe it will tell you.

Good luck!



Attachments
----------------
Attachments PoomDbSetup-4.dll (5KB - 2 downloads)
 Top of the page Quote Reply
Rich Hawley Page Icon Posted 2014-01-06 8:50 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,164
Location:
USA
Status:
Well, it all seemed to install and run just fine...check out the screenshots...but..uh....complated?



(CAPT0000.jpg)



(CAPT0001.jpg)



(CAPT0003.jpg)



Attachments
----------------
Attachments CAPT0000.jpg (42KB - 0 downloads)
Attachments CAPT0001.jpg (37KB - 0 downloads)
Attachments CAPT0003.jpg (11KB - 0 downloads)
 Top of the page Quote Reply
C:Amie Page Icon Posted 2014-01-06 8:51 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,207
Location:
United Kingdom
Status:
No, something went wrong, it's branched down the installation failed line of the code, it just de-installed itself.
 Top of the page Quote Reply
1 2 3 4 5 6
Jump to forum:
Seconds to generate: 0.312 - Cached queries : 73 - Executed queries : 12
Server Time now is: Tuesday, 31 January 2023 - 0:48