|
Post by SR on Jul 22, 2004 7:45:18 GMT -5
Hi
How can I extract from zip file which have path information hardcoded. The problem I am facing is that I created backup of some files on user system on which he has three drives c:\ d:\ e:\. He has windows installed on E:\ and program accordingly took backup. It is importrant that I also backup paths and strore them in zip. I cannot use relative paths.
Now when he tried to restore it on a system with only one drive c:\ program failed.
Does there is a callback or function which is called before extraction is done giving the string name containing path. I can then modify the string easily.
Or there is some other easy solution ?
Regards
SR
|
|
|
Post by Kevin on Jul 22, 2004 12:54:57 GMT -5
Are you storing volume information in the zip also? That is, do you have StoreVolumes := True. Or are you just storing complete path?
The OnStartUnZip event will allow you to change the filename, including the path. The FName is a var parameter allowing you to change it.
procedure OnStartUnZip(Sender: TObject; FileIndex: Integer; var FName: string; var Skip: Boolean);
Kevin
|
|