[wpkg-users] Office 2003 uninstall problem

Pendl Stefan stefan.pendl at haidlmair.at
Fri Apr 17 15:40:03 CEST 2009


Tomasz Chmielewski wrote:
Peter Gough schrieb:
> I'm happy for this to sound a bit dumb idea but do you need a space
> after the /x switch in this line?:
>
> <remove cmd='MsiExec.exe /q /x{90110409-6000-11D3-8CFE-0150048383C9}'/>
>
> I'm not sure how finickety msiexec is on syntax.

It probably won't make any difference.

What does make a difference is remove cmd though and this MSI ID you
have there.

Office 2003 comes in dozens of flavours multiplied by the number of
language versions, so {90110409-6000-11D3-8CFE-0150048383C9} may not
necessarily be the one you have!

You can check it in the registry.


--
Tomasz Chmielewski
http://wpkg.org<http://wpkg.org/>
-------------------------------------------------------------------------
Since searching the registry is taking quite long, I decided to create a batch file which will export the uninstall section to a text file.
The text file is easy to search and fast too.

rem --- code start (watch for line wraps)
@echo off
set machine_name=\\%COMPUTERNAME%\
echo.
set /p remote_name="Enter Computername (Defaults to local Machine): "
echo.
if not %remote_name%X == X set machine_name=\\%remote_name%\
set script_name=%~dpn0
echo Exporting Install Information ...
reg query "%machine_name%HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s >"%script_name%_%machine_name:\=%.txt"
reg query "%machine_name%HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" >nul 2>&1
if %ERRORLEVEL% GTR 0 goto :quit
echo.
echo Exporting WOW64 Install Information ...
reg query "%machine_name%HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" /s >>"%script_name%_%machine_name:\=%.txt"
:quit
echo.
pause
rem --- code end

---
Stefan




More information about the wpkg-users mailing list