New to KiXtart and using this as my starter script.
I want to install Acrobat Reader 7 on the computers and I am trying to think ahead of other software rollouts by seperating the code.
script1 will run a system check on all computers and then calls script2
script2 will check missing installs and configurations.
script3 will run the specific software install.
Question: How do you call the middle of the second script?

script2:
Gosub Acrobat
goto end
:Acrobat
DIM $uninst, $leftpart, $rightpart

;Read Registry key to determine if AR4 is installed
$uninst=ReadValue("KLM\Software....", "UninstallString")
if $uninst<>""
call \\server\kix\acrobat7.kix :ar4_detected (<-this isn't working)
else
call \\server\kix\acrobat7.kix :Install
enfif
RETURN

script3:
Gosub ar4_detected
Gosub MSIparam
Gosub Install
{code...
}
Thanks in advance