PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Single file installer

Hello!

Does anyone know how to make a single file installer for a GapiDraw application?

Eg. A installer that installs different stuff depending on the target pocket pc.

My game will only support the ARM cpu, so thats not a problem. But since I use Gapidraw I need different gapidraw dlls for ppc 2002 and mobile 2003.

I have managed to do two separate install files, using cabwiz and ezsetup.

But since Handango and Pocket Gear only seems to supports one single file, I need to make one which supports both platforms.

Ok I know there is an other way to register two different applications:

* my app [ppc 2002]
* my app [mobile 2003]

But it seems kind of lame, and really not what I want.

Regards Okku
One simple solution: Include all the various installer versions in a ZIP file, let the customer download that and choose the right one (you might have a single executable that starts up and asks for their device type, then executes the proper installer for them).

Another option: multiple listings on Handango and Pocketgear. That's personally what I've done, and what I say a great many people do.

What you ask to do is of course possible, I don't know the answer (although I did it with one product, I don't really recall all the pertinent details, and now it's just a batch file for me to run)... It just may be more efficient use of your time to go an easier route, like the above options.
Pejo Software - Per · 08 Oct 2003, 17:58 UTC
It is not that hard to make a single file installer. You could use EzSetup to create a single install file from your cab-files. Cab files is generated with Cabwiz and this is described in the EVC help file. There is also a sample distributed with the SDK (about a black jack game).

I personally have a batch file that copies the exefiles and builds the cab files with Cabwiz and then calls EzSetup to generate the install file.

Generally you do not need separate files for PPC2000 Arm, PPC2002 and PPC2003. In most cases a PPC2000 build will run just fine on a 2002 and a 2003 device.
Generally you do not need separate files for PPC2000 Arm, PPC2002 and PPC2003. In most cases a PPC2000 build will run just fine on a 2002 and a 2003 device.


That is of course true, however, at least for Win2K3 GD-based apps, there is the optimized version of the DLL, and I think that was really the concern, the different DLLs rather than the EXE build.
Pejo Software - Per wrote:
It is not that hard to make a single file installer.


I can make the CAB files.

But how do I get Ezsetup to generate a exe thats installs the correct CAB?

Do you have some example of a .ini file that does this?
Pejo Software - Per · 09 Oct 2003, 19:10 UTC
This is in my ini file:

[CEAppManager]
Version = 1.0
Component = Beshaped
[Beshaped]
IconFile = beshaped.ico
IconIndex = 0
DeviceFile = Beshaped.exe
CabFiles = beshaped.PPC30_SH3.cab,beshaped.PPC30_MIPS.cab,beshaped.PPC30_ARM.cab,beshaped.PPC2002_ARM.cab,beshaped.PPC2003.cab

This is in my bat file:

copy ..\ArmRel\Beshaped.exe .\PPC30_ARM
copy ..\ArmRelease2002\Beshaped.exe .\PPC2002_ARM
copy ..\MIPSRel\Beshaped.exe .\PPC30_MIPS
copy ..\SH3Rel\Beshaped.exe .\PPC30_SH3
copy ..\PPC2003\ARMV4Rel\Beshaped.exe .\PPC2003
cabwiz beshaped.inf /cpu ppc30_arm ppc2002_arm ppc30_sh3 ppc30_mips PPC2003
ezsetup -l english -i beshaped.ini -r readme.txt -e eula.txt -o BeshapedSetup.exe

P.S. Yes I know the names are inconsistent.
Ok thank you.

I have read your postings and then I read throug some manuals, and I think I know how to do it now.

The platform derictives must be in the cab file, I thought somehow that the Application manager was doing the decision by the script in .ini file, which is not the case.

I will try to make a three cab file installer.
Two cabs that just install correct dll by plattform (ppc 2002 or mobile 2003) and one that installs the rest of the data.

Thanks :)
If you get that to work, let me know how you did it.

Last time I tried that, ezsetup would exit after the first cab was installed. So I had to duplicate all of the audio and backgrounds in each of the cab files (rather than having them in their own cab).

-John
It seems like the ezsetup exe quits after installing the first cab. Which is unfortunate, but it also seems that if you execute two CAB files you get two programs to uninstall.

One way to solve both issues is to create a Setup.dll, the way I have understood they work, you could install two or more copies of a file, for instance your exe, and when the setup dll method, Install_Exit is called you can just delete/rename/copy the files you need for the given platform/cpu to complete the installation.

Have not tried it, but will if I don’t find any better method.
Doh! Anon post by mistake...
Hello,

I did do a setup.dll, and it seems to work.

Since the only difference for me right now is the different gapidraw dlls for pocket pc and mobile 2003, my setup file just checks which version of ce its running under and copies the appropriate dll.

For anyone who like to test the installer, goto:

http://www.minigolfchallenge.com/download.aspx

/Okku