Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

Conditionally installing files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom Libby - 08 Nov 2007 20:30 GMT
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
Bill Stelzel - 08 Nov 2007 22:30 GMT
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.

> 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
[quoted text clipped - 4 lines]
> Thanks
> Tom
Tom Libby - 08 Nov 2007 22:40 GMT
Thanks I will check it out

> Look at the documentation for the CopyFiles section of .inf files
> (http://msdn2.microsoft.com/en-us/library/ms913665.aspx). This describes a
[quoted text clipped - 14 lines]
>> Thanks
>> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.