Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7023359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:42:03+00:00 2026-05-27T23:42:03+00:00

Our app requires a recent version of a DLL in order to function correctly.

  • 0

Our app requires a recent version of a DLL in order to function correctly. The path to the DLL is stored in the registry. How do I enforce a minimum file version as a launch condition in Windows Installer?

So far I have this:

<Property Id="FileTest">
    <RegistrySearch Id="FileSearch"
                    Key="SOFTWARE\Company\Product"
                    Name="DLLPath"
                    Root="HKLM"
                    Type="file">
        <FileSearch MinVersion="1.2.3.4" />
    </RegistrySearch>
</Property>
<Condition Message="!(loc.ErrorMessage)">Installed OR (FileTest)</Condition>

But WiX won’t compile this:

MainApp.wxs(543) : error CNDL0010 : The FileSearch/@Name attribute was not found; it is required.

The problem is I don’t know what to enter for the Name attribute. I don’t know in advance what the DLL is named, it could be anything! (That’s why the registry value is there!!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:42:03+00:00Added an answer on May 27, 2026 at 11:42 pm

    What happens if you modify the RegistrySearch to this:

    <Property Id="FileTest">
        <RegistrySearch Id="FileSearchResult"
                        Key="SOFTWARE\Company\Product"
                        Name="DLLPath"
                        Root="HKLM"
                        Type="file">
            <FileSearch LongName="[FileSearchResult]" 
                        MinVersion="1.2.3.4" />
        </RegistrySearch>
    </Property>
    

    I think having FileSearch as both the ID and an actual wix element is causing you and issue. If you change the id to something like FileSearchResult and then reference it in the Name (or safer, LongName) attribute of the FileSearch element (by enclosing it in square brackets, []), then it should work. I haven’t touched wix in about 6 months, so I make no promises 😉

    NOTE: The square brackets are the way the Wix UtilExtensions (as seen in this example) identify a RegistrySearch result stored in the variable attribute. It may not be so for accessing the Id holding the result in standard wix.

    NOTE 2: You may actually need to use a RegistrySearchRef element as the parent to the FileSearch element instead. Take a look at this example (though it uses one result of a DirectorySearch element in another DirectorySearch). Hopefully this may give you enough to go on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our app uses a component that requires a license file in the directory with
Our app (already deployed) is using an Access/Jet database. The upcoming version of our
Our app allows multiple files to be selected in a file selection dialog which
Our app servers (weblogic) all use log4j to log to the same file on
Our app runs in jvm 32 bit, even when in windows x64. Now, at
In our app, we currently live with the legacy of a decision to store
Intermittently in our app, we encounter LockTimeoutExceptions being throw from SQL CE. We've recently
Whilst trying to get our app working in Firefox (I'm a big proponent of
I want our app to show the online help page (so it's always up
as database transcations in our app are getting more and more time consuming, we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.