Uninstaller Error
An error occurred while trying to remove Hotfix for Windows Server 2003 (KB926139).
It may have already been uninstalled.
Would you like to remove Hotfix for Windows Server 2003 (KB926139) from the
Add or Remove programs list?
I clicked NO, then I launched PowerShell through its shortcut and it is still
alive and kickin'.
When I checked the windows directory I didn't find the uninstall files for
PowerShell ('$NtUninstallKB926139$').
What happens if I apply SP2 to the servers? Will I be able to install PowerShell
v2 when released without
uninstalling SP2 first?
Needless to say that this is very ANNOYING!. What if one forgets to remove
PowerShell prior to SP install.
Is he doomed to live with PowerShell v1? Removing SP from production servers
is not a trivial matter.
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
--
Jeffery Hicks MCSE, MCSA, MCT
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
http://jdhitsolutions.blogspot.com
Now Available: WSH and VBScript Core: TFM
Now Available: Windows PowerShell v1.0: TFM 2nd Ed.
"Shay Levi" <n...@addre.ss> wrote in message
news:8766a9441c1f28...@news.microsoft.com...
I'm aware of the uninstall process and its downsides :) that's why I tried
to uninstall PowerShell in the *official way* prior to installing W3K SP2.
What happend later was another thing. Clicking the uninstall in Add/Remove
raised an error... and the uninstall files
we're not present on windows directory, and still I can launch PowerShell.
So, I wonder.. how can I uninstall it now *officialy*? SP2 needs to be deployed
to that server..
don't know how much time can I wait.
Anyway, I was thinking to copy the '$NtUninstallKB926139$' directory from
another server and execute it on the other.
Not sure I want to do that :(
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> If I understand things correctly, PowerShell v1.0 is technically a hot
> fix. If you install it prior to SP2 and then install SP2, you won't be
> able to uninstall it. The recommended course was to uninstall
> PowerShell, install SP2 and then reinstall PowerShell if you wanted to
> be able to uninstall it later. We'll have to see what happens with
> v2.0. I'm assuming eventually it will be able to upgrade an existing
> installation.
>
--
Jeffery Hicks MCSE, MCSA, MCT
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
http://jdhitsolutions.blogspot.com
Now Available: WSH and VBScript Core: TFM
Now Available: Windows PowerShell v1.0: TFM 2nd Ed.
"Shay Levi" <n...@addre.ss> wrote in message
news:8766a9441c42b8...@news.microsoft.com...
Reinstalling PowerShell and then trying to uninstall it might be the
answer to your problem, as Jeffery said. But be aware of the
following:
You cannot install Windows PowerShell 1.0 if it is already installed.
To determine whether Windows PowerShell 1.0 is installed, locate the
Install registry entry in the following registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Powershell\1\Install
If the value of the Install entry is 1, Windows PowerShell 1.0 is
installed. If the Install entry is not present, Windows PowerShell 1.0
is not installed.
So, maybe it's needed to modify registry entry before reinstallation.
-aleksandar
http://powershellers.blogspot.com
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> On Jan 29, 6:08 pm, "Jeffery Hicks [MVP]" <jhi...@sapien.com> wrote:
1. Run powershell setup.
2. PowerShell cannot be installed, plz remove old version.
3. deleted powershell's registry keys and run setup again.
4. Setup runs and installs powershell.
5. Removing powershell from Add/remove, I get the same error:
Uninstaller Error
An error occurred while trying to remove Hotfix for Windows Server 2003 (KB926139).
It may have already been uninstalled.
Would you like to remove Hotfix for Windows Server 2003 (KB926139) from the
Add or Remove programs list?
Now '$NtUninstallKB926139$' do exist in windows directory but it contains
two files only:
1. PSCustomSetupUtil.exe
2. PSSetupNativeUtils.exe
-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
> On Jan 29, 6:08 pm, "Jeffery Hicks [MVP]" <jhi...@sapien.com> wrote:
Can you reinstall again, but check the content of the C:\WINDOWS\
$NtUninstallKB926139$ before you take any action in Add\Remove panel?
You need spuninst subfolder that contains spuninst.exe, updspapi.dll,
spuninst.txt and spuninst.inf files. Maybe you can copy them from
another machine with PowerShell, and try running the uninstaller
(spuninst.exe) directly?
-aleksandar
http://powershellers.blogspot.com
OK, here's the latest news.. I copied the spuninst.inf from another server's
uninstall directory ($NtUninstallKB926139).
It contains the registrations and caals made by PowerShell setup. I executed
them using CMD.exe, installed W3K SP2 and installed Powershell v.1.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "System.Management.Automation,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.ConsoleHost,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Commands.Management,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Commands.Utility,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Security,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "System.Management.Automation.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.ConsoleHost.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Commands.Management.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Commands.Utility.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ngen.exe uninstall "Microsoft.PowerShell.Security.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
/silent /nologo /NoDependencies"
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "System.Management.Automation,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.ConsoleHost,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Commands.Management,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Commands.Utility,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Security,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "System.Management.Automation.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.ConsoleHost.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Commands.Management.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Commands.Utility.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /uninstall "Microsoft.PowerShell.Security.resources,Version=1.0.0.0,Culture=en,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil""
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /removeenvvariable
PATH "C:\WINDOWS\system32\WindowsPowerShell\v1.0"
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /removeenvvariable
PATHEXT ".PSC1"
C:\WINDOWS\$NtUninstallKB926139$\PSCustomSetupUtil.exe /wmsettingchange
## delete directories
rd c:\temp C:\WINDOWS\$NtUninstallKB926139$ /S /Q
rd c:\temp C:\WINDOWS\system32\windowspowershell /S /Q
## delete registry files
## save this lines in a reg file and double click to remove the keys
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllCreateIndirectData\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllGetSignedDataMsg\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllIsMyFileType2\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllPutSignedDataMsg\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllRemoveSignedDataMsg\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\OID\EncodingType 0\CryptSIPDllVerifyIndirectData\{603BCC1F-4B59-4E08-B724-D2C6297EF351}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB926139]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP2\KB926139]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows PowerShell 1.0]
[-HKEY_CLASSES_ROOT\.ps1]
[-HKEY_CLASSES_ROOT\.ps1xml]
[-HKEY_CLASSES_ROOT\.psc1]
[-HKEY_CLASSES_ROOT\Microsoft.PowerShellConsole.1]
[-HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1]
[-HKEY_CLASSES_ROOT\Microsoft.PowerShellXmlData.1]