PocketMatrix forums

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

Installer Questions

Should a game install its directory into "Program Files/Games", or just "Program Files"?

When making the .inf file to make my .cab file, if I want to include an entire directory full of many files, is that possible? Or must I list them separately?

Actually, is there a way to install directories onto the device? My game uses a small directory structure.

Is there a way to tell the installer that the entire program directory can be removed during uninstall, even if new files have been created in it?
OK my installer seems to be working.

As bad luck would have it, I hit exactly the two problems outlined here:

http://www.baysidestudios.com/Developer/A040203a.cfm

That is, in the setup.ini file, I used a path to the CAB files (apparently not allowed) and I used a "funny" version number.

In this case I wanted to use version 1.0.0 but apparently that is not allowed. I'm OK with 1.0 for now, but what happens when I want to release version 1.0.1?
Version is not related to your app but to the CEAppManager and must be set to 1.0

You can find some information on how to setup a .cab for your application here. The article is focused on ce 2.1 apps but the info still userful with ce 3.0 and 4.0 apps.
How does one write an installer that doesn't copy the cab file onto the PPC before expanding all the files? Our game will be 15MB which would require 30MB free on the device... since the CAB is copied first.

Thanks for any info!

Cheers,

rcp
I seem to have my installer working decently.

However, even though I don't run my game or enter the directory, and even if I soft reset after installing, if I then uninstall, it has trouble deleting some directories and I have to manually remove them.

Why is this?

I install into Program Files\Games\Concentrix.

The directory which is troublesome is Program Files\Games\Concentrix\High Scores.

That directory contains six subdirectories named 0 through 5, which also are created by the installer.

The high scores directories are the last ones in the .inf file.
If your game creates "new" files to the subdirectories, the uninstaller will not be able to delete the subdirectory upon uninstallation because its contents have changed. Up to now, I couldn't find a way to "force" remove a subdirectory even when its contents have changed.
But I haven't even run the game yet. Just install then try to uninstall.

What if I install all my files, but my game overwrites them or recreates them? Will they still delete even though my game has updated them, because they were originally installed by the installer?
Another oddity...

I just did an uninstall, and it removed all my files but left all the directories. But, this time it didn't even warn me that it was leaving things behind, to remove them manually.
I wouldn't worry about it. If someone comes back and wishes to re-install your game, it will be nice to have their saves or high scores still intact. It's actually a nice feature to have. Sometimes I may uninstall a game I'm tired of, or to make room. Then months later I feel like playing it again. And all of my previous scores and saves are still there.

If the uninstaller were to remove them, then I would have had to KNOW to manually copy over my saves/scores beforehand or lose them forever. :( If it doesn't remove them, I can do it manually if it bothers me. They're usually small files anyway.

On another note, if the folders are empty, then why are you creating them with the installer? Why not create them at runtime when a save or score file is actually created and needed. Then if the person uninstalls before that, there won't be any residual folders remaining.

JJB
I thought if I created everything in the installer, then when the time came to uninstall, it would all be removed, even if the game had changed files in the meantime.
If you leave a save file there, just remember to have a version number that you check, and if possible even have a conversion routine that runs the first time in subsequent versions (or just write out a new file at worst).

I've seen games that change their save file format in newer versions but don't do any checking, they just happily load an older file, try to parse it, and cause all sorts of mayhem.
I have a version in my save files.

In my past life I used to write enterprise applications. Can't kick old habits like versioning files. :-)