We cannot uninstall ZENworks for Desktops Management Agent 4.x. Any
way
that we try to uninstall it we receive the following error:

Error 1722. There is a problem with this Windows Installer Package.
A
program run as part of the setup did not finish as expected. Contact
your
support personnel or package vendor.

(Or in event view it gives this message)
Event ID: 11722
Source: MsiInstaller
Product: ZENworks for Desktops Management Agent -- Error 1722.There is
a
problem with this Windows Installer package. A program run as part of
the
setup did not finish as expected. Contact your support personnel or
package vendor. Action ZFDRegisterAxNALServer, location: C:\Program Files\Novell\ZENworks\, command: C:\WINDOWS\System32
\regsvr32.exe /s "C:\Program Files\Novell\ZENworks\AxNalServer.dll"

We have this problem on Windows XP and 98 workstations. I have tried
to
also uninstall the program by running "msiexec /x zfdagent.msi", but I

receive the same error. I tried to un-register and re-register the
axnalserver.dll manually and it seemed to work OK, but that seems to
be
where it is stopping. Exporting to a log file reveals the same thing.


After hours of troubleshooting I have been able to determine that
becuase
we installed zfd4 from a login script that is causing the problem. I

setup a fresh windows xp workstation and installed zfd4 from the
zfdagent.msi file. Then I attempted to uninstall it, it worked just fine. Then I installed zen on a fresh installation of XP from our
login
script and attempted to uninstall it. It didn't work right. Here is
a
copy of the login script:

ECHO OFF
REM ************************************************** **
REM
REM This batch file will install XP ZEN MSI Management Agent.
REM Then run append HOST file with the ZEN server IP.
REM It uses the .flg file to test for previous install.
REM Last Modified 02/25/2003
REM
REM ************************************************** **
ECHO OFF
echo
CLS
if exist %systemroot%\zfd4.flg goto register
CLS

if exist %systemroot%\System32\Drivers\etc\hosts. goto host
goto nohost

:nohost
COPY Z:\Zenworks\Agentinstall\hosts.
%systemroot%\System32\Drivers\etc\*.*
goto agent

:host
FIND "192.168.10.1 zenwsimport" %systemroot%\System32
\Drivers\etc\hosts
if errorlevel=2 goto oops
if errorlevel=1 goto noip
if errorlevel=0 goto agent
goto end

:oops
goto end

:noip
ECHO.>>%systemroot%\System32\Drivers\etc\HOSTS.
ECHO 192.168.10.1
zenwsimport>>%systemroot%\System32\Drivers\etc\HOS TS.
ECHO OFF
goto agent

:agent
COPY Z:\Zenworks\Agentinstall\drishti.dll %systemroot%\System32\*.*
COPY Z:\Zenworks\Agentinstall\zfd4.flg %systemroot%
MSIEXEC.EXE /i "Z:\Zenworks\Agentinstall\ZfDAgent.msi" /qb!-
TRANSFORMS="Z:\Zenworks\Agentinstall\ZfDAgent.mst"
goto end

:register
ECHO OFF
CLS
if exist %systemroot%\zwsreg.flg goto end
if exist "C:\Program Files\Novell\Zenworks\zwsreg.exe" goto import
goto end

:import
COPY Z:\Zenworks\Agentinstall\zwsreg.flg %systemroot%
"C:\Program Files\Novell\ZENworks\zwsreg.exe" -importserver
192.168.10.1
goto end

:end

(Some of the above lines were moved because of the formatting)
So for now we have been avoiding the login script until we can figure
out
what is going wrong and just installing with the MSI file.

However, our problem still remains that we have over 50 workstations
that
we can't uninstall zfd4 on. We can't reinstall or install a newer
copy of
the program because it has to uninstall the old version first and it
gives
the same error.

Does anyone know how we can uninstall the zfdagent.msi package. If we

hack through the registry and remove the files as well it will allow
us to
reinstall the program, but it doesn't work correctly. So that's not
an
option. If anyone could help us it would be greatly appreciated.
Thank
You.

Isaac Rush