[WiX-users] Access files in CustomAction without installing the files

2014-12-19 Thread Brian Enderle
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

Re: [WiX-users] Access files in CustomAction without installing the files

2014-12-19 Thread John Cooper
- From: Brian Enderle [mailto:bria...@gmail.com] Sent: Friday, December 19, 2014 11:01 AM To: WiX Users Subject: [WiX-users] Access files in CustomAction without installing the files Is it possible to access a file (in this case a SQL script) during the install process from a Custom Action without

Re: [WiX-users] Access files in CustomAction without installing the files

2014-12-19 Thread Phil Wilson
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