Announcement

Collapse
No announcement yet.

Searching the registry.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Brett
    replied
    Re: Searching the registry.

    Check out this thread, it should help you a bit...

    http://www.indigorose.com/ubbthreads...mp;o=&vc=1

    Leave a comment:


  • TJ_Tigger
    replied
    Re: Searching the registry.

    OK I did this instead

    <IR_ACTIONS_LIST>
    <Action name="Does Key Exist">
    <Type>70</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <MainKey>3</MainKey>
    <SubKey>SOFTWARE\Adobe\Acrobat Reader</SubKey>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>Title</DialogTitle>
    <DialogMessage>%pdfviewer%</DialogMessage>
    <Icon>2</Icon>
    <Variable>%Result%</Variable>
    <DialogType>0</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    </IR_ACTIONS_LIST>

    Leave a comment:


  • TJ_Tigger
    started a topic Searching the registry.

    Searching the registry.

    I have been trolling the bbs for how to search for .pdf support and have decided I would look in the registry. Here is what I have placed on a button to test the search function. I am looking for the sub key .pdf in the HKEY_CLASSES_ROOT. the variable created when this happens is placed in a message dialog. I am expecting TRUE to be the answer I get back based on the fact that I have acrobat 5 full installed on this machine. But FALSE is returned instead. Am I searching in the correct place?

    Here is the actions list

    <IR_ACTIONS_LIST>
    <Action name="Does Key Exist">
    <Type>70</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <MainKey>0</MainKey>
    <SubKey>.pdf</SubKey>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>Title</DialogTitle>
    <DialogMessage>%pdfviewer%</DialogMessage>
    <Icon>3</Icon>
    <Variable>%Result%</Variable>
    <DialogType>0</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    </IR_ACTIONS_LIST>


    Thanks for the help.
Working...
X