CUdev-Bob

Hi all,

I'm trying to migrate all my device projects to run on Mobile 6.0, as our customers are requesting to use those devices when available. My projects have all been built in VS2005 and target the PPC2003 devices. Since I don't have an actual device, I installed the WM 6.0 SDK Refresh to get the Device Emulator 2.0, and I have run into a couple of issues:

(1) My existing CABS won't run on the DE2.0... I get a simple message that the installation was unsuccessful... nothing more. Whey would my CABS open up fine on in DE1.0, but not 2.0 What's changed NOTE that I can copy the individual files over to the emulator (exe's and dll's), and the applications run fine, I just can't install these files from the CAB....the CAB's were built using the CAB Builder project is VS2005.

(2) Since WM 6.0 now comes with SQL Server Compact Edition in ROM, I don't have to deploy the SQL CABS I was doing in PPC2003. But how do I open the database on the device now I used to be able to open up with Query Analyzer, but now the file is not recognized on the emulator

(3) Why can't I have my .sdf database files in a directory on my PC, which is used as the storage card for the emulator My app won't run when using the storage card as the data store... it has to be in My Documents or another directory on the emulator itself

Sorry for all the questions, and I'm sure they're all emulator related. But since that's all I have to work with right now, I wasn't expecting this much trouble when testing my apps out in WM 6.0. Thanks in advance for your help guys.

-bob




Re: Device Emulator General CAB file won't install on emulator 2.0

Ilya Tumanov

1. PPC 2003 CABs should install on WM 6.0 unless it's WM 6.0 Standard (AKA SmartPhone). Different CAB format is used on these. To create CAB for a SmartPhone make sure to check ¡°Compress¡± box in CAB¡¯s project. This CAB and everything in is also needs to be signed and it would be compatible with all WM 6.0 variations but not with PPC 2003.

2. Install SQL CE QA CAB (but not the main engine CAB).

3. Because there's an issue with "storage card" emulation AFAIK. That won¡¯t affect actual device.






Re: Device Emulator General CAB file won't install on emulator 2.0

cu-blenge

Thanks for the reply Ilya...

If you could follow up on a couple of points, how do I 'sign' my CAB and all files in it This must be something new in 6.0 for securities Also, do you know where that QA cab is located I did a quick search in on my box for it, and I came up with some sqlce30 CABS, but nothing that 'looked' like it was a QA cab.... thanks again for the quick response.

-bob






Re: Device Emulator General CAB file won't install on emulator 2.0

Ilya Tumanov

You pay signing authority to do that, e.g. see this. You can use SDK certificate during development.

No, there's nothing new for WM 6.0, it was around since SP 2002 (and WM 5.0 for PPC).

QA CAB is located in the same folder as other SQL CE CABs. It has QA inside but it does not have ¡°QA¡± in the name. See this for SQL CE CAB names.






Re: Device Emulator General CAB file won't install on emulator 2.0

cu-blenge

Okay, so I have been messing around with the securities on the emulator, and I used the Security Config Manager power toy to turns all securities off on the emulator. I would think this would allow me to run the CAB now I still get the message "Installation of Application.CAB was unsuccessful". Do I still have to sign the CAB and all files in it if securities are off Am I dealing with a bigger problem here with how the CAB was built






Re: Device Emulator General CAB file won't install on emulator 2.0

cu-blenge

I have my application files wrapped up into a CAB file, built in VS2005. When I deploy the CAB to an actual device (PPC2003SE), the CAB installs correctly by simply tapping the CAB filename. It also worked when deploying to emulator 1.0 (which I don't have anymore because I install Mobile 6.0 SDK, which puts 2.0 on my box).

But, when I deploy the CAB to the device emulator 2.0, it won't install. I get message of "Installation of application.cab unsuccessful"... nothing more. So what's up

I have signed the CAB and all files in it with the SamplePrivDeveloper.pfx, via the CabSignTool in the Mobile 6.0 SDK, and signing it didn't seem to do any good. So then I used the Security Config Mgr powertoy to set the Security Off on the emulator, so that signatures/certs won't be an issue, and that didn't help either. The CAB just won't install. I have seen a couple other posts out there that sound similar, but no clear answers. Can anybody help Thanks in advance for the support. I can let you know what the exact security settings show in the powertoy if need be.






Re: Device Emulator General CAB file won't install on emulator 2.0

Ilya Tumanov

Please do not duplicate threads. Merging...

Did you do this: make sure to check ¡°Compress¡± box in CAB¡¯s project






Re: Device Emulator General CAB file won't install on emulator 2.0

cu-blenge

Yes, it is marked True for Compress... and the OSVersionMax is 6.99...






Re: Device Emulator General CAB file won't install on emulator 2.0

cu-blenge

Okay, got it figured out... it's really hokey, but nonetheless, I better post it in case somebody else is doing the same thing.

In our Smart Device Cab Project, we actually had the ProductName property for the project set as MyApplications\NewDeviceApp2... this installed fine on PPC2003SE devices, and would actually create a new folder under the %InstallDir% (most commonly the Program Files folder), titled MyApplications, and then the NewDeviceApp2 directory would be created to house all the files needed for that application. This was our way of getting around having to manually edit the .inf file after each time the CAB was built by VS2005, so that we could have all of our NewDeviceApp programs under on common directory that was ours.

BUT, in Mobile 6.0, when we tried to use the same CAB files, the '\' is not allowed or recognized for whatever reason.... so the CAB installation failed. By taking out the '\', the CAB installs fine, just not with the directory path that we would like. So now I'm on another search to figure out how we can preserve that path specification without having to manually edit the .inf file.

Cheers,

bob






Re: Device Emulator General CAB file won't install on emulator 2.0

Ilya Tumanov

Manually edit the INF or add a batch file to do it for you automatically, don¡¯t use any more hacks. The one you¡¯ve used already cost you what¡­ two weeks