making a uninstall with a reg file,how can i do?

Discussion in 'other software & services' started by mantra, Apr 18, 2008.

Thread Status:
Not open for further replies.
  1. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    5,131
    Hi
    i have a question

    i have exported some key by the regfile

    i saved in *.reg

    well is there a way to trasfom these *.reg files in uninstall?

    i mean for example an exported files like this
    Code:
    [HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\open]
    @="Open in foobar2000"
    adding a - and make it like so
    Code:
    [-HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\open]
    @="Open in foobar2000"
    it will uninstall ,clean this key

    well i have exported many keys , and adding the - to eveery key is boring

    is there a freesoftware that make it for me , add the - to every reg key ?

    thanks
     
  2. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    2,302
    Location:
    Location Unknown
    I do not believe so know. The only way I think this would be possible is if you first created a custom installer, then installed your program. Then you could have the installer, or uninstaller do whatever you want.
     
  3. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    5,131
    i know that there is a software that let me know , but now i can't find it
     
  4. Teknokrat

    Teknokrat Registered Member

    Joined:
    Apr 20, 2007
    Posts:
    95
    Location:
    First Life? (Sweden)
    There's an utility available at PCMag called InCtrl which basically is an freeware uninstaller (well, nowadays PCMag charges a fee even for the access to their "freeware" but the program is available all over the internet).

    There's another program called UNDOReg that analyzes the report InCtrl create when you use it to install a program. From this report it generates a reg-file that enables you to undo all changes made in the registry during install. UndoReg also works with reports made by System Mechanic and Regshot (thx Cosmo 203 :thumb: ).

    Hope this is what you were looking for.

    regards,
    T
     
    Last edited: Apr 18, 2008
  5. Pieter_Arntz

    Pieter_Arntz Spyware Veteran

    Joined:
    Apr 27, 2002
    Posts:
    13,331
    Location:
    Netherlands
    Making custom reg files is tricky bussiness.

    Your example:

    [HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\open]
    @="Open in foobar2000"

    Do you want to remove the value:

    [HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\open]
    @=-

    or the entire key with all its subkeys:
    [-HKEY_CLASSES_ROOT\Applications\foobar2000.exe]

    Your proposal:
    does the same as:
    [-HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\open]

    It removes that key and all subkeys and values under it.

    Hope this helps a bit.

    Regards,

    Pieter
     
  6. Cosmo 203

    Cosmo 203 Registered Member

    Joined:
    Mar 3, 2008
    Posts:
    165
    Instead of Inctrl (see post from Teknokrat) you can use Regshot 1.8.2, which can log the changes that have been made to the registry (and file system optionally) and can be set compatible to UndoReg.

    Another way: Make an image of you system and put it back afterwards.
     
  7. Espresso

    Espresso Registered Member

    Joined:
    Aug 1, 2006
    Posts:
    975
    Use a program like Text Magician to bulk search/replace the [ with [- .
     
  8. Pieter_Arntz

    Pieter_Arntz Spyware Veteran

    Joined:
    Apr 27, 2002
    Posts:
    13,331
    Location:
    Netherlands
    :ninja: I'm sorry, I find that very bad advice! :ninja:
    That is probably the fastest way to deleting entire keys that do have values and subkeys under it, you wanted to hold on to.

    Example: suppose the installer changes the value of:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "Shell"="Explorer.exe"

    Your method will render:
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "Shell"="Explorer.exe"

    Which does the same as
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

    which will create havoc and a very likely unbootable computer.

    Whatever you try, make a backup of the registry first:

    Please go to Start > Run
    Paste in the following line:
    • regedit /e c:\registrybackup.reg
    Click OK.
    It won't appear to be doing anything, that's normal.
    Your mouse pointer may turn to an hour glass for a minute.
    Please continue when it no longer has the hour glass.

    Then try to do as little damage as possible, so you can still reboot and use that backup, if needed.

    Regards,

    Pieter
     
  9. Espresso

    Espresso Registered Member

    Joined:
    Aug 1, 2006
    Posts:
    975
    True, but I assume he would scan through them to make sure he wasn't throwing out the baby with the bathwater.

    As for backing up your registry, I recommend ERUNT.
     
Loading...
Thread Status:
Not open for further replies.