PocketMatrix forums

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

Installer which can install onto CompactFlash?

How do you make an installer which can install onto CompactFlash?

At "install into default directory" I clicked No, but there was no option to change the install directory. But I don't have a CompactFlash so I don't know

Do I need to add something to the .inf file to enable the user to install onto CompactFlash.
I'm pretty sure that if Activesync doesn't find a storage card on PPC, it'll just install onto device regardless of clicking 'no' for 'Install in default blah..."
Conan · 13 Jul 2002, 19:55 UTC — Installing to CF card
When you have a card fitted you get choices of main memory or storage card. On devices with 2 card slots you get 3 choices. You took the correct option but without a card you can't see the options.

( many people miss this option & can't figure out how to install to storage cards so make it clear in your docs )
Just tried doing that on a Pocket PC with a CompactFlash card, however my install didn't install it onto CompactFlash. It wrote all the files to the normal location in \Program Files\Maze.

It made an empty directory called \Britcode Maze on the CompactFlash and put nothing there.

Am I doing something wrong with the %CEn% tags?


Code:

[Version]
Signature = "$Windows NT$"
Provider = "Britcode"
CESignature = "$Windows CE$"

[DefaultInstall]
CopyFiles = Files.Common
CEShortcuts = Shortcuts.All

[SourceDisksNames]
1 = ,,,"..\ARMRel"
2 = ,,,""

[SourceDisksFiles]
maze.exe = 1
gx.dll = 2

[DestinationDirs]
Files.Common = 0,%CE1%\%AppName%
Shortcuts.All = 0,%CE14%

[CEStrings]
AppName = Maze
InstallDir = %CE1%\%AppName%

[Files.Common]
maze.exe,,,0
gx.dll,,,0

[Shortcuts.All]
Maze,0,maze.exe


Conan · 13 Jul 2002, 21:36 UTC — correct .inf file
Almost certainly your .inf file is wrong if the PocketPC had a storage card & you took the option. As I'm 'brain dead' can you search for the earlier post a week or two back where this came up before. I don't think it's exactly the same but the final successful .inf should help
Add this line under CESTRINGS
InstallDir=%CE1%\%AppName%

and replace this line:

Files.Common = 0,%CE1%\%AppName%

with this line:
Files.Common = 0,%InstallDir%

*edit*
Ohh wait, put CE STRINGS at the top of your inf, otherwise it sees the wrong code first and will always put it on the device hence the %CE1%.

I had this EXACT problem I hope I explained good enough how to help.
Cool - that makes sense - didn't spot that!

Weird thing was I read the last thread last week, and didn't understand a word of it, now it makes perfect sense!

Anyone else using
Shortcuts.All = 0,%CE14%

To put shortcuts into \Start Menu\Programs\Games ?

Or it everyone being naughty and slipping it into the Start Menu to clutter it up!!
http://www.sundialsoft.freeserve.co.uk/cabinfo.htm Just for future reference that page is pretty damn good. Yeh I use CE14, I'd be pissed at any game that belived it was soo great it deserved the start menu :) I hate scrolling it!