Hey,
We (Overloaded) want to be able to install applications from a website directly to the XDA (over the air, no PC needed). The only thing that Pocket Internet Explorer will execute after download is an executable. Sadly, PocketSetup, the tool we use to generate our setups, doesn't let us generate such an exe, just cabs and PC based installers.
So I wrote a little proggie: It's a 4Kb executable that copies it's contents after that 4Kb boundary to a .cab file in the root on the device. So basically, you just append the cabinet file to the executable and you have your PocketPC installer. After copying to cabinet file to the root, that cabinet file is 'opened' (ShellExecute() api call), wich installs the app and destroys the cabinet file. So far so good. Now there's one problem left: The original .exe file... I can't delete it, since it's running.
Does anyone know how I can get rid of it? I was thinking, perhaps I can install an empty file over it using the cab file, but I'm afraid the directory that PIE downloads to is not the same on all devices... Any good ideas?
In the meantime I'll add some compressions, those installers are huge.
- Jacco.
We (Overloaded) want to be able to install applications from a website directly to the XDA (over the air, no PC needed). The only thing that Pocket Internet Explorer will execute after download is an executable. Sadly, PocketSetup, the tool we use to generate our setups, doesn't let us generate such an exe, just cabs and PC based installers.
So I wrote a little proggie: It's a 4Kb executable that copies it's contents after that 4Kb boundary to a .cab file in the root on the device. So basically, you just append the cabinet file to the executable and you have your PocketPC installer. After copying to cabinet file to the root, that cabinet file is 'opened' (ShellExecute() api call), wich installs the app and destroys the cabinet file. So far so good. Now there's one problem left: The original .exe file... I can't delete it, since it's running.
In the meantime I'll add some compressions, those installers are huge.
- Jacco.