I'm trying to get a list of all the keys under a parent key. I would expect the following xml to display a series of dialogs with "...Java Plug-in","...Java Runtime Environment","...Java update","...Java Web Start"; but nothing is appearing. I've also tried wild-carding the namePattern, keyPattern, and dataPattern fields; and requiring install by admin with no results.

<preInstallationActionList>
    <registryFind>
        <findAll>1</findAll>
        <rootKey>HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft</rootKey>
        <searchDepth>1</searchDepth>
        <variable>results</variable>
    </registryFind>
    <foreach>
        <values>${results}</values>
        <variables>key name value</variables>
        <actionList>
            <showInfo>
                <text>${key}</text>
            </showInfo>
        </actionList>
    </foreach>
</preInstallationActionList>

I'm running Windows 7 SP1 - 64bit

asked 20 Jun '13, 16:19

Roger%20B's gravatar image

Roger B
6334
accept rate: 0%


It it is running on Windows x64, you will be probably need to add <wowMode>64</wowMode> to the <registryFind> or add <windows64bitMode>1</windows64bitMode> to your project:

<project>
    ...
    <windows64bitMode>1</windows64bitMode>
    ...
</project>
link

answered 20 Jun '13, 17:23

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

That solved my issue. Thanks.

(20 Jun '13, 17:46) Roger B
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28
×13
×8
×2

Asked: 20 Jun '13, 16:19

Seen: 1,505 times

Last updated: 20 Jun '13, 17:46