citrix3 Multiple Entries In Add/Remove Programs

Darryl Poole I am using Packager to create an unattended install of a non msi application. For example I want to install a microsoft hotfix so I download the hotfix from Microsoft and run hotfix.exe -x to extract the contents to a unc share (\\server\repository\hotfix) I then run packager and create a new project specifying a unattended install and pointing to update.exe of the hotfix. I also specify /u for unattended install. Once I deploy this package to a server and inspect the Add/Remove programs it will indicate 2 entries for this one package. One entry appears to be the name I originally called the package (KB837001) and another will be the name that microsoft registers for the hotfix (Windows 2000 Hotfix - KB837001) As an experiment I uninstall the package using the CMC and inspect the add/remove programs on the target server. The microsoft entry still remains (Windows 2000 Hotfix - KB837001) while the citrix one has disappeared. Even after uninstalling the package from the CMC the hotfix still remains installed. From there I can manually remove the hotfix from the add/remove programs by manually logging onto the server. Has anyone else experienced this issue with packaging unattended hotfixs/windows service packs? (non msi)

Thanks,
Darryl


jpitsch609 Did you check to make sure that someone hadn’t already installed the hotfix? Also make sure that automatic update is turned off on the server.

Darryl Poole Hi, these servers are brand new builds only containing the minimum software. Windows automatic updates are disabled. Nobody updates any patches except for myself. Can somebody perform an installation of a hotfix using the instuctions I give and see if they get one entry or two in the add/remove programs.

help4ctx The following text is from the application compatibility guide for FR3, for packaging W2K SP2, but I would guess the concept is the same. This suggests that uninstalling a package deployed in ‘unattended’ mode cannot be uninstalled.

Compatibility Issues

• Record. The installation of service packs requires restarting, which interferes with the recording of an nstallation. Citrix recommends that you use the Add Unattended Program option.
• Uninstall. You cannot uninstall applications that were installed in unattended mode.

May be this is contributing to the problem. The App compatibility guide is here:

http://ctxex10.citrix.com/kb/entry!default.jspa?categoryID=195%26#38;entryID=2453%26#38;fromSearchPage=true


CitrixCanuck1 Here’s how I deploy MS patches where I’m at (and other apps that require post-MSI-installation customizations). We use a template wfs file and modify it according to the installation.

Here’s what you need
Your WFS file (see attached)
an installation .cmd file (see attached)
an uninstallation .cmd file (see attached)

1. Contents of WFS file
NOTES:
A)You have to change the ProductID. You can do this using any program that can generate an application ID (Wise, Wininstall, even the Packager I believe)
B)The description is for the IM app that shows up in the Add/Rem Wizard.
C)The bold sections that contain a command line are where you enter the path to your _install.cmd file and _remove.cmd file
D)To get the uninstallation string, I usually install the patch on a test box, the run regedit and go to HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall. It should be listed under the patch Q or KB number. If the uninstall uses spuninst.exe, you can use the -z -q for quiet-no reboot. I make a habit to suppress all reboots and control it using the IM options. This saves some headaches when installing packages as part of a group.

[$version 3, codepage 1200$]
[Main]
Version=3
Description=zz_MF-MSKB823182 (Authenticode Verification Flaw)
Creator=ALTiS Customer
ProductID=5F600D2F8CF84C97846B0FCDD3B6BF9B
EnablerVersion=Version 2.0.0.1036 Release
SetupRequiresAdmin=F
ConfigOnly=F
Require=’%!Split(OSVER,v)% (”%OS%”=”WinNT” %26#38; %v1%=5)’,This product does not support the operating system of this computer.

[GlobalSymbols]
_NT351=%!Split(OSVER,v)%%!eval(’”%OS%”=”WinNT” %26#38; %v1%=3 %26#38; %v2%=51′)%
_NT4=%!Split(OSVER,v)%%!eval(’”%OS%”=”WinNT” %26#38; %v1%=4′)%

[Setup]
DestFileInUseAction=reboot
FileErrorAction=fail
DefineSymbols=T, GlobalSymbols
ConfigActions=T, Run install.cmd
ConfigActions=T, RegisterProductSetupActions

[UserSetup]
DestFileInUseAction=continue
FileErrorAction=continue
DefineSymbols=T, GlobalSymbols

[Repair]
DestFileInUseAction=reboot
FileErrorAction=fail
DefineSymbols=T, GlobalSymbols
ConfigActions=T, RegisterProductSetupActions

[Remove]
DestFileInUseAction=reboot
FileErrorAction=continue
DefineSymbols=T, GlobalSymbols
ConfigActions=T, RegisterProductRemoveActions

[LaunchConditionSetupActions]
ExitIf=%!if(’!(%!Split(OSVER,v)% (”%OS%”=”WinNT” %26#38; %v1%=5))’)%, This product does not support the operating system of this computer.

[UserRemove]
DefineSymbols=T, GlobalSymbols

[Run install.cmd]
ShellExecute=\\IMserver\IMShare\Microsoft\Hotfixes\KB823182\_install.cmd,T,open,%TEMPDIR%,,NORMAL
[RegisterProductSetupActions]
RegisterProduct=

[RegisterProductRemoveActions]
ShellExecute=\\IMserver\IMShare\Microsoft\Hotfixes\KB823182\_remove.cmd,T,open,%TEMPDIR%,,NORMAL

2. Contents of _install.cmd
rem @echo off
setlocal

net use x: \\IMServer\IMShare /PERSISTENT:NO
set PATHTOFIXES=x:\Microsoft\Hotfixes\KB823182

%PATHTOFIXES%\Windows2000-KB823182-x86-ENU.exe /Q /Z

3. Contents of _remove.cmd
rem @echo off
setlocal

C:\WINNT\$NtUninstallKB835732$\spuninst\spuninst.exe -z -q

There is a reference guide somewhere that shows you the syntax for wfs files and includes the ShellExecute command.

Ah, here it is
http://support.citrix.com/kb/entry!default.jspa?categoryID=198%26#38;entryID=1051%26#38;fromSearchPage=true

Message was edited by: CitrixCanuck1


Vinayak Astekar I have packaged couple of hotfixes. You are right, MS Installer and Citrix packager both make an entry in Add/Remove Programs. [The entry name for Citrix Package is from the Description of the package within WFS file] Once you uninstall (the one which you can), and re-boot, both the entries are gone.

The one’s MS says which cannot be uninstalled, atleast MS-Installers entry in Add/Remove Programs remains.

Category: citrix4.5

Leave a Reply