views:

353

answers:

1

When you use visual studio to deploy to a windows mobile device it automatically picks the correct cab file and installs the compact framework onto that device. All without requiring a restart.

If you pick the same cab file and install it using active sync once the install is completed you are required to restart the device.

Why? And how can you so a silent install like visual studio does.

+1  A: 

Actually you aren't required to restart it. That's just a bug in the CAB. You can safely ignore it (though it is irritating).

Edit: You can suppress the message by passing in the /noui or /silent switch (depending on your target) to wceload.

ctacke
Its good to know I can ignore it, However visual studio can make it not happen at all. I want to know how to do that.
trampster
I just updated my answer. Studio does it by passing in the /noui switch. This prevents the "already installed" message as well.
ctacke
currently I use CEAPPMGR.exe from the pc to do the deployment. If I still want to trigger the install from the PC would I need to use the RAPI to call wceload? or is their a way to do it thru CEAPPMGR
trampster
Unfortunately CEAppMgr doesn't have any facility to pass arguments to wceload. You'll have to do it via RAPI.
ctacke
Just as a note - VS uses a CoreCon client to do this, not RAPI. You could follow a similar pattern and have your desktop app act as a remote tool.
ctacke