Page 1 of 1 1
Topic Options
#125375 - 2004-08-19 04:07 PM Unattended.txt
cellnet Offline
Starting to like KiXtart

Registered: 2002-02-26
Posts: 115
Loc: Sweden
Hello

I dont know if this is possible and if possible I dont know how to do it

Running unattended installation from Bart min XP cd (32)
Using kix32
Today i have a random computername, but would like the option to insert a computername

I would like to have the following:
Input box where user can insert netbios name
Some kind of modification of the computername line in unattended.txt

[UserData]
FullName="Company"
OrgName=My
ComputerName=*
ProductID=xxxxxxxxxxxxxxxxxxxx

regards
\erik

Top
#125376 - 2004-08-19 04:31 PM Re: Unattended.txt
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
See GETS and WriteProfileString() in the manual. If you want to get fancier, there are UDFs that will give you a GUI inputbox.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125377 - 2004-08-19 04:36 PM Re: Unattended.txt
cellnet Offline
Starting to like KiXtart

Registered: 2002-02-26
Posts: 115
Loc: Sweden
think I need the fancy option

Its targeted at endusers on remote locations.

Can you point me in some direction

\erik

Top
#125378 - 2004-08-19 04:49 PM Re: Unattended.txt
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You may get snookered though with a lack of GUI support during the install process. Most of the GUI prompt solutions require either IE, or Excel, or KiXforms. I think a popular approach to computer naming is to rename the computer after the installation using NETDOM.

I really would not trust BDUs in the field to assign proper names and would want to automate it somewhat. What if you supplied the unattended.txt file on a floppy with the unique name already in it? Or you could have a separate unattended.txt file builder script that ran on another box that could interact with a central script to assign the unique name.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#125379 - 2004-08-20 02:41 PM Re: Unattended.txt
cellnet Offline
Starting to like KiXtart

Registered: 2002-02-26
Posts: 115
Loc: Sweden
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

Top
Page 1 of 1 1


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

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.058 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

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