[wix-users] Need an option to perform Filesearch in System32 folder from 32 bit installer running on a 64 bit machine.

Hemalatha.Nallusamy at microchip.com Hemalatha.Nallusamy at microchip.com
Mon Nov 14 22:23:42 PST 2016


Hi,

Please find the code below:

Code:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
		 xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
		 xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">

    <Bundle Name="TestProject" Version="1.0"
					Manufacturer="Test"
					UpgradeCode="14165AA4-E5F7-4566-A6C4-9CEE0C116DDF" DisableModify="yes" DisableRemove="yes">

        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

        <WixVariable Id="WixStdbaLogo" Value=".\Bitmaps\large.ico" />
        <WixVariable Id="WixStdbaLicenseRtf" Value=".\License\License.rtf" />

        <Chain>
            <PackageGroupRef Id="FTDIDriver"/>
            <MsiPackage
					Id="MainInstaller"
					Compressed="yes"
					SourceFile="$(var.MaxStudioInstaller)"
					Vital="yes"
					Visible="yes"
					DisplayInternalUI="yes"
					SuppressSignatureVerification="yes">
            </MsiPackage>
        </Chain>
    </Bundle>

    <Fragment>

        <util:FileSearch
			Id="FTDIDriverSearch1"
			Path="[SystemFolder]drivers\ftser2k.sys"
			Variable="FTDIDRIVERINSTALLED1"
			Result="exists" />

        <util:FileSearch
			Id="FTDIDriverSearch2"
			Path="[SystemFolder]ftcserco.dll"
			Variable="FTDIDRIVERINSTALLED2"
			Result="exists" />

        <util:FileSearch
			Id="FTDIDriverSearch3"
			Path="[SystemFolder]ftserui2.dll"
			Variable="FTDIDRIVERINSTALLED3"
			Result="exists" />

        <PackageGroup Id="FTDIDriver">
            <ExePackage
					Id="FTDIDriver"
					Cache="no"
					Compressed="yes"
					PerMachine="yes"
					Permanent="yes"
					Vital="no"
					SourceFile=".\Drivers\CDM v2.12.00 WHQL Certified.exe"
					InstallCondition="NOT FTDIDRIVERINSTALLED1 OR (NOT FTDIDRIVERINSTALLED2) OR (NOT FTDIDRIVERINSTALLED3)" />
        </PackageGroup>
    </Fragment>
</Wix>


Regards,
Hema.


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Tuesday, November 15, 2016 11:49 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Need an option to perform Filesearch in System32 folder from 32 bit installer running on a 64 bit machine.

What does your .wxs code look like?

_____________________________________________________________
 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 Hemalatha.Nallusamy at microchip.com
Sent: Monday, November 14, 2016 10:09 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Need an option to perform Filesearch in System32 folder from 32 bit installer running on a 64 bit machine.

Hi,

I tried using from the Burn-Built-in variable WindowsFolder. But still it routes to SysWOW64 instead of system32. I think the redirecting to SysWOW64 happens after the complete path construction.
So this doesn't work.

Can you provide us some helpful link to write managed code and use it in Bundle similar to CustomAction in Product of wix?

Thanks & Regards,
Hema.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list