|
Administrator H/PC Oracle Posts: | 17,633 |
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 ---------------- PoomDbSetup.dll (4KB - 2 downloads) PoomDbSetup-2.dll (4KB - 1 downloads) |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
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
|
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
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... |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
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 |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
Location: | United Kingdom | Status: | |
| Maybe I see the problem, v3?
It should display some ok / cancel dialogues too. Attachments ---------------- PoomDbSetup-3.dll (4KB - 2 downloads) |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
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... |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
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. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
Location: | USA | Status: | |
| okay, what would be the exact path to the temp folder?
\temp? |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
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. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
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. |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
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...) |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
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... |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
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 ---------------- PoomDbSetup-4.dll (5KB - 2 downloads) |
|
|
|
Global Moderator H/PC Guru Posts: | 7,182 |
Location: | USA | Status: | |
| |
|
|
|
Administrator H/PC Oracle Posts: | 17,633 |
Location: | United Kingdom | Status: | |
| No, something went wrong, it's branched down the installation failed line of the code, it just de-installed itself. |
|
|