views:

289

answers:

2

Hi all,

I've finally finished my killer app and now I've got a bit of an issue. I've created my cab file (builds fine and installs perfectly/runs perfectly on the PDA device) and now I'm trying to create my windows installer.

I've followed an MSDN article of how to create the installer (see here), however it seems to be missing some information, i.e. what's the format of the Ini file?

I have done some digging and I've come up with this Ini file content (where AppName is the name of my application):

[ceAppManager]
Version = 3.0
Component = AppName

[AppName]
Description = AppName
Uninstall = AppName
CabFiles = AppName.cab

Is there anything wrong with that? The installer installs successfully and I get the error:

Application manager cannot install this application on your mobile device due to an invalid setup file. Reinstall and try again.

I've got this working before on another application using ActiveSync. I am currently using Windows Mobile Device Center, but surely the installers should be the same? I am guessing there's something wrong with my ini file?

I would be happy even if someone could give me a link to a better setup guide to install a cab onto a PDA.

Thanks in advance.

A: 

The version number must be "1.0" not "3.0" as in your example. The CEAppManager section may also be case sensitive - I would assume it is anyway. Take a look at the MSDN docs.

ctacke
+1  A: 

Looking at your revised .INI file, it looks right on. It should work -- however, Vista and WMDC are strange birds. Is it possible you're trying load the .INI file into WMDC from a location that a "standard" user doesn't have permissions to?

I don't know where your Windows installer is extracting the files to, but perhaps try a User folder?

The only other thing I can think of is that the old .INI is somehow being "cached" by WMDC and not registering the new one (it seems like I might have run into this before). You might try removing the program entry from the Add/Remove Programs applet in WMDC and reinstalling your app.

CBono
Works fine on XP, must be a Vista issue.
GenericTypeTea