1. . Because this is a feature on 2008R2, this method fails and says need to enable the feature to install the framework.
http://blogs.msdn.com/b/sqlblog/archive/2010/01/08/how-to-install-net-framework-3-5-sp1-on-windows-server-2008-r2-environments.aspx And a previous discussion: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-NET-3-5-on-Windows-2008-R2-td7580032.html And I believe this is the feature Rob was speaking of: http://sourceforge.net/p/wix/feature-requests/643/ In short, burn currently doesn't gracefully support this. One could modify the WixStdBA to detect the OS level, and if the OS is 2008R2 then enable the feature instead of invoking the default installer. From a quick dive, it looks to me that a MBA will fall back to WixStdBA using a mbapreq theme, but I can't seem to find the specific fragments they are feeding in for installing 3.5 (I can find 4.0+). From a high level, I don't know how Wix identifies which prerequisite maps to the .Net framework. If I were a betting man, they are relying on the .Net framework install requesting a reboot. And that it's the first PackageGroup/PackageGroupRef in the chain. Some people have fallen back to using a stub exe with command line parameters to enable the feature. You then can use conditions to only invoke the stub on your target OS's (I would include this in the PackageGroup you created for the 3.5 framework). 2. BA's should not modify system state for anything other than what the engine already does. If you need to modify system state, use a lite weight MSI with your registry keys in them and property drive any variables you need to assign. Jacob -----Original Message----- From: Nan Zang [mailto:naz...@microsoft.com] Sent: Tuesday, February 12, 2013 5:10 PM To: General discussion for Windows Installer XML toolset. (wix-users@lists.sourceforge.net) Subject: [WiX-users] questions on bootstrapper Hi, I am working on a setup program which needs to meet the following requirements. I tried to use bootstrapper to accomplish those, but, didn't figure out a way to do so. Thank you in advance for any help or hint. 1. Is that possible to install a dependency automatically which will be used by the customize BA UI? For example, my customize UI is written in WPF and will require .Net 3.5 is enabled on 2008R2. My question is, is there possible to detect if the feature is enabled, and if not enable it automatically? I am using the .Net 4 bootstrapper sample code as an example, and found the installation of the packages will be invoked when the MSI is launched. That doesn't meet my requirement, since I need it before the UI. Is that possible to invoke the installation action early? 2. Is there possible to launch Bootstrapper as elevated? I am following the UAC guide to create a manifest for my bootstrapper.exe, as follows, but whenever I add the following line to the wixproj, and the dialog asking for admin permission shows up but the BAUX doesn't get launched any more. Is there any guidance how to deal with this? My custom UI setup requires write a bunch of regkeys. <Target Name="AfterBuild"> <Exec Command=""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\mt.exe" -manifest $(ProjectDir)$(TargetName).exe.manifest -outputresource:$(TargetDir)$(TargetFileName)" /> </Target> Thank you, Nan ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users