Page 1 of 1 1
Topic Options
#72475 - 2003-01-08 10:34 PM Citrix Client Silent installer
Kdyer Offline
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 ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#72476 - 2003-01-08 10:40 PM Re: Citrix Client Silent installer
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Addendum:

This approach works with virtually all installer packages that make use of InstallShield. The '-r' is for the recording of the silent install and the -s runs the silent install silently. You can also specify on the command line where to save/load the SETUP.ISS from/to. You could therefore have multiple SETUP.ISS within the same install directory and vary the actually used .ISS file.

See http://www.appdeploy.com/tips/detail.asp?id=18 for a complete list of switches.
_________________________
There are two types of vessels, submarines and targets.

Top
#72477 - 2003-01-08 11:49 PM Re: Citrix Client Silent installer
Radimus Moderator Offline
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.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#72478 - 2003-01-09 03:13 AM Re: Citrix Client Silent installer
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#72479 - 2003-01-09 03:17 AM Re: Citrix Client Silent installer
Radimus Moderator Offline
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.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#72480 - 2003-01-09 03:19 AM Re: Citrix Client Silent installer
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I most often find that with InstallShield silent installs, regardless of shell or START /W, it won't wait for the install to finish.
code:
? "We have now to install IBM CA but first cleanup from prior installs"
SHELL 'deltree /Y "%TEMP%\_ISTMP*.DIR"'
CLS

? "Launching the main install"
run '"\\ffsms\Seed\IBM Client Access\Express\Setup.exe" -S'

;? "Waiting for the core install to start"
sleep 10

? "Waiting for the core install to finish" ?
$Index = 0
while exist("%temp%\_ISTMP1.DIR")
"."
sleep 10
$Index = $Index + 1
if $index > 20
$RC = MessageBox("NOTICE!" + Chr(13) + "Installation did not complete within a reasonable time!"
+ Chr(13) + "Please notify the FF HelpDesk at ext. 1864","IBM Client Access Express",48,60)
goto finish
endif
Loop

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#72481 - 2003-01-09 03:23 AM Re: Citrix Client Silent installer
Radimus Moderator Offline
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
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#72482 - 2003-01-09 03:23 AM Re: Citrix Client Silent installer
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#72483 - 2003-01-09 03:24 AM Re: Citrix Client Silent installer
Radimus Moderator Offline
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

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#72484 - 2003-01-09 08:52 AM Re: Citrix Client Silent installer
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
I could move it Kent, but it would not fit the typical 1 or 2 posts max that the FAQ has.

What did you have in mind? Can't you just copy what portion you want to the FAQ?

Let us know....

Top
#72485 - 2003-01-09 02:35 PM Re: Citrix Client Silent installer
Lee Wilmott Offline
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 Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#72487 - 2003-01-09 03:07 PM Re: Citrix Client Silent installer
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
DOC, Kent,
You could move (actually copy, keeping the original) to the FAQ. Kent can then do some liberal editing on the FAQ copy and reference this one.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#72488 - 2003-01-09 04:38 PM Re: Citrix Client Silent installer
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The '-SMS' is a documented switch in the link I posted. I'm calling silent setups with the following parameters: 'setup.exe -s -SMS -z' and potentially the switch to point to different setup.iss files if I have multiple options for the application install.

[ 09. January 2003, 16:38: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#72489 - 2003-01-14 08:14 AM Re: Citrix Client Silent installer
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
This is now posted in the Kixtart FAQ Section - InstallShield - How do we deploy an application?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 492 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.064 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org