PocketMatrix forums

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

Installer for all CPU's?

Right now, I have three 3Mb installers for the Nutcracker, one for ARM, SH3 and MIPS. Each installer contains all the art. Would it be possible to create a single installer that works for all devices? So that it would install the MIPS exe on MIPS devices, and the ARM exe on ARM devices and so on?

This would be really handy, since it would be a single download - Less confusion, better download figures on CNet, and so on.
Would it be possible to do it in Common Executable Format?

I don't know what the performance hit would be like, but it might be worth a look.

http://msdn.microsoft.com/msdn-files/027/001/449/cefsdk.exe
I heard CEF is not exactly fully debugged yet, so I'm rather hesitant to use it. Besides, I assume there will be a speed penalty, and despite the fact that Crystal Balls is not exactly a CPU intensive game, I would rather have it run as smooth as possible.
why is this better? why would people want to download three versions at 9mb when they can get just the one?

i cant believe you'd do this just for better download figures.
Well I was hoping to have a single download with JUST the game executable in threefold. In the case of the Nutcracker: The installer for the full game is 2.7Mb. That's 2.5 for data, and 0.2 for the game.exe. Adding two more executables to it (for SH3 and MIPS) would make it around 3Mb. And 3Mb is quite acceptable, compared to 2.7Mb, when it saves people thinking about what CPU they have (I know you know your CPU, but lots of people find this already too hard, so it's probably better if they don't play the Nutcracker, but I'm getting off topic now), and when I get better CNet download figures (breath).
Yeah, you can do that! I have one installer for all device types, and it shares HTML and image files that are common to all installations.
You have a [SourceDisksNames] section. Use that only for common files. Then have a section specific to each processor type [SourceDisksNames.STRONGARM], where you specify the path for the various device specific files.
You do the same for [SourceDisksFiles], where you specify the path ID for each file. You then create one for each processor [SourceDisksFiles.STRONGARM]. You also create [Files] sections. I use [Files.Common] for shared files, then use sections for each device [Files.STONGARM] for the binaries. Finally create [DefaultInstall] sections for each processor, and assign CopyFiles appropriately:

[DefaultInstall.STRONGARM]
CopyFiles = Files.Common, Files.STRONGARM
[DefaultInstall.SH3]
CopyFiles = Files.Common, Files.SH3

Dan East
That all refers to your .inf file of course...

Dan East
Birdiestyle · 09 Nov 2001, 14:23 UTC
Just outta curiousity, will that make 3 cab files each with the data in it, so in fact you will have the 9MB of data..

I was going to investigate whether or not you can put one CAB file as the Data, which would not be Processor specific, and one cab for each of the EXE files, or does the Application Manager quit once it finds the first relevant CAB file in the setup.ini file... hmmmm..... I would guess this would be possible. But then I would think you would have a completely different INF file for the data.

????


My nutcracker.inf file contains the sections you mentioned. I execute cabwiz like this:
cabwiz nutcracker.inf /cpu ARM MIPS SH3
This results in three cabs, and since EasySetup takes one at a time, this results in three executable installers. What am I doing wrong? How can I compile to a single cab?
Okay, I had a brain lapse. That does of course create 3 seperate cab files. Here's another possible solution. Make a seperate CAB installer for all the shared files. Have your device-specific (your main) installer install that CAB file. Now, it may be possible that your main installer can directly launch and install the second cab file. If not, then you can create a very simple setup.dll that the installer will execute on the device. You can the just have that DLL CreateProcess or ShellExecuteEx the second CAB file to install it.

Dan East
Hm, OK. I think it's strange that there doesn't exist an installer tool that simply takes care of the CPU identification... Anyway, with all those new ARM devices, the problem will soon be gone. :) I got a suggestion by e-mail to simply put three installers in a single zip. Because of the huge amounts of identical data, this zip would be quite small. Crystal Balls is 2Mb unzipped, so I expect a 1Mb installer (it's all uncompressed .tga data), and I will thus indeed go for the zip file, even if it would be 3Mb. In fact, if it would be 1Mb, people might consider that 'suspiciously small'. :)
EZInstaller compresses it up with gzip when it creates the installer exe. I don't know if you're using that or not.

Dan East
Birdiestyle · 10 Nov 2001, 10:53 UTC
  Hmmmm... I assumed that you were using a zip file already...
 Did you attempt to make four CAB files 1 each for the different EXE's and one that is device
non-specific, or isnt this possible... That way even your zip file would still only contain the compressed data once!
 
This would depend on two things,

1. You can make a CAB file that gets installed for all Processors thru the Inf (or its own INF).

2. When the App Mgr is reading the setup.ini file, it would continue after finding a CAB file that matches, to check the rest of the CAB files for another match, possibly in a 2nd component section.

If this doesnt work though you can simply call the Installer with your original INI file from your setup program, and then call an additional
INI file dealing only with the data.

But I would guess by the way that the INI file is setup that more than one [Component] can be installed, one component being the data and one being the actual program!!

Cool

B
I'll be happy if this mess will be over..

future versions of pocketpc will only support arm processors, and hence cef will be ditched as well..

but then, that still might take a while :-)