Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Nicholas Pierce
Do you not know the name of your EXE at compile time? You could hard code the name of the executable, or you could use the preprocessor. $(var.ProjectName.TargetFileName) will get you the file name of the output of the project with name 'ProjectName' if you've set up the references in Visual Stud

Re: [WiX-users] Get only the name of a file by its id

2014-10-28 Thread Nicholas Pierce
If you want just the file name, I think you'd need to write a custom action to get that. Why are you interested in just the file name of a particular file? Nicholas On 27 October 2014 13:32, soldag wrote: > Hello, > > I am currently working on an installer for my software using the WiX > tools

Re: [WiX-users] trying to add XML element to a web.config file

2014-08-21 Thread Nicholas Pierce
Hi, I think you'll want to add a VerifyPath attribute to the XmlConfig element that creates the 'add' element so that it doesn't pick up the existing element called 'add'. It will need to be something like "//configuration/location/system.webServer/modules/add[[]@name='Blah, Blah.2.2013'[]]", whi

Re: [WiX-users] Installing framework 4.0 update

2014-01-17 Thread Nicholas Pierce
You can use Burn to chain together 3rd party pre-requisites and your MSI(s). Detecting hotfixes is the tricky part. I believe the cannonical way to do so is via WMI, which you can do if you write your own bootstrapper application (BA) for Burn, but if you only want to use what comes out of the bo

Re: [WiX-users] SQL CE 4.0 Package

2013-06-27 Thread Nicholas Pierce
Just write the version number, with a v in front and no quoting (i.e. SQL_SERVER_VERSION >= v10.50). Nicholas On 27 June 2013 16:06, snowkoan wrote: > Cool. So we have a Burn variable called SqlCe40Version, that contains a > version string like "14.0.0.0" > > How can we do a version comparison

Re: [WiX-users] No rollback after error in a bunde (wix 3.7)

2013-06-08 Thread Nicholas Pierce
get tracked. > > > On Thu, Jun 6, 2013 at 3:01 AM, Nicholas Pierce < > nicholas.pie...@permasense.com> wrote: > > > I think that exit code from SQL Server means that the RebootRequiredCheck > > rule failed, so something further up the chain or something that was > >

Re: [WiX-users] No rollback after error in a bunde (wix 3.7)

2013-06-06 Thread Nicholas Pierce
I think that exit code from SQL Server means that the RebootRequiredCheck rule failed, so something further up the chain or something that was installed previously is wanting a reboot. You can disable the reboot required check with the /skiprules=RebootRequiredCheck parameter, or you can force Bur

Re: [WiX-users] Can wix monitor child process ?

2013-06-05 Thread Nicholas Pierce
You would need to write your own ExePackage that ran the EXE that did the relevant calling and waited around for child processes. If an error does occur, you'll need to return a non-zero exit code as that's how Burn determines whether a package succeeded or not. If the exe you're currently callin

Re: [WiX-users] Managed Bootstrapper - Access Payload file from WPF Code

2013-06-05 Thread Nicholas Pierce
code looks like this: > > > public RelayCommand LicenseTermsCommand > { > get > { > if (licenseTermsCommand == null) > { > licenseTermsCommand = new RelayCommand(() => > Process.Start("EULA

Re: [WiX-users] Managed Bootstrapper - Access Payload file from WPF Code

2013-06-05 Thread Nicholas Pierce
If it's a payload in your BootstrapperApplicationRef, then it'll be extracted to the same directory as the burn engine and your Managed BA assembly, so you should be able to get the path from that. Nicholas On 4 June 2013 17:34, Carlos Hdz Taylor wrote: > Hello guys, > > > I am new to WiX, I ju

Re: [WiX-users] Install Net Framework 4.5 as prerequisite only if on windows 7-8 and not installed

2013-05-17 Thread Nicholas Pierce
If you want some more logic to the installation of pre-requisites, I think you'll need to make another Burn Bundle to act as your pre-requisite. That's what we had to go to get .net 4 and Windows Imaging Component to install as a prerequisite on Server 2003. This will just be a super simple bundl

Re: [WiX-users] Wix Burn 3.7 & .NET 4.5

2013-01-11 Thread Nicholas Pierce
if .NET 4.0 isn't > installed. The detect condition is false, so it seems like there is > something strange going on in there. > > -Thom > > -----Original Message- > From: Nicholas Pierce [mailto:nicholas.pie...@permasense.com] > Sent: Friday, January 11, 2013 4:31 AM >

Re: [WiX-users] Wix Burn 3.7 & .NET 4.5

2013-01-11 Thread Nicholas Pierce
Does Burn not just install .NET 4.5 in your bootstrapper's main apply phase along with everything else? If you put it first in your chain, it should get installed first by Burn. Nicholas On 10 January 2013 21:19, Thomas Hammond wrote: > I updated my bundle to use .NET 4.5 as the Mba Prereq. Th

Re: [WiX-users] custom action to run SQL Server Express EXE

2013-01-07 Thread Nicholas Pierce
> > Steve > > -Original Message- > From: Nicholas Pierce [mailto:nicholas.pie...@permasense.com] > Sent: January-07-13 11:44 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] custom action to run SQL Server Express EXE > &g

Re: [WiX-users] custom action to run SQL Server Express EXE

2013-01-07 Thread Nicholas Pierce
Why not just use Burn to run the SQL Server installers? Nicholas On 7 January 2013 16:31, Steven Ogilvie 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 dedic

Re: [WiX-users] Alter Packages in Custom BA? [BURN]

2012-12-11 Thread Nicholas Pierce
You can use the InstallCondition attribute of MsiPackage (or ExePackage or MsuPackage) to control whether a package is installed. If InstallCondition evaluates to true, then the package is installed, but if InstallCondition evaluates to false, then the package will be removed unless it's permanent

[WiX-users] Chain Burn bootstrappers and reboots

2012-11-23 Thread Nicholas Pierce
Hi, I have written a ManagedBootstrapperApplication that requires .net 4.0. On Windows 2003 and XP, this requires the Windows Imaging Component, so I've used another Burn bootstrapper to install the appropriate prerequisites as per this post: http://windows-installer-xml-wix-toolset.687559.n2.nab

[WiX-users] Burn Rebooting after installing an MSU Package

2012-10-18 Thread Nicholas Pierce
Hi, We're starting to use Burn in our software deployment, which includes SQL Server 2008 R2, which requires Windows Installer 4.5, which on Windows Server 2008 and Windows Vista requires an MSU package to be installed. In my WiX source files I have: ... ... ... These get picked up correctly