I would if you need to install prereqs. (I think the release is only a few days 
away.)

Neil

-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com] 
Sent: 29 August 2012 12:11
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Install the Visual C++ redistributables file 
vcredist_x86.exe

Thank you very much, I'm using WIX 3.5 at the minute, Would u recommend moving 
to 3.6? 

-----Original Message-----
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: 29 August 2012 11:54
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Install the Visual C++ redistributables file 
vcredist_x86.exe

I'd suggest using burn to do this; this is the code I am using to install 
vcredist.

<?xml version="1.0" encoding="utf-8"?>
<?define vcredist_x86 =
http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-7953769
89c03/vcredist_x86.exe ?> <Wix
xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
  <Fragment>
    <util:RegistrySearch Root="HKLM"
Key="SOFTWARE\Microsoft\DevDiv\VC\Servicing\9.0\RED\1033" Value="SP"
Variable="vcredist" />
    <PackageGroup Id="vcredist">
      <ExePackage Id="vcredist_x86"
        Cache="no"
        Compressed="no"
        PerMachine="yes"
        Permanent="yes"
        Vital="yes"
        Name="Redist\vcredist_x86.exe"
        SourceFile="Redist\vcredist_x86.exe"
        DownloadUrl="$(var.vcredist_x86)"
        InstallCommand="/q"
        DetectCondition="vcredist AND (vcredist &gt;= 1)">
        <ExitCode Value ="3010" Behavior="forceReboot" />
      </ExePackage>
    </PackageGroup>
  </Fragment>
</Wix>

Neil

-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com]
Sent: 29 August 2012 11:26
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Install the Visual C++ redistributables file 
vcredist_x86.exe

Hi, Hope someone can help me. I'm trying to install the Visual C++ 
redistributables file vcredist_x86.exe

 

I can't use merge modules as I've been asked to use this one EXE file. I added 
it to a bootstrapper using this code:

<ItemGroup>

<BootstrapperFile Include="Microsoft.Visual.C++.10.0.x86">

  <ProductName>Microsoft Visual C++ Redistributables</ProductName>

</BootstrapperFile>

</ItemGroup>

 

<Target Name="AfterBuild">

<GenerateBootstrapper ApplicationFile="$(TargetFileName)"
ApplicationName="Server Setup" BootstrapperItems="@(BootstrapperFile)"
ComponentsLocation="Relative" CopyComponents="True"
OutputPath="$(OutputPath)" Path="C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Bootstrapper\" />

</Target>

 

 

But this installs the prerequisites at the beginning and I have been asked to 
show our welcome dialog and then do a registry search to see if the appropriate 
files are installed. If they are not to call the vcredist_x86.exe file. 

 

Can this be done?

I'm trying this but cannot get it to work.

 

   <CustomAction Id="QtExecDeferredExampleWithProperty_Cmd"
Property="QtExecDeferredExampleWithProperty"
Value="&quot;[#vcredist_x86.exe]&quot;" Execute="immediate"/>

    <CustomAction Id="QtExecDeferredExampleWithProperty" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/>

 

   

    <InstallExecuteSequence>

      <Custom Action="QtExecDeferredExampleWithProperty_Cmd"
After="CostFinalize"/>

      <Custom Action="QtExecDeferredExampleWithProperty"
After="InstallInitialize"/>

    </InstallExecuteSequence>

 

 

Kind Regards,

 

Natalie Carr

 

 

----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to