ComponentSearch/@Guid is the value of the Component/@Guid you want to search 
for, known as the Component ID. For both the x86 and x64 SQL products, I 
recommend you open each MSI and find that file in the File table. Take note of 
the Component_ column in the File table for sqlserver.exe in each, then find 
that component in the Component table. Use the value in the ComponentId column 
for that row.

This locates the component based on the component ID. That's what Windows 
Installer registers for component. The ComponentSearch finds the location of 
that component. Then your FileSearch checks that the required file (with all 
your parameters specified) is there and, yes, sets the Property/@Id to the path 
of that file.

Heath Stewart
Technical Lead
Deployment Technology Group, Microsoft
http://blogs.msdn.com/heaths

From: Chris Gariepy
Sent: Monday, July 23, 2007 1:37 PM
To: Heath Stewart; wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: RE: [WiX-devs] FileSearch on x64

Isn't the ComponentSearch Guid value an arbitrary ID in this case?  The 
FileSearch sets the value of the SQLSERVER property based on the file version 
of "sqlservr.exe".  This isn't a file we're installing, it's the main SQL 
runtime which is required to already exist on the box.

I tried searching on that guid on an x86 box were the test works and it wasn't 
found in the registry.  Does it have some meaning I'm not familiar with?

Chris

From: Heath Stewart
Sent: Monday, July 23, 2007 1:20 PM
To: Chris Gariepy; wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: RE: [WiX-devs] FileSearch on x64

Have you verified that the component GUID is the same for the 64-bit component?

Heath Stewart
Technical Lead
Deployment Technologies Group, Microsoft
http://blogs.msdn.com/heaths

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Gariepy
Sent: Monday, July 23, 2007 12:45 PM
To: wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: [WiX-devs] FileSearch on x64

The following FileSearch element works as expected on x86 machines but it 
doesn't work on x64 machines, with 64bit SQL, even though the file version of 
sqlservr.exe appears to be the same.  Does FileSearch not support x64?  Is 
there a trick to make it work?


    <Property Id="SQLSERVER">
        <ComponentSearch Id="SQLSERVER" 
Guid="42171F06-AFD9-4AD9-956E-9B68326429DE" Type="file">
            <FileSearch Id="SQLSERVER" Name="sqlservr.exe" 
MinVersion="9.0.2047.0" />
        </ComponentSearch>
    </Property>

Thanks,
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to