WIX edit binary file in custom action
I’m trying to do the following:
In my product.wxs I have the following:
During setup I want to edit “MyDb.sql”, write changes to it and save it back, so wix can run it during install.
what’s the best approach?
In my custom action I have the following:
// Up to this point it works and I read my sql text from .sql file
it’s when I try to update (not sure if i’m going it right) it fails.
You can use this custom action to extract the binary data. You would then have to make your changes and resave it. Not sure how you would resave it back to binary as I have not done that before – I have used it to stream temporary data into the license agreement. This should give you a good start.