[wix-users] Install an exe while my installer is running?

Carlos Sosa carlos.sosa.us at outlook.com
Mon Aug 14 14:36:55 PDT 2017


Ok, after going around for a while:

I understand that the Bundle is the way to go, I'm using:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"/>

    <PayloadGroup Id="NetFx461RedistPayload">
      <Payload Name="INSTALLDIR\Net461.exe"
               SourceFile="Lib\Net461.exe"/>
    </PayloadGroup>

    <Chain>
      <PackageGroupRef Id="NetFx46Redist"/>
      <MsiPackage SourceFile = '$(var.My_Installer.TargetPath)' Id='abc' Vital='yes' ></MsiPackage>

      
    </Chain>  

He problem I have is running the .net if is not found (offline); the detection work great <PackageGroupRef Id="NetFx46Redist"/>
The exe is found from source, but apparently it is not extracted. 

The logs:

[0138:05CC][2017-08-14T14:31:02]e000: Error 0x80072ee7: Failed to send request to URL: http://go.microsoft.com/fwlink/?LinkId=560369, trying to process HTTP status code anyway.
[0138:05CC][2017-08-14T14:31:02]e000: Error 0x80072ee7: Unknown HTTP status code 0, returned from URL: http://go.microsoft.com/fwlink/?LinkId=560369
[0138:05CC][2017-08-14T14:31:02]e000: Error 0x80072ee7: Failed attempt to download URL: 'http://go.microsoft.com/fwlink/?LinkId=560369' to: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\{F443852F-993F-4F8D-9907-1BF48ED3476B}\NetFx46Redist'
[0138:05CC][2017-08-14T14:31:02]e000: Error 0x80072ee7: Failed to acquire payload from: 'http://go.microsoft.com/fwlink/?LinkId=560369' to working path: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\{F443852F-993F-4F8D-9907-1BF48ED3476B}\NetFx46Redist'
[0138:05CC][2017-08-14T14:31:02]e313: Failed to acquire payload: NetFx46Redist to working path: C:\Users\ADMINI~1\AppData\Local\Temp\2\{F443852F-993F-4F8D-9907-1BF48ED3476B}\NetFx46Redist, error: 0x80072ee7.
[0138:04B0][2017-08-14T14:31:02]e000: Error 0x80072ee7: Failed while caching, aborting execution.

Please help!


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Carlos Sosa
Sent: Friday, August 11, 2017 10: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?

Reading chapter 15 of wix 3.6 now..
I'll get back to you asap.

Thank you.



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of William Fisher
Sent: Friday, August 11, 2017 10:13 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?

I second Jacob Hoover's comment.

I had a SQL Server install.  You can use your custom UI with SQL install, which I think is a better user experience anyway.  Here's how I did it for SQL Server Express 2014:

  <Fragment>
    <util:RegistrySearch
      Id='SearchForSQLServerExpress64'
      Variable="ISSQLSERVER64INSTALLED"
      Result="exists"
      Root="HKLM"
      Key="SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL12.$(var.InstanceName)"
      Win64="yes" />
    <PackageGroup Id="SQLServerExpress2014_64Bit">
      <ExePackage Compressed="yes"
                  PerMachine="yes"
                  Cache="yes"
                  Vital="yes"
                  Permanent="no"
                  InstallCommand='/ACTION=Install /Q /IACCEPTSQLSERVERLICENSETERMS /FEATURES=SQLEngine
/INSTANCENAME=$(var.InstanceName)
/SQLSYSADMINACCOUNTS=BUILTIN\Administrators /SECURITYMODE=SQL /SAPWD="Password1!" /SkipRules=RebootRequiredCheck'
                  UninstallCommand='/ACTION=Uninstall /Q /FEATURES=SQLEngine /INSTANCENAME=$(var.InstanceName)'
                  SourceFile='redist\SQLEXPR_x64_ENU.exe'
                  Name="redist\SQLEXPR_x64_ENU.exe"
                  DetectCondition="Installed OR ISSQLSERVER64INSTALLED"
                  InstallCondition="VersionNT64">
        <ExitCode Behavior="forceReboot"/>
      </ExePackage>
    </PackageGroup>
  </Fragment>

And include in your <Chain> a <PackageGroupRef Id="SQLServerExpress2014_64Bit"/>

On Fri, Aug 11, 2017 at 12:01 PM Carlos Sosa <carlos.sosa.us at outlook.com>
wrote:

>
> Hello I'm working on an installer with a custom UI where the user can 
> select which components to install.
> The problem is that when the click install (SQL 2016 express) the SQL 
> installer starts just fine, but since my Installer is running the SQL 
> cannot continue.
>
> I may be doing this the wrong way, any direction/help is appreciated.
> I'm using a Custom UI, I noticed that after the custom UI closes 
> wherever is in the main Product .wxs continues in my case if I 
> understand correctly at least one component is needed, I'm using:
>
>    <Component Id="CMP_InstallMeTXT"
>                  Guid="E8A58B7B-F031-4548-9BDD-7A6796C8460D">
>         <File Id="FILE_InstallMeTXT"
>               Source="InstallMe.txt"
>               KeyPath="yes" />
>       </Component
>
> So when the Custom UI is closed, the installation of this component 
> continues.
> How can I open a simple Window (custom UI) and only trigger an 
> Installer (3rd party apps like .Net, SQL, etc) when one of the buttons 
> on the custom UI is clicked? So the Main installer is not running 
> while I try to install the other tools?
>
> Thanks.
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
>
-- 
Bill Fisher   |  Technical Consultant
[ *m* ] 412.427.9804
wfisher at summa.com
[image: [ l ]] billfishersumma   <https://linkedin.com/in/billfishersumma>
611 William Penn Place
Pittsburgh, PA 15219
summa.com <http://www.summa.com/> [image: Summa] <http://www.summa.com/>

____________________________________________________________________
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