Ok, so I compressed the cabs using cabwiz, I am using ezsetup to compress and install the program, but now It will only install in the on device dir(in main memory). I don't think the problem is inherent in the installer, It seems to me that the cab is what directs it where to install. Is there anyway I can make this dynamic??
Thank you,
Dylan Ryan
As far as I know, you merely place the CAB file in the storage card (\Storage Card). At least that's all that ActiveSync does when you choose to install to a card.
Do you mean that you want to force the installer to go outside main memory using .inf file options?
During the normal install process the user gets the choice 'install [name of program] using the default application install directory?' If you say no to this question you get a drop down list 'Select Destination Media' with main memory or storage card as the options.
Conan, I must be doing something wrong because it gives me that option, I can do it, but then it just goes ahead and installs in the directory that the cab uses.....
reading my own article on making a setup file
http://www.sundialsoft.freeserve.co.uk/sddocs013.htm I see that the locations are controlled as follows
[DestinationDirs]
Exefiles = 0, %InstallDir% where label Exefiles points to on CE
Bmpfiles = 0, %InstallDir%\images where label Bmpfiles points to on CE
Helpfiles = 0, %CE2% where label Helpfiles points to on CE
Startmenu = 0, %CE11%
DefaultDestDir = 0, %InstallDir%
Is your problem in this area? If you want to post or email me the .inf file I will have a look
So, heres my file, as far as I can see I specify the dir, but it will only install on main memory.
[Version]
Signature = "$Windows NT$"
Provider = "DR Creations"
CESignature = "$Windows CE$"
[CEStrings]
AppName="Particle Panic"
InstallDir=%CE8%\%AppName%
[Strings]
sh3_cpu = 10003
sh4_cpu = 10005
mips_cpu = 4000
strongarm_cpu = 2577
armcpu = 1824
reg_path = Software\%AppName%
[CEDevice]
UnsupportedPlatforms = "Jupiter","HPC" ; Does not support pltfrm1
VersionMin = 3.0
VersionMax = 3.01
[CEDevice.ARM]
ProcessorType = %arm_cpu%
[CEDevice.MIPS]
ProcessorType = %mips_cpu%
[CEDevice.SH3]
ProcessorType = %sh3_cpu%
[CEDevice.SA]
ProcessorType = %strongarm_cpu%
[DefaultInstall]
CopyFiles = Files.Application, Files.Shared
AddReg = RegSettings
CEShortcuts = Shortcuts
[SourceDisksNames]
1 = ,"Common files",,Platform
[SourceDisksNames.ARM]
2 = ,"ARM files",,ARMRel
[SourceDisksNames.MIPS]
2 = ,"MIPS files",,MIPSRel
[SourceDisksNames.SA]
2 = ,"ARM files",,ARMRel
[SourceDisksNames.SH3]
2 = ,"SH3 files",,SH3Rel
[SourceDisksFiles]
pop.wav =1
bonus.wav =1
music.mod =1
settings.inf =1
Particle Panic.exe =2
GD101.dll =2
gx.dll =2
[DestinationDirs]
Files.Application = 0,%CE8%\%AppName% ;\Target\AppName
Files.Shared = 0,%CE2% ;\Windows
Shortcuts = 0,%CE2%\Help ;\Windows\Help
[Files.Application]
"Particle Panic.exe",,,0x00000001 ; rename, and warn if skipped
"pop.wav",,,0x00000001
"bonus.wav",,,0x00000001
"music.mod",,,0x00000001
"settings.inf",,,0x00000001
[Files.Shared]
"GD101.dll",,, 0x20000000 ; rename, and mark as shared
"gx.dll",,, 0x20000000
[Shortcuts]
%AppName%,0,Particle Panic.exe,%CE14%
[RegSettings]
;HKLM,Windows CE Services\Synchronization\Objects\YourAppSync,Store,0,\Windows\DevYourAppSync.dll
I think your destination dir is wrong. I looked through all the CE .inf files I have & almost all use something beginning with InstallDir=%CE1%\ and only a few small samples used CE8
Can you try changing [CEStrings] and [DestinationDirs]
Files.Application = 0,%CE1%\%AppName% ;\Target\AppName
CE8 just puts it in the programfiles/games dir. I found a list of them at:
http://www.sundialsoft.freeserve.co.uk/cabinfo.htm
%CE1% \Program Files
%CE2% \Windows
%CE3% \Windows\Desktop
%CE4% \Windows\Startup
%CE5% \My Documents
%CE6% \Program Files\Accessories
%CE7% \Program Files\Communication
%CE8% \Program Files\Games
%CE9% \Program Files\Pocket Outlook
%CE10% \Program Files\Office
%CE11% \Windows\Programs
%CE12% \Windows\Programs\Accessories
%CE13% \Windows\Programs\Communications
%CE14% \Windows\Programs\Games
%CE15% \Windows\Fonts
%CE16% \Windows\Recent
%CE17% \Windows\Favorites
Ok, I started thinking about it, and my problem was here:
Files.Application = 0,%CE8%\%AppName%.
I should have put %installdir% instead of ,%CE8%\%AppName%. the one with the Appname was the way the microsoft one came, but ifyou specify the directory there, it will not change it if you choose storage card.
Its amazing all the little quirky things you end up learning trying to develop for the pocket pc. Good thing I started small, the bigger projects should get easier:). Or atleast ill allready know some of the quirks.... Thank you for replying to this topic and helping me out. I really appreaciate it. Hopefully Ill be able to help others that come along who have the same problems i did.