I found the problem. The TOOLSDIR directory is not created at the time that the 
global property is being set after AppSearch.

Is there any way to get around this? Can a TOOLSDIR property be set before 
AppSearch is complete, or do I need to hard-code the path in there?

Source:

  <Product Id="$(var.ProductId)" Version="$(var.ProductVersion)" 
UpgradeCode="$(var.UpgradeCode)" Name="$(var.ProductName) 
$(var.ProductVersion)" Language="1033" Manufacturer="$(var.Manufacturer)">
    <Package Id="$(var.PackageId)" Description="$(var.ProductName) 
$(var.ProductVersion)" Comments="$(var.ProductName) $(var.ProductVersion)" 
InstallerVersion="300" Compressed="yes" />

. . .

    <Property Id="TEST_PROP">
      <DirectorySearch Id="TestTOOLSDIR" Path="[ProgramFilesFolder]"/>
    </Property>

    <Property Id="TEST_PROP2">
      <DirectorySearch Id="TestTOOLSDIR2" Path="[TOOLSDIR]"/>
    </Property>

    <Property Id="MCT_INSTALLED">
      <DirectorySearch Id="CheckTOOLSDIR" Path="[TOOLSDIR]">
        <FileSearch Id="MCT.exe.find" Name="MCT.exe" MinVersion="0.0.0.0"/>
      </DirectorySearch>
    </Property>
    <Property Id="MCT_HAS_RUN">
      <DirectorySearch Id="MCT_MADE" Path="[TOOLSDIR]">
        <FileSearch Id="applications.xml.find" Name="applications.xml"/>
      </DirectorySearch>
    </Property>

Log:

Action start 10:09:20: AppSearch.
AppSearch: Property: TEST_PROP, Signature: TestTOOLSDIR
MSI (c) (C8:B0) [10:09:20:654]: PROPERTY CHANGE: Adding TEST_PROP property. Its 
value is 'C:\Program Files\'.
AppSearch: Property: TEST_PROP2, Signature: TestTOOLSDIR2
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: PROPERTY CHANGE: Adding TEST_PROP2 property. 
Its value is 'C:\'.
AppSearch: Property: MCT_INSTALLED, Signature: MCT.exe.find
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
AppSearch: Property: MCT_HAS_RUN, Signature: applications.xml.find
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:654]: Note: 1: 1322 2:  
MSI (c) (C8:B0) [10:09:20:669]: Note: 1: 1325 2: applications.xml  

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to