• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to uninstall PowerShell 1.0 on Win XP?

D

DavidTM

#1
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 Computer

S

Shay Levy [MVP]

#2
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 Computer

D

DavidTM

#4
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 Computer

S

Shay Levy [MVP]

#5
Hi DavidTM,


That's probably the reason, can you rollback SP2?
For more information: http://blogs.msdn.com/powershell/archive/2007/03/19/windows-server-2003-sp2-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 Computer

delphin

Eager to learn
Vista Pro
Messages
636
Location
Chennai
#6
Shay Levy [MVP];1029338 said:
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 Computer

System One

  • Manufacturer/Model
    Wipro
    Motherboard
    Intel dq35j0
    Memory
    8 Gb
    Graphics Card(s)
    inter express chipset
    Sound Card
    Realtek
    Monitor(s) Displays
    Wipro
    Screen Resolution
    1024*768
    Hard Drives
    500 gb
    Mouse
    Dell
    Keyboard
    DELL
    Internet Speed
    100 mbps(office lan)
D

DavidTM

#7
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 Computer

D

DavidTM

#8
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 Computer

J

Josh Einstein

#9
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 Computer

S

sluice

#10
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/archive/2007/03/19/windows-server-2003-sp2-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 Computer

L

Larry__Weiss

#11
The relies to this article (scroll down there to see them) have some ideas

http://geekzguru.wordpress.com/2008/02/16/howto-uninstall-powershell-10/

- Larry

sluice wrote:

> 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:

>> That's probably the reason, can you rollback SP2?
>> For more information: http://blogs.msdn.com/powershell/archive/2007/03/19/windows-server-2003-sp2-upgrade.aspx
>>
>>
>> D> By what I've read, $NtUninstallKB926139$ probably got deleted when
>> D> Win XP Sp2 was installed.
>> 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> Can I uninstall PowerShell 1.0 by hacking the registry instead?
>> D>
>>
>>
>>
 

My Computer

R

Robert Aldwinckle

#12
"sluice" <sluice@xxxxxx> wrote in message news:58BFD507-2C3C-4767-B0AC-BDA0913005FF@xxxxxx

> 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.

Have you looked at all the log files first? ; )

Otherwise a better diagnostic IMO would be the same trace
done using ProcMon. That way you would get the same effect
as an interleaved RegMon and FileMon trace. In particular you
could then correlate your registry accesses with any log
messages that they might be related to. Note that you don't
exactly see the log message being written but get a way to infer
which log message is being written as determined by the
length of a WRITE and the pattern of such writes when
compared with the pattern of lengths of log messages
and any timestamp information each contains. You can use
Notepad's Status bar to find the length of a message.


HTH

Robert Aldwinckle
---


> 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/archive/2007/03/19/windows-server-2003-sp2-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 Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)