Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Location
    Göttingen, Germany
    Posts
    77

    Suggestion: UninstallData.AddItem for a registry entry

    Hi,

    it would be nice to have the ability to add a registry key or value item to the uninstall configuration file. In that case it would be possible to delete a registry entry without using UNINDATA_SCRIPTS.
    There could be a new ItemType for the UninstallData.AddItem named UNINDATA_REGISTRY, that would work like a Registry.DeleteKey or Registry.DeleteValue.

    Suggestion for ItemType:
    CONSTANT : UNINDATA_REGISTRY
    VALUE : 7
    DESCRIPTION : A registry key or value to be uninstalled

    ItemData UNINDATA_REGISTRY
    KEY : MainKey
    TYPE : number
    DESCRIPTION : The main or "root" key where you want to delete the key. Choose from

    KEY : SubKey
    TYPE : string
    DESCRIPTION : The sub key to delete, in case Value is an empty string "" or nil, otherwise the sub key that contains the value.

    KEY : Value
    TYPE : string
    DESCRIPTION : The value to delete. To specify the "(Default)" value, use an empty string "" as the value name. Deleting the "(Default)" value results in the removal of the key and all of its values.

    Code:
    -- Deletes the value "InstallPath" from the sub key HKEY_LOCAL_MACHINE\Software\My Application.
    UninstallData.AddItem(UNINDATA_REGISTRY, {MainKey=KEY_LOCAL_MACHINE,SubKey="Software\\My Application",Value="InstallPath"});
    
    -- Deletes the sub key "My Application" from HKEY_LOCAL_MACHINE\Software.
    UninstallData.AddItem(UNINDATA_REGISTRY, {MainKey=KEY_LOCAL_MACHINE,SubKey="Software\\My Application"});

    Best regards,
    Udo

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Thanks for the suggestion.
    REF: SUFSUG-3
    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