#72475 - 2003-01-08 10:34 PM
Citrix Client Silent installer
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
code:
; -- Please refer to: http://www.winnetmag.com/Articles/Index.cfm?ArticleID=7965 ; -- If you download the ICA32.EXE from http://www.citrix.com, you will need WinZIP or ; -- Similar program to Extract the files from the self-extracting archive ; -- Create the SETUP.ISS file by running the SETUP.EXE with a -r switch ; -- When completed, you will find the SETUP.ISS in your Windows Directory ; -- Users will need to have Power User rights or better to run this BREAK ON CLS $windir = READVALUE('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion','SystemRoot') $systemdrive = SUBSTR($windir,1,2) $PathString = '\\APPSERVER\Apps\Citrix'
IF exist($systemdrive+'\Program Files\Citrix\ICA Client\pn.exe') RETURN ELSE 'Citrix is being installed. Please wait..' SLEEP 3 RUN '$PathString\disk1\setup.exe -s -f1$PathString\setup.iss' RETURN ENDIF
Have fun!
Kent [ 09. January 2003, 03:14: Message edited by: kdyer ]
|
Top
|
|
|
|
#72477 - 2003-01-08 11:49 PM
Re: Citrix Client Silent installer
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I have found that it is often better to use shell, instead of run...
When setting up a new machine or other case of when multiple apps may need to be installed, the use of RUN may cause messages like "another instance of setup.exe is running... etc"
SHELL also allows the app to completely install, and the opportunity to verify/inventory the installation after it completes.
I wrote Updateapp() UDF to provide a simple offer/logging system for the deployment of apps... While it doesn't provide any installation features it does manage the logging of offers and acceptance of apps.
|
Top
|
|
|
|
#72478 - 2003-01-09 03:13 AM
Re: Citrix Client Silent installer
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Rad,
Quick question..
> I have found that it is often better to use shell, instead of run...
Do you simply run SHELL or do you run a %COMSPEC% /C with it?
f.e. code:
SHELL '%COMSPEC% /C $PathString\disk1\setup.exe -s -f1$PathString\setup.iss'
Thanks,
Kent
|
Top
|
|
|
|
#72479 - 2003-01-09 03:17 AM
Re: Citrix Client Silent installer
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
usually I just use shell... especially for windows apps
%comspec% /c I only use when I have to... for redirections, command-line commands, and sometimes for commands that have lots of parameters/switches.
|
Top
|
|
|
|
#72481 - 2003-01-09 03:23 AM
Re: Citrix Client Silent installer
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
examples:
shell '"C:\Program Files\Common Files\Cognos Shared\cer1\Uninstall\uninst.exe" /u "C:\Program Files\Common Files\Cognos Shared\cer1\Uninstall\uninst.ini"' shell "%comspec% /c rd /s /q c:\cognos"
Shell "\\itss\setupl$\metaframe\Setup.exe -s"
Shell "\\lobster\software\QP3.4\Client\Setup.exe -s"
Shell("cmd /c $setup\Apps\LetterListener\letters.msi")
Sometimes you HAVE to use %comspec%... but others you don't. I doesn't hurt if you have it in there unnecessarily
|
Top
|
|
|
|
#72482 - 2003-01-09 03:23 AM
Re: Citrix Client Silent installer
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jens/Doc,
Can you move this topic to the Kixtart FAQ Forum?
This seems like a good candidate for this.
Kent
|
Top
|
|
|
|
#72483 - 2003-01-09 03:24 AM
Re: Citrix Client Silent installer
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
BTW...
code:
; ************************* Install Metaframe ******************************* If ingroup("Area_MetaFrame")=1 and exist("C:\PROGRAM FILES\Citrix\ICA CLIENT\Uninst.isu")=0 if updateapp("Citrix_Metaframe")="yes" Shell "\\itss\setupl$\metaframe\Setup.exe -s" $=Writeprofilestring("$logon\inventory\Install.log","Metaframe","@wksta","@date") sleep 20 endif endif ; ******************* Remove metaframe from unnecessary PCs ****************** If ingroup("Area_MetaFrame")=0 and exist("C:\PROGRAM FILES\Citrix\ICA CLIENT\Uninst.isu")=1 and Ingroup("areamis")=0 ? " Uninstalling Citrix Metaframe" $UnstKey=ReadValue("$HKLMSMWCV\Uninstall\Citrix ICA Client","UninstallString") Shell "$UnstKey" $=Writeprofilestring("$logon\inventory\UnInstall.log","Metaframe","@wksta","@date") endif
|
Top
|
|
|
|
#72485 - 2003-01-09 02:35 PM
Re: Citrix Client Silent installer
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Les,
You are right, quite often the InstallShield doesn't complete before continuing with the script. This is because the InstallShield application spawns another process...because the original setup.exe has completed then then the KiX script continues.
If this is the case then consider adding the "-SMS" parameter to your InstallShield installations. This disables the spawning of this process I describe above.
Lee
|
Top
|
|
|
|
#72486 - 2003-01-09 03:00 PM
Re: Citrix Client Silent installer
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Doc,
I will have to distill this down and place it in the FAQ. There are some good points raised here.
Rad - Good info.
Lee - Interesting.
Hmmm..
Kent
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 587 anonymous users online.
|
|
|