PC Review


Reply
Thread Tools Rate Thread

Conditionally installing files

 
 
Tom Libby
Guest
Posts: n/a
 
      8th Nov 2007
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmlsbCBTdGVsemVs?=
Guest
Posts: n/a
 
      8th Nov 2007
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.


"Tom Libby" wrote:

> 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
>
>
>

 
Reply With Quote
 
Tom Libby
Guest
Posts: n/a
 
      8th Nov 2007
Thanks I will check it out

"Bill Stelzel" <Bill (E-Mail Removed)> wrote in message
news:A1D569A8-BD3A-40B5-9115-(E-Mail Removed)...
> 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.
>
>
> "Tom Libby" wrote:
>
>> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help files for installing SP3 5tulips Windows XP General 14 6th Feb 2010 09:45 PM
installing .dll files in Win XP Silvia Windows XP General 13 4th Jun 2009 10:31 PM
Re: how to conditionally include html files in asp.net page Eliyahu Goldin Microsoft ASP .NET 0 17th Dec 2006 09:40 AM
Files & Folders lost after installing 180GB drive to non-compliant m/b. Poss. to recover files/folders? Peter Storage Devices 3 8th Apr 2004 04:01 AM
Not installing files Steve Windows XP General 2 29th Dec 2003 12:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:50 AM.