[wix-users] How do I package VS2015 Redistributables?
Jon Earle
earlej at hotmail.com
Fri May 13 12:56:41 PDT 2016
I found this post (last comment) on SO, which did the trick:
http://stackoverflow.com/a/35203929/1139436
Define the installers as binary stream and run a custom action to install them.
Wound up with:
<!-- Define the VC Runtime redistributables. -->
<Binary Id="VCRedistx86" SourceFile="$(var.ProjectDir)..\..\VisualStudio2015_VCRedist\vc_redist.x86.exe"/>
<Binary Id="VCRedistx64" SourceFile="$(var.ProjectDir)..\..\VisualStudio2015_VCRedist\vc_redist.x64.exe"/>
<CustomAction Id="InstallCpp32Silent" BinaryKey="VCRedistx86" ExeCommand="/install /passive /quiet" Execute="immediate" Return="asyncNoWait" Impersonate="yes"/>
<CustomAction Id="InstallCpp64Silent" BinaryKey="VCRedistx64" ExeCommand="/install /passive /quiet" Execute="immediate" Return="asyncNoWait" Impersonate="yes"/>
<InstallExecuteSequence>
<!-- Install the VC2015 runtimes. -->
<Custom Action="InstallCpp32Silent" Before="InstallInitialize"><![CDATA[NOT Installed]]></Custom>
<Custom Action="InstallCpp64Silent" Before="InstallInitialize"><![CDATA[NOT Installed]]></Custom>
All installed now with no separate gui popping up! Yep, they stay installed after the fact, that should be fine. Is there a way to trigger their removal though, should that be desired?
Cheers!
Jon
> From: Jacob.Hoover at greenheck.com
> To: wix-users at lists.wixtoolset.org
> Date: Fri, 13 May 2016 17:03:14 +0000
> Subject: Re: [wix-users] How do I package VS2015 Redistributables?
>
> Take a leap of faith, say goodbye to MSI UI's and embrace bundles. Once your over the initial learning curve, bundles are much more flexible and customizable. Let MSI's do what they are good at, but quit trying to make them do things they weren't designed to do.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
> Sent: Friday, May 13, 2016 11:41 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] How do I package VS2015 Redistributables?
>
> I think you need to read: http://robmensching.com/blog/posts/2012/6/25/b-is-for-bundle-and-thats-good-enough-for-me/
>
> _____________________________________________________________
> Short replies here. Complete answers over there: http://www.firegiant.com/
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Jon Earle
> Sent: Friday, May 13, 2016 9:34 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] How do I package VS2015 Redistributables?
>
> I want to keep it really simple. Ideally, I would like the ui to look identical to the ui for the msi in terms of flow and appearance - same welcome screen and general appearance.
>
> Honestly, I don't even need the licence page or install path prompt here, just run the exe, which will install the vcredist packages (maybe pop up a info dialog, or show a message, so the user doesn't freak out that it's taking too long) and then launch the real msi, which has the licence and install path prompts.
>
> Cheers!
> Jon
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list