[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
Tue Nov 15 01:54:19 PST 2016


Hi,

I have tried System64Folder as well. It also points to SysWOW64 Folder as this is a 32 bit bootstrapper application.
Please find the log attached.

When I say SystemFolder, the log file points to System32, but the behaviour is that if the file is in SysWOW64 folder then the condition passes otherwise it fails. So it shows that it points to SysWOW64 Folder.
When I say System64Folder, the log file points to SysWOW64 and the condition is satisfied only if the file is in SysWOW64 folder.

Conclusion is that SystemFolder, System64Folder and WindowsFolder all the 3 finally is redirected to SysWOW64 at run time.

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 12:04 PM
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.

SystemFolder is 32-bit. System64Folder is 64-bit.

_____________________________________________________________
 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:24 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,

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/

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


More information about the wix-users mailing list