Device Install problem - previous version of Windows Mobile software
I know I have seen the fix for this before, but I'm not sure where. I created a nice app for the PocketPC and decided to make a cab file for installing it on a few different PocketPC's (all had PocketPC Second Edition and where Dell Axiom).
When I put the cab file on the device and click it, the installation works, but I get the classic pop-up:
The program you have installled may not display properly because it was designed for a previous version of Windows Mobile Software.
I thought that VS2005 was going to fix this (and it probably has), but I can't seem to find out what the trick is do make the cab deployment not display this message.
Thanks,
[668 byte] By [
BigBoom] at [2008-1-28]
Thanks for the link, there is however one problem with the solution. If I change the MINVERSION key in the .ini file, when I remake the cab VS2005 recreates the .ini file with the 4.0 as MINVERSION. I tried coping the .ini file and the .cab file to the pocketpc and when I click the cab I still get the error. Is there somewhere in the Development machines registry or some ini file that I need to change this MINVERSION so that when I rebuild the cab the new MINVERSION gets in there?
Thanks
Yes, I created a new Smart Device Cab Project adn added it to my solution. I know it is not part of this thread, so maybe I should create a new thread. Due to basic power issues with the PDA (leave them uncradled for a week and bye, bye and programs) is there a way to install the program directly to a SD/Compact flash card. I know I can copy the program to the SD and just use that, but what about the .NET Compact Framework and other system files...
Thanks again for the response,
Ok, figured out that the minVersion can be set as a property for the Deployment project. BTW: It needs to be exactly 4.21. If you enter 4.3 the message still comes up. Now the remaining problem is the distribution of NETCF files. I made the Detected Dependencies files no longer excluded and set to install in the windows directory. When I run the .cab file everything goes through the motion of installing, but the application does not run, it doesn't even try to start when you click on it. If I take the NETCFv2.ppc.armv4.cab from C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\WindowsCE\wce400\armv4 and install that everything works, does that mean I am missing a dependancy (or should I say the wizard is missing it) or are the files just being installed in an incorrect directory....
The list of dependancy files is as follows:
microsoft.visualbasic.dll
microsoft.windowsce.forms.dll
mscorlib.dll
system.data.dll
system.dll
system.drawing.dll
system.windows.forms.datagrid.dll
system.windows.forms.dll
system.xml.dll
Thanks,
Apparently I shouldn't of shifted gears in this thread, so hear is the real answer when using the real answer for the version issue when using the Deployment project. The Minversion can be set to 4.21 in the properties window of the deployment project. Caution: if you set it to 4.3 the error still comes up.