Problem running .NET app by tapping saved file

M

Michael Crago

Hi there,

I have a .NET CF app that installs into a folder under Program Files under
PocketPC 2002 its install directory.

This app saves a file under My Documents. I am in the process of setting the
registry entries to apply a custom icon to the saved file (this works) and
running the app when the saved file is tapped (this doesn't).

It is the latter step that is having problems. I believe the registry entry
is correct (HKCR\whatever\Shell\OpenCommand = "\Program
Files\whatever\app.exe %1"). In fact if I copy the app to the Windows
directory and change the registry entry accordingly it opens the app just
fine when I tap the saved file.

However, in its install directory under Program Files, attempts to run the
app via tapping the saved file fail with "The application 'whatever' or one
of its components is missing".

My analysis is that when installed under Program Files, the app fails to
find the Compact Framework dlls necessary to startup correctly. This is
PocketPC 2002 and the Compact Framework was installed on the device
separately. It may work correctly when the framework is in ROM under 2003
but I haven't been able to test this yet.

I still need a workaround for 2002 devices. Is something missing from the
app to indicate where to find the Compact Framework dlls? DoI need to place
a shortcut to some or all of the dlls in the install directory as part of
the installation process?

Any suggestions gratefully received.

Thanks...

Robert
 
P

Paul G. Tobey [eMVP]

Think about the space in the path (both around the parameter *and* the
install directory). You might correct this by arranging the registry to put
quotes around %1 and the program name and making sure that the command line
parsing code does the right thing with the quotes when the program launches.

Paul T.
 
M

Michael Crago

Paul,

You're right (of course). How embarrassing !

Thanks heaps...

Robert
 

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