You can't do that. The MSI is readonly. What are you trying to accomplish?
-----Original Message----- From: Eitan Behar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 09:47 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Modifying the MSI file at runtime using DTF Hi, I am trying to modify the MSI file at runtime, basically, I am running a DTF Custom Action (immediate, after InstallInitialize) that extract certain Binary files, modify them, and save them back into the MSI file. The problem is that I cannot save the files back to the binary table. I am using the sample provided with the DTF documentation: db = new Database(session["DATABASE"], DatabaseOpenMode.Direct); ... session["DATABASE"] gives me the actual msi file (from the Windows\Installer folder). But, I am getting an ugly error: Microsoft.Deployment.WindowsInstaller.InstallerException: The system cannot open the device or file specified. Database="C:\WINDOWS\Installer\e659b.msi" Looks like the database is locked. Please, I would like to know if what I want to do is doable, and if yes, what is the correct approach? Thanks in advance, Eitan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users