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.