It turned out to be the less fancy solution

Code:
 ; ## Copy fresh unattend.txt to x:\ghost\winxp\i386\

copy "z:\script\unattend\unattend.txt" "x:\ghost\winxp\i386\unattend.txt"

; ## Choose to start ghost32.exe automatic

SetConsole(HIDE)

$Selection = MessageBox("Automatic Unattended installation will start in 20 sec.!!!, Press NO to EXIT ? Default = Yes in 20 sec ", "Santa Maria IT avdelning Informerar" , 4,20)
If $Selection = 6
? "Yes selected...."
$Selection = MessageBox("Automatic Unattended installation will start in 20 sec.!!!, Press NO to start only ghost32.exe!!!? Default = Yes in 20 sec ", "Santa Maria IT avdelning Informerar" , 4,20)
If $Selection = 6
? "Yes selected......."

$Selection = MessageBox("A Random Computername will be used in 20 sec.!!!, Press NO To Set a Computername!!!? Default = Yes in 20 sec ", "Computername Setup" , 4,20)
If $Selection = 6

? "No selection, random computername will be used"
run 'x:\ghost\unattend.bat'
exit
quit
ELSE

:Name
SetConsole(MAXIMIZE)
cls
COLOR r+/n
? "Insert Computername here:"?
gets $name
SetConsole(HIDE)

$Selection = MessageBox("Computer NetbiosName= $name , is that correct ?", "KiXtart", 36)
If $Selection = 6
? "Yes selected, continuing...."
$ini = "x:\ghost\winxp\i386\unattend.txt"
$d = writeprofilestring($ini,'Userdata','Computername','$name')

? "Computer name set to = $name"
sleep 2
run 'x:\ghost\unattend.bat'
exit
quit
ELSE
goto name
Endif
ENDIF


ELSE
? "No Selected, starting only ghost...."
run "x:\ghost\ghost32.exe"
exit
quit
ENDIF

ELSE
? "Exiting battle...."
quit exit


ENDIF



Thanks

\erik