deploying application with ceappmgr throws strange errormessage

W

werner fallnit

I´m currently working on an application that deploy my application and

CE framework through an .msi file. The problem is when ceappmgr.exe is
called and wants to deploy my application I get the following message:
Error copying File: Cannot copy the file. Make sure the mobile device
is connected, that the mobil device has space abailable and is not
write protected, and that all setup programs on the device have been
completed.


I have enough free space on the ppc.
When I deploy my application only through the .cab file using
activeSync, without the use of an .msi file, it works perfectly. also
deploying
only cf works well.


maybe someone can give me a hint on what I´m making wrong



i used the tutorial from
http://www.codeproject.com/netcf/compframe4.asp


my .cab and .ini files are all in the same folder within the activesyn
folder.


i use the following method to invoke CeappMgr:


private void RunAppManager(string arg)
{
// get path to the app manager
const string RegPath = @"Software\Microsoft\Windows\" +
@"CurrentVersion\App Paths\CEAppMgr.exe";


RegistryKey key =
Registry.LocalMachine.OpenSubKey(RegPath);
string appManager = key.GetValue("") as string;


if (appManager != null)
{
// launch the app
Process.Start( String.Format("\"{0}\"", appManager),
String.Format("\"{0}\"",
arg)).WaitForExit();
}


}


RunAppManager(arg) is called twice, once for every .ini
RunAppManager(Path.Combine(installPath,
CEAPPMGR_INI_FILE));
RunAppManager(Path.Combine(installPath,
CEAPPMGR_INI_FILE_CE_FRAMEWORK))


..ini for CE Framework
[CEAppManager]
Version = 1.0
Component = NETCF


[NETCF]
Description = .NET Compact Framework v2.0
CabFiles=NETCFv2.ppc.armv4.cab,
NETCFv2.wm.armv4i.cab,
NETCFv2.wce5.mipsii.cab,
NETCFv2.wce5.mipsiv.cab,
NETCFv2.wce5.sh4.cab,
NETCFv2.wce5.armv4i.cab


..ini for my application


[CEAppManager]
Version = 1.0
Component = NIMSAFE


[NIMSAFE]
Description = nimSafe
CabFiles=nimsafe_PPC.ARM.CAB
 
G

Guest

Set these keys on the PC and install again:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AppMgr]
"ReportErrors"=dword:1
"SilentInstall"=dword:0

-Chris


I´m currently working on an application that deploy my application and

CE framework through an .msi file. The problem is when ceappmgr.exe is
called and wants to deploy my application I get the following message:
Error copying File: Cannot copy the file. Make sure the mobile device
is connected, that the mobil device has space abailable and is not
write protected, and that all setup programs on the device have been
completed.


I have enough free space on the ppc.
When I deploy my application only through the .cab file using
activeSync, without the use of an .msi file, it works perfectly. also
deploying
only cf works well.


maybe someone can give me a hint on what I´m making wrong



i used the tutorial from
http://www.codeproject.com/netcf/compframe4.asp


my .cab and .ini files are all in the same folder within the activesyn
folder.


i use the following method to invoke CeappMgr:


private void RunAppManager(string arg)
{
// get path to the app manager
const string RegPath = @"Software\Microsoft\Windows\" +
@"CurrentVersion\App Paths\CEAppMgr.exe";


RegistryKey key =
Registry.LocalMachine.OpenSubKey(RegPath);
string appManager = key.GetValue("") as string;


if (appManager != null)
{
// launch the app
Process.Start( String.Format("\"{0}\"", appManager),
String.Format("\"{0}\"",
arg)).WaitForExit();
}


}


RunAppManager(arg) is called twice, once for every .ini
RunAppManager(Path.Combine(installPath,
CEAPPMGR_INI_FILE));
RunAppManager(Path.Combine(installPath,
CEAPPMGR_INI_FILE_CE_FRAMEWORK))


..ini for CE Framework
[CEAppManager]
Version = 1.0
Component = NETCF


[NETCF]
Description = .NET Compact Framework v2.0
CabFiles=NETCFv2.ppc.armv4.cab,
NETCFv2.wm.armv4i.cab,
NETCFv2.wce5.mipsii.cab,
NETCFv2.wce5.mipsiv.cab,
NETCFv2.wce5.sh4.cab,
NETCFv2.wce5.armv4i.cab


..ini for my application


[CEAppManager]
Version = 1.0
Component = NIMSAFE


[NIMSAFE]
Description = nimSafe
CabFiles=nimsafe_PPC.ARM.CAB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top