If you leave the Component Id null. Windows will install the file but
not track it, uninstall it or repair it.
http://msdn.microsoft.com/en-us/library/aa368007(v=vs.85).aspx
So you can use it and then remove it.
The alternative is to stream the file out of the binary table, for
which you could probably find some code examples, but it's more work,
code, and no obvious advantage over letting Windows install it for
you.
Hopefully the new DB will be backed up - occasionally they do get lost
and that's bad enough without needing to uninstall and reinstall the
product to re-create it in the absence of the script.
---------------
Phil Wilson


On Fri, Dec 19, 2014 at 9:00 AM, Brian Enderle <bria...@gmail.com> wrote:
> Is it possible to access a file (in this case a SQL script) during the
> install process from a Custom Action without installing the file first to
> the hard drive?
>
> Currently I am doing this to access the file:
>
> FileInfo _file = new FileInfo(session.CustomActionData["Directory"] +
> "01_Create Database.sql");
>
> but one of our requirements is to not leave this and other files behind
> after installation.  I could delete it before installation is complete but
> I think it would be cleaner if I could just read teh file from the
> installer package.
>
>
> Brian
>
> If you can't explain it simply, you don't understand it well enough.  -
> Albert Einstein
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to