Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
I think the issue is actually that Burn is putting the full path to the executable to prevent PATH searching and opening a potential security vulnerability. Full paths are always safer. On Tue, Feb 5, 2013 at 1:58 PM, Neil Sleightholm n...@x2systems.com wrote: I think that is probably related to burn being 32 bit and dcim running from 64 bit system folder so the current environment is not passed to the process. May be the code could support expansion of a [SystemFolder64] property. Neil -Original Message- From: Eric Schultz [mailto:eschu...@outercurve.org] Sent: 05 February 2013 20:46 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement For me, running dism.exe only worked if I put in the full path. Not sure why that is. Eric On Tue, Feb 5, 2013 at 2:22 PM, Neil Sleightholm n...@x2systems.com wrote: DCIM should be on the path so adding C:\Windows\system32 shouldn't be necessary. -Original Message- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: 04 February 2013 22:09 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Depending on C:\Windows\system32 would break on non-default installs... -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Monday, February 04, 2013 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- 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 -- Eric Schultz, Developer Advocate, Outercurve Foundation http://www.outercurve.org eschu...@outercurve.org cell: 920-539-0404 skype: ericschultzwi @EricOutercurve -- 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
DCIM should be on the path so adding C:\Windows\system32 shouldn't be necessary. -Original Message- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: 04 February 2013 22:09 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Depending on C:\Windows\system32 would break on non-default installs... -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Monday, February 04, 2013 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
For me, running dism.exe only worked if I put in the full path. Not sure why that is. Eric On Tue, Feb 5, 2013 at 2:22 PM, Neil Sleightholm n...@x2systems.com wrote: DCIM should be on the path so adding C:\Windows\system32 shouldn't be necessary. -Original Message- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: 04 February 2013 22:09 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Depending on C:\Windows\system32 would break on non-default installs... -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Monday, February 04, 2013 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- 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 -- Eric Schultz, Developer Advocate, Outercurve Foundation http://www.outercurve.org eschu...@outercurve.org cell: 920-539-0404 skype: ericschultzwi @EricOutercurve -- 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
I think that is probably related to burn being 32 bit and dcim running from 64 bit system folder so the current environment is not passed to the process. May be the code could support expansion of a [SystemFolder64] property. Neil -Original Message- From: Eric Schultz [mailto:eschu...@outercurve.org] Sent: 05 February 2013 20:46 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement For me, running dism.exe only worked if I put in the full path. Not sure why that is. Eric On Tue, Feb 5, 2013 at 2:22 PM, Neil Sleightholm n...@x2systems.com wrote: DCIM should be on the path so adding C:\Windows\system32 shouldn't be necessary. -Original Message- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: 04 February 2013 22:09 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Depending on C:\Windows\system32 would break on non-default installs... -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Monday, February 04, 2013 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- 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 -- Eric Schultz, Developer Advocate, Outercurve Foundation http://www.outercurve.org eschu...@outercurve.org cell: 920-539-0404 skype: ericschultzwi @EricOutercurve -- 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. ExeRunner can be downloaded at https://exerunner.codeplex.com/releases/view/101384. I hope this fulfills everyone's needs. Eric On Fri, Feb 1, 2013 at 2:28 AM, Hans ter Horst hoshis...@gmail.com wrote: Cheers Neil, Rob! I'll look into that later today and get back. Hans On Fri, Feb 1, 2013 at 8:37 AM, Neil Sleightholm n...@x2systems.com wrote: Take a look at ocsetup.exe; on Win2k8 you can run ocsetup.exe Netfx3 /norestart /quiet and it will install the feature. Win2012 might be the same but if it is like Windows 8 you are stuck as the features are not built-in (I haven't actually installed 2012 yet so don't know). If it is not ocsetup it could be dcim or pkgmgr. You can't call any of these directly from burn so I wrote shell app that I could embed in burn to call them with the correct command line (I never completely finished it as we decided it was easier to drop .NET 3.5 and go for .NET 4.0). This is the code I had but it was written in .NET so might not any good if 2012 doesn't have any .NET installed: namespace OcsRunner { using System; using System.Diagnostics; public class Program { public static int Main(string[] args) { var startInfo = new ProcessStartInfo(); startInfo.FileName = ocsetup.exe; startInfo.Arguments = String.Join( , args) + /norestart /quiet; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.UseShellExecute = false; var p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); return p.ExitCode; } } } Hope this helps. Neil -Original Message- From: Hans ter Horst [mailto:hoshis...@gmail.com] Sent: 01 February 2013 07:17 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Eric Schultz, Developer Advocate, Outercurve Foundation http://www.outercurve.org eschu...@outercurve.org cell: 920-539-0404 skype: ericschultzwi @EricOutercurve -- Everyone hates slow websites. So do we. Make your web
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Cool thanks :) -Original Message- From: Eric Schultz [mailto:eschu...@outercurve.org] Sent: February-04-13 4:30 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. ExeRunner can be downloaded at https://exerunner.codeplex.com/releases/view/101384. I hope this fulfills everyone's needs. Eric On Fri, Feb 1, 2013 at 2:28 AM, Hans ter Horst hoshis...@gmail.com wrote: Cheers Neil, Rob! I'll look into that later today and get back. Hans On Fri, Feb 1, 2013 at 8:37 AM, Neil Sleightholm n...@x2systems.com wrote: Take a look at ocsetup.exe; on Win2k8 you can run ocsetup.exe Netfx3 /norestart /quiet and it will install the feature. Win2012 might be the same but if it is like Windows 8 you are stuck as the features are not built-in (I haven't actually installed 2012 yet so don't know). If it is not ocsetup it could be dcim or pkgmgr. You can't call any of these directly from burn so I wrote shell app that I could embed in burn to call them with the correct command line (I never completely finished it as we decided it was easier to drop .NET 3.5 and go for .NET 4.0). This is the code I had but it was written in .NET so might not any good if 2012 doesn't have any .NET installed: namespace OcsRunner { using System; using System.Diagnostics; public class Program { public static int Main(string[] args) { var startInfo = new ProcessStartInfo(); startInfo.FileName = ocsetup.exe; startInfo.Arguments = String.Join( , args) + /norestart /quiet; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.UseShellExecute = false; var p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); return p.ExitCode; } } } Hope this helps. Neil -Original Message- From: Hans ter Horst [mailto:hoshis...@gmail.com] Sent: 01 February 2013 07:17 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Depending on C:\Windows\system32 would break on non-default installs... -Original Message- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Monday, February 04, 2013 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement Because burn will only run exes packaged in a release. It won't run arbitrary exes. -Original Message- From: Marc Fauser [mailto:marc.fau...@gmail.com] Sent: 04 February 2013 21:37 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement On 2013-02-04 22:29, Eric Schultz wrote: All, I've created a simple ExeRunner application that can be embedded into your bundle and then be called to run a command on the destination computer. To install .NET Framework 3.5 and less on Win 8, the entire command line would be: ExeRunner.exe C:\Windows\system32\dism.exe /online /norestart /enable-feature /featurename:netfx3 If the inner command fails, it's error code is returned. If you can call ExeRunner.exe, why can't you call dism.exe directly? Marc -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- 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
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Cheers Neil, Rob! I'll look into that later today and get back. Hans On Fri, Feb 1, 2013 at 8:37 AM, Neil Sleightholm n...@x2systems.com wrote: Take a look at ocsetup.exe; on Win2k8 you can run ocsetup.exe Netfx3 /norestart /quiet and it will install the feature. Win2012 might be the same but if it is like Windows 8 you are stuck as the features are not built-in (I haven't actually installed 2012 yet so don't know). If it is not ocsetup it could be dcim or pkgmgr. You can't call any of these directly from burn so I wrote shell app that I could embed in burn to call them with the correct command line (I never completely finished it as we decided it was easier to drop .NET 3.5 and go for .NET 4.0). This is the code I had but it was written in .NET so might not any good if 2012 doesn't have any .NET installed: namespace OcsRunner { using System; using System.Diagnostics; public class Program { public static int Main(string[] args) { var startInfo = new ProcessStartInfo(); startInfo.FileName = ocsetup.exe; startInfo.Arguments = String.Join( , args) + /norestart /quiet; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.UseShellExecute = false; var p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); return p.ExitCode; } } } Hope this helps. Neil -Original Message- From: Hans ter Horst [mailto:hoshis...@gmail.com] Sent: 01 February 2013 07:17 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
I think someone created a custom exe to handle this scenario in the archives. Be nice to have a more ideal solution built in but no one has coded that yet. On Thu, Jan 31, 2013 at 11:16 PM, Hans ter Horst hoshis...@gmail.comwrote: I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Take a look at ocsetup.exe; on Win2k8 you can run ocsetup.exe Netfx3 /norestart /quiet and it will install the feature. Win2012 might be the same but if it is like Windows 8 you are stuck as the features are not built-in (I haven't actually installed 2012 yet so don't know). If it is not ocsetup it could be dcim or pkgmgr. You can't call any of these directly from burn so I wrote shell app that I could embed in burn to call them with the correct command line (I never completely finished it as we decided it was easier to drop .NET 3.5 and go for .NET 4.0). This is the code I had but it was written in .NET so might not any good if 2012 doesn't have any .NET installed: namespace OcsRunner { using System; using System.Diagnostics; public class Program { public static int Main(string[] args) { var startInfo = new ProcessStartInfo(); startInfo.FileName = ocsetup.exe; startInfo.Arguments = String.Join( , args) + /norestart /quiet; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.UseShellExecute = false; var p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); return p.ExitCode; } } } Hope this helps. Neil -Original Message- From: Hans ter Horst [mailto:hoshis...@gmail.com] Sent: 01 February 2013 07:17 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement I didn't see an answer regarding this question and I'm sort of stuck on this. Does anybody have an idea how to handle the different way Windows 2012 Server behaves if a prerequisite is defined as a server feature? Thanks, Hans On Wed, Jan 30, 2013 at 1:04 PM, Hans ter Horst hoshis...@gmail.com wrote: Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Burn: Prerequisites on Windows 2012 Server and the Server Manager requirement
Hello, My program has a .NET 3.5 prerequisite and I have used Burn and the standard code successfully on Windows Server 2008 SP2. On Windows Server 2012 however, .NET 3.5 and many other prerequisites need to be installed via the Server Manager as features instead and cannot be installed via an MSI delivered with or pulled down via the Burn executable, see attached screenshot. My question is: How can I use continue to use Burn to handle my prerequisites and make it work on Windows Server 2012? Thanks, Hans -- http://monochrome.me.uk/blog/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users