.inf file setting to not overwrite files during install

J

jeremymartinson

I have an .inf file that needs to specify that a data file is not
overwritten. This is obviously required during an auto-update process
for our application.

This link: http://msdn2.microsoft.com/en-us/library/ms938406.aspx
seems to indicate that there is a way to do it, but so far I have
tried COPYFLG_NO_OVERWRITE and STILL the .cab file installation
overwrites my datafile.

Using an inf and the cab wizard, is it possible to install from a .cab
file but not overwrite some datafiles?

Thanks.
 
G

Guest

Jeremy,

Are you doing something like this in your .inf for the data file:
[CopyFilesSection]
"MyDataFile.dat",,,0x00000010

What platform (WinCE, WM, etc) are you working with?

-Nino
 
J

jeremymartinson

Thanks for your response.

Yes, I am using the following line to attempt to NOT overwrite:

config.txt,,,0x00000010

What we have found is that on all devices PPC2002, WM2003 and WM2005
it functions as expected...EXCEPT on the Dell x51v. On that device,
the file is always overwritten.

I know this seems bizarre--but we have several devices in the office
and we have tested and confirmed this scenario multiple times. Our of
our largest clients uses Dell x51v devices exclusively--so we MUST
find a solution to this problem.

Thanks again...please let me know if you have additional insight.

Jeremy,

Are you doing something like this in your .inf for the data file:
[CopyFilesSection]
"MyDataFile.dat",,,0x00000010

What platform (WinCE, WM, etc) are you working with?

-Nino

--
Nino Benvenuti
Device Application Development MVPhttp://nino.net/blog

I have an .inf file that needs to specify that a data file is not
overwritten. This is obviously required during an auto-update process
for our application.
This link:http://msdn2.microsoft.com/en-us/library/ms938406.aspx
seems to indicate that there is a way to do it, but so far I have
tried COPYFLG_NO_OVERWRITE and STILL the .cab file installation
overwrites my datafile.
Using an inf and the cab wizard, is it possible to install from a .cab
file but not overwrite some datafiles?
 
N

Nino Benvenuti

I'm not certain why the X51v is not respecting the COPYFLG_NO_OVERWRITE
flag; it seems like a bug. I did find a post[1] in the MSDN forums that is
germane; however, since the solution did not work for that poster, I'm less
than confident it will work for you.

One workaround that comes to mind is to add a setup dll to your cab. In the
Install_Enter function, copy your data file to a temp location; in the
Install_Exit function copy the data file back (overwriting the new data
file). I know it is not ideal, but it should mitigate your issue.

-Nino

[1]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=182901&SiteID=1

--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


Thanks for your response.

Yes, I am using the following line to attempt to NOT overwrite:

config.txt,,,0x00000010

What we have found is that on all devices PPC2002, WM2003 and WM2005
it functions as expected...EXCEPT on the Dell x51v. On that device,
the file is always overwritten.

I know this seems bizarre--but we have several devices in the office
and we have tested and confirmed this scenario multiple times. Our of
our largest clients uses Dell x51v devices exclusively--so we MUST
find a solution to this problem.

Thanks again...please let me know if you have additional insight.

Jeremy,

Are you doing something like this in your .inf for the data file:
[CopyFilesSection]
"MyDataFile.dat",,,0x00000010

What platform (WinCE, WM, etc) are you working with?

-Nino

--
Nino Benvenuti
Device Application Development MVPhttp://nino.net/blog

I have an .inf file that needs to specify that a data file is not
overwritten. This is obviously required during an auto-update process
for our application.
This link:http://msdn2.microsoft.com/en-us/library/ms938406.aspx
seems to indicate that there is a way to do it, but so far I have
tried COPYFLG_NO_OVERWRITE and STILL the .cab file installation
overwrites my datafile.
Using an inf and the cab wizard, is it possible to install from a .cab
file but not overwrite some datafiles?
 

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