Why not just use Burn to run the SQL Server installers?

Nicholas

On 7 January 2013 16:31, Steven Ogilvie <steven.ogil...@titus.com> wrote:

> Hi,
>
> In my Database dialog I am allowing the user to choose whether to use
> their own copy of SQL Server or use a dedicated SQL Server Express 2012.
>
> If they choose the dedicated SQL Server on Next Click I run a custom
> action that determines if the OS is 32 or 64 bit and run the appropriate
> SQL Server Express 2012 installer (.exe) I also set up the command line
> parameters for Windows Authentication or SQL Server authentication etc...
>
> The only problem is that Burn caches the installer into a temp directory
> and I can no longer find my 2 SQL Server EXE's:
>
> const string sqlExpress2012X64 = "SQLEXPR_x64_ENU.exe";
> const string sqlExpress2012X86 = "SQLEXPR_x86_ENU.exe";
>
> var sourceDir = GetSessionProperty(session, "SourceDir", false);  //course
> this doesn't work since burn cache's the installer...
>
> var sourceExe = Is64BitWindows() ? sqlExpress2012X64 : sqlExpress2012X86;
> var cmdLineExe = sourceDir + sourceExe;
>
> I use ProcessStartInfo to execute the EXE and set up the command line
> parameter as well...
>
> If I run the .MSI (with the SQL exe's beside it) it runs perfectly... but
> using my BURN exe it fails since it cache's the .MSI into a temp folder and
> it can no longer find the .EXE's any idea on how to solve this?
>
> (I guess I would have to add the 2 SQL installers as binary files?)
>
> Thanks,
>
> Steve
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to