Conditionally installing files

  • Thread starter Thread starter Tom Libby
  • Start date Start date
T

Tom Libby

I have a cab file for an app I wrote using VS 2005 for CE 5. Is it possible
to have the files installed only if they do not exist on the device. I want
to store my database on the Flash drive so they do not get deleted during a
hard reset, when the app is installed again I do not want to overwrite the
database.

Thanks
Tom
 
Look at the documentation for the CopyFiles section of .inf files
(http://msdn2.microsoft.com/en-us/library/ms913665.aspx). This describes a
flag (COPYFLG_NO_OVERWRITE) that may do what you want. I don't know if you
can set this flag from within Visual Studio but you could always edit the
generated .inf file and rebuild the cab by hand.
 

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

Back
Top