Hello Everyone,
I am trying to find a way to create a backup of the files before they are being overwritten by the MSI i am creating,
The simple way is to have a script which does the copy, But from all the examples i have seen, They are actually using file names to do the copy,
While i am searching for something more generic - Like retrieving the file names from the MSI Database (select * from file) and perform the copy
based on that output.

What i noticed is that the result doesnt return all the files, trying to figure out what is wrong with the vbscript code:
Set view = Database.OpenView("SELECT * FROM File")
Set FSO = CreateObject("Scripting.FileSystemObject")
View.Execute
Do
Set Record = View.Fetch
If Record Is Nothing Then Exit Do
FSO.CopyFile "C:\Program Files\Dalet\DaletPlus\bin\" & Record.StringData(1), "c:\x\"
Loop
Set View = Nothing
Set FSO = Nothing
Wscript.Quit(0)

(I also noticed this doesnt return paths (sometimes i replace a file under subdirectory of INSTALLDIR)

Thanks,
Eran.