Page 2 of 2 <12
Topic Options
#20454 - 2002-04-23 05:36 PM Re: Insalling package
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Yep.. the first " in the second post was a mistake.. Blah.. I'm gonna go batty!!! lol -- durn coding errors.. almost as bad as the

"then IF blah blah blah" when then wasn't meant to be part of the code. lol (If you don't understand, don't worry.. noone else does, either!)

Brian

Top
#20455 - 2002-05-20 05:01 PM Re: Insalling package
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Another problem can be the way of calling your shell (= you will wait for
completion of installing package)
Our suggestion is:
code:
IF (KeyExist("HKCR\Avg.kernel") = 1)
? "Installing Avg ...."
IF (SubStr(@scriptdir,len(@scriptdir),1) <> "\")
$cmd=@scriptdir+"\"
ELSE
$cmd=@scriptdir
ENDIF
IF (Exist($cmd+"avg.exe") = 1)
$cmd=$cmd+"avg.exe /s"
SHELL '%comspec% /c start /wait '+$cmd
? "completed."
ELSE
? "Warning. missing AVG file."
ENDIF
ENDIF

greetings.

btw:
- in kixtart 4.x releases you can use abbreviations for HIVE registry keys.
- it can be possible that "@scriptdir" is returning an unexpected value. f.e.
with or without a "\" symbol.
- it is possible that your package creates another task, which will result
in a direct completion of installation process. to prevent it we are using
the "start /wait" part.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 2 of 2 <12


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

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

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

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