Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2002
    Posts
    12

    Reg Search, If found, do this, or, if not found, do this!

    I have posted an image of reg here: http://noveltech.com/reg.jpg

    I would like to search registry for:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr ent Version\Uninstall\ST6UNST #1\ApplicationName\NovelTechPopup.exe

    if the value {NovelTechPopup.exe} is found; I would like to delete:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr ent Version\Uninstall\ST6UNST #1

    Thanks for all feedback, NT


  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834

    Re: Reg Search, If found, do this, or, if not found, do this!

    To accomplish that you could do have some actions that look like the following:

    First action:
    Read From Registry() to read your registry location. In the "Value" field, you will have "ApplicationName". Let's say it stores the data in "%RegistryVar%.

    Then have something like:

    IF (%RegistryVar% = "NovalTechPopup.exe")
    Modify Registry() with the "Registry action" set as "Delete Key". Then have "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rent Version\Uninstall\ST6UNST #1 " as the key you would like to delete.
    END IF

    That should do it.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts