PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Conditionally installing files

Reply

Conditionally installing files

 
Thread Tools Rate Thread
Old 08-11-2007, 08:30 PM   #1
Tom Libby
Guest
 
Posts: n/a
Default Conditionally installing files


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
Old 08-11-2007, 10:30 PM   #2
=?Utf-8?B?QmlsbCBTdGVsemVs?=
Guest
 
Posts: n/a
Default RE: Conditionally installing files

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
Old 08-11-2007, 10:40 PM   #3
Tom Libby
Guest
 
Posts: n/a
Default Re: Conditionally installing files

Thanks I will check it out

"Bill Stelzel" <Bill Stelzel@discussions.microsoft.com> wrote in message
news:A1D569A8-BD3A-40B5-9115-F42D542D92C1@microsoft.com...
> 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off