[wix-users] Install an exe while my installer is running?
Carlos Sosa
carlos.sosa.us at outlook.com
Tue Aug 15 12:58:14 PDT 2017
Looks like the payload is only to do a remote package, and after trying other stuff I could not get it to work.
So I'm trying a detect condition using registry search but I'm not getting the right value, I think that the value returned from my registry search.
I looked at the log but can figure out what value is returning.
I figure is not getting the right value because it evaluates to False when NETWORK45 should be: 379893
Is this because hexadecimal vs decimal values? How can I fix it?
[0568:0698][2017-08-15T12:46:38]i052: Condition 'NETFRAMEWORK45 < 394254' evaluates to false.
************************
<ExePackage SourceFile="Lib/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" Cache="yes"
InstallCondition="NETFRAMEWORK45 < 394254"/>
************************
<Fragment>
<util:RegistrySearch
Id="NETFRAMEWORK45"
Variable="NETFRAMEWORK45"
Root="HKLM"
Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
Value="Release"
Result="value"/>
</Fragment>
************************
(I do not know if this is needed)
<Fragment>
<Property Id="NETFRAMEWORK45" Secure="yes">
<RegistrySearch Id="NetFramework45" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Release" Type="raw" />
</Property>
</Fragment>
************************
Best
-----Original Message-----
From: Carlos Sosa
Sent: Tuesday, August 15, 2017 9:32 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: RE: [wix-users] Install an exe while my installer is running?
Without the payload tag the size of the installer is 648 kb and with it is 66,661 kb, this indicates that the .net exe is being included, but for some reason it can not find it.
Any help is appreciated.
Thank you.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Carlos Sosa
Sent: Tuesday, August 15, 2017 9:20 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Install an exe while my installer is running?
Hello, I chacged a couple of things but I stiil get the same error:
[096C:05BC][2017-08-15T08:13:12]e313: Failed to acquire payload: NetFx461Redist to working path: C:\Users\ADMINI~1\AppData\Local\Temp\2\{CC7A3737-DF07-428C-BE6F-D204DD1AC121}\NetFx461Redist, error: 0x80072ee7.
[096C:0918][2017-08-15T08:13:12]e000: Error 0x80072ee7: Failed while caching, aborting execution.
The <PackageGroupRef Id="NetFx461Redist"/> is there and I changed the Payload Name to: "redist\NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
Maybe I'm not understanding what "distribute your installer with redist\NDP461-KB3102436-x86-x64-AllOS-ENU.exe file" means, doesn't the Payload supposed to add the exe and make it available during install?
This is what I have now:
<Bundle Name="My_Bootstrapper"
Version="1.0.0.0"
Manufacturer="HelloWorld"
UpgradeCode="*">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"/>
<PayloadGroup Id="NetFx461RedistPayload">
<Payload Name="redist\NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
SourceFile="Lib\NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
Compressed="yes"/>
</PayloadGroup>
<Chain>
<PackageGroupRef Id="NetFx461Redist"/>
<MsiPackage SourceFile = '$(var.My_Installer.TargetPath)' Id='abc' Vital='yes' ></MsiPackage>
</Chain>
</Bundle>
Best
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar
Sent: Tuesday, August 15, 2017 1:26 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Install an exe while my installer is running?
You need to add to your chain the PackageGroupRef, and distribute your installer with redist\NDP461-KB3102436-x86-x64-AllOS-ENU.exe file
<PackageGroupRef Id="NetFx461Redist"/>
Another way is to copy PackageGroup NetFx461Redist from WiX source, set SourceFile to NDP461-KB3102436-x86-x64-AllOS-ENU.exe and Compressed to "yes".
This way you'll get the .NET installer embedded in your installer
--Independent WiX Expert. Creator of-
https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks
____________________________________________________________________
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