Windows Vista Forums

How to uninstall PowerShell 1.0 on Win XP?

  1. #1


    DavidTM Guest

    How to uninstall PowerShell 1.0 on Win XP?

    Hi

    I want to upgrade from PowerShell 1.0 to 2.0 CTP3 on my Win XP PC.

    In 'Add/Remove Programs' PowerShell 1.0 wasn't listed so I clicked 'Show
    Updates' and it appeared in the list. However, clicking Remove then gives the
    message:

    'An error occured while trying to remove Windows PowerShell(TM) 1.0. It may
    have already been uninstalled. Would you like to remove Windows
    PowerShell(TM) 1.0 from the Add or Remove programs list?'

    PowerShell 1.0 is definitely installed (I can run it). What should I do?

    BR

    David

      My System SpecsSystem Spec

  2.   


  3. #2


    Shay Levy [MVP] Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Hi DavidTM,

    See if you can find the '$NtUninstallKB926139$' folder in Windows dir. If
    so, run spuninst.exe (inside the spuninst folder).


    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar



    D> Hi
    D>
    D> I want to upgrade from PowerShell 1.0 to 2.0 CTP3 on my Win XP PC.
    D>
    D> In 'Add/Remove Programs' PowerShell 1.0 wasn't listed so I clicked
    D> 'Show Updates' and it appeared in the list. However, clicking Remove
    D> then gives the message:
    D>
    D> 'An error occured while trying to remove Windows PowerShell(TM) 1.0.
    D> It may have already been uninstalled. Would you like to remove
    D> Windows PowerShell(TM) 1.0 from the Add or Remove programs list?'
    D>
    D> PowerShell 1.0 is definitely installed (I can run it). What should I
    D> do?
    D>
    D> BR
    D>
    D> David
    D>



      My System SpecsSystem Spec

  4. #3


    DavidTM Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Hi Shay

    '$NtUninstallKB926139$' is not present.

    Can I get it from anywhere?

    David



      My System SpecsSystem Spec

  5. #4


    DavidTM Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    By what I've read, $NtUninstallKB926139$ probably got deleted when Win XP Sp2
    was installed.

    I'm not sure if it would be safe to copy the file from another PC (which
    actually I don't have). What do you think?

    Can I uninstall PowerShell 1.0 by hacking the registry instead?

      My System SpecsSystem Spec

  6. #5


    Shay Levy [MVP] Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Hi DavidTM,


    That's probably the reason, can you rollback SP2?
    For more information: http://blogs.msdn.com/powershell/arc...2-upgrade.aspx

    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar



    D> By what I've read, $NtUninstallKB926139$ probably got deleted when
    D> Win XP Sp2 was installed.
    D>
    D> I'm not sure if it would be safe to copy the file from another PC
    D> (which actually I don't have). What do you think?
    D>
    D> Can I uninstall PowerShell 1.0 by hacking the registry instead?
    D>



      My System SpecsSystem Spec

  7. #6
    delphin's Avatar

    Eager to learn

    Join Date : Nov 2008
    Chennai
    Posts : 636
    Windows 7
    Local Time: 07:56 AM
    india

     

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Quote Originally Posted by Shay Levy [MVP] View Post
    Hi DavidTM,


    That's probably the reason, can you rollback SP2?
    For more information: Windows PowerShell Blog : Windows Server 2003 SP2 upgrade

    ---
    Shay Levy
    Windows PowerShell MVP
    Shay Levy
    PowerShell Toolbar: PowerShell at the tip of your browser - Shay Levy


    D> By what I've read, $NtUninstallKB926139$ probably got deleted when
    D> Win XP Sp2 was installed.
    D>
    D> I'm not sure if it would be safe to copy the file from another PC
    D> (which actually I don't have). What do you think?
    D>
    D> Can I uninstall PowerShell 1.0 by hacking the registry instead?
    D>
    Try the windows installer cleanup utility.

    Keep us informed.

      My System SpecsSystem Spec

  8. #7


    DavidTM Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    I can't rollback the update because updates are handled by our IT dept. The
    'windows installer cleanup utility' failed to detect PowerShell 1.0.

    So as a last resort I deleted registry key
    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Powershell\1"

    I was then able to successfully install PowerShell 2.0 CTP3.

    However, when I start PowerShell 2.0 I get lots of errors starting with:

    =============================
    Windows PowerShell
    Copyright (C) 2006 Microsoft Corporation. All rights reserved.

    Error loading the extended type data file:
    Microsoft.PowerShell.Core,
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\types.ps1xml(141) : Error in type
    "Deserialized.Sy
    stem.Net.IPAddress": "TargetTypeForDeserialization" is not a standard member
    and will be ignored
    Microsoft.PowerShell.Core,
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\types.ps1xml(293) : Error in type
    "System.Director
    yServices.DirectoryEntry": Exception: Cannot convert
    "Microsoft.PowerShell.AdapterCodeMethods" to "System.Type".
    [snip]
    =============================

    Any ideas on what to do next please?

    David


      My System SpecsSystem Spec

  9. #8


    DavidTM Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Sadly decided to revert to PowerShell 1.0. Hopefully the upgrade will be
    easier when 2.0 Beta appears.

    Thanks for your help,

    David

      My System SpecsSystem Spec

  10. #9


    Josh Einstein Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    Ironically your problems have nothing to do with the state of the 2.0 beta
    as it appears something from 1.0 is screwed up already.

    It sounds like when you installed 2.0, it was using 1.0's binaries from the
    GAC. Now that you have 1.0 installed again, are you able to uninstall it?
    While you can delete assemblies from the GAC manually, it's a huge pain in
    the ass especially if they're put there by an installer.

    "DavidTM" <DavidTM@xxxxxx> wrote in message
    news:1EB47F4B-497B-4E5B-BF9C-3768A6C3FEE6@xxxxxx

    > Sadly decided to revert to PowerShell 1.0. Hopefully the upgrade will be
    > easier when 2.0 Beta appears.
    >
    > Thanks for your help,
    >
    > David

      My System SpecsSystem Spec

  11. #10


    sluice Guest

    Re: How to uninstall PowerShell 1.0 on Win XP?

    I want to install Powershell v2 on an XP SP3 machine. It has previously had
    v1 installed, which was never properly uninstalled. I have tried all the
    solutions I can find to remove the old version. All the PS files and folders
    have been deleted. Any reference to Powershell in the registry has been
    deleted, but on trying to install v2 I stll get the message to remove
    previous versions first. I guess it's looking for a registry key or keys
    which tells it that PS is installed, finds it/them and stops the install.
    I've tried looking at a registry trace with RegMon filtered to misiexec, but
    there are still hundreds of successful reads & queries. I have saved the
    RegMon trace.
    Neither $NtUninstallKB926139$ nor $NtUninstallKB926141$ is present and I
    can't roll back nor can I install v1, for the same reason as above.

    "Shay Levy [MVP]" wrote:

    > Hi DavidTM,
    >
    >
    > That's probably the reason, can you rollback SP2?
    > For more information: http://blogs.msdn.com/powershell/arc...2-upgrade.aspx
    >
    > ---
    > Shay Levy
    > Windows PowerShell MVP
    > http://blogs.microsoft.co.il/blogs/ScriptFanatic
    > PowerShell Toolbar: http://tinyurl.com/PSToolbar
    >
    >
    >
    > D> By what I've read, $NtUninstallKB926139$ probably got deleted when
    > D> Win XP Sp2 was installed.
    > D>
    > D> I'm not sure if it would be safe to copy the file from another PC
    > D> (which actually I don't have). What do you think?
    > D>
    > D> Can I uninstall PowerShell 1.0 by hacking the registry instead?
    > D>
    >
    >
    >

      My System SpecsSystem Spec

Page 1 of 2 12 LastLast

How to uninstall PowerShell 1.0 on Win XP?
Similar Threads
Thread Forum
Cannot uninstall Powershell V2 CTP PowerShell
uninstall powershell 1.0 PowerShell
Can't Uninstall Powershell!!! PowerShell
Cannot uninstall powershell Vista installation & setup
Can somebody help me uninstall powershell RC2? PowerShell