Maybe it will help if I post the full code?

It's about outlooksettings.kix which is triggered by the outlooksettings.bat.

=========================
Outlooksettings.bat:

Kix32.exe %0\..\OutlookSettings.kix $ZKey=%1

=========================

OutlookSettings.kix:

SetConsole("HIDE")

; Determine driveletter and path of the installationsource
$zkey = ReadProfileString(@LDrive + "\test.ini","mailid","%username%")
$Scriptspath = @CURDIR

$ApplyPolicy = ReadProfileString("$Scriptspath\OutlookInstall.ini", "Policy", "Apply")

; Write the username to the registry so that the name is already filled in when logging
; on to Exchange
$x = AddKey ("HKEY_CURRENT_USER\Software\Microsoft\Exchange")
$x = WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Exchange", "UserName", $ZKey, "REG_SZ")

; Perform an LDAP query to get to learn the Usermailbox and the Exchangeserver of the user
; that is currently logged on .
cd "$Scriptspath"
$Query = "LdapQ.bat $ZKey"
Shell $Query

;profile aanmaken
cd "$Scriptspath\ing\profile"
$Prof = "kix32.exe profile.kix"
Shell $Prof

;policy (depends on the setting)
if $ApplyPolicy = "yes"
cd "$Scriptspath\ing\registry"
$Pol = "Regedit /s Outlook.reg"
Shell $Pol
EndIf

; Set Outlook 'Logon network security' to 'None'
$OS = @INWIN
If $OS = 1
cd "$Scriptspath\ing\Authentication"
$LogNetSec = "Regedit /s Authentication.reg"
Shell $LogNetSec
Else
cd "$Scriptspath\ing\Authentication"
$LogNetSec = "Regedit /s Authentication98.reg"
Shell $LogNetSec
EndIf

;shortcuts weg
if $OS = 1 ; Windows NT

$OutlookExpr="%USERPROFILE%\Start Menu\Programs\Outlook Express.lnk"
Shell "%SYSTEMROOT%\System32\attrib.exe -r -s -h " + $OulookExpr
del $OutlookExpr

$ConnWizard="%USERPROFILE%\Start Menu\Programs\Accessories\Communications\Internet Connection Wizard.lnk"
Shell "C:\Windows\Command\attrib.exe -r -s -h " + $ConnWizard
del $ConnWizard

else ; Windows 9x

$OutExpress = "C:\windows\Start Menu\Programs\Outlook Express.lnk"
$ShellCmd = 'C:\Windows\Command\attrib.exe -r -s -h "' + $OutExpress + '"'
Shell $Shellcmd
del $OutExpress

$LaunchOut = "C:\windows\application data\microsoft\internet explorer\quick launch\launch outlook express.lnk"
$ShellCmd = 'C:\Windows\Command\attrib.exe -r -s -h "' + $LaunchOut + '"'
Shell $ShellCmd
del $LaunchOut
endif

=================================

_________________________
We should learn from the past... therefor nowadays we students know already the answers before the exam will be given...