Or the even easier answer is just modify the config.pl, and have the different unattended.txt files in the site directory. For example from my config.pl:

# File to hold site-specific customizations.

# Enable maximum warnings and disallow sloppy constructs.
use warnings;
use strict;

my $media_obj = Unattend::WinMedia->new ($u->{'_meta'}->{'OS_media'});
my $os_name = $media_obj->name ();

if ($os_name =~ /Windows 2000/) {
    $u->read (dos_to_host ('z:\\site\\win2k-un.txt'));
}
elsif ($os_name =~ /Windows XP Professional/) {
    $u->read (dos_to_host ('z:\\site\\winxppun.txt'));
}
elsif ($os_name =~ /Windows XP/) {
    $u->read (dos_to_host ('z:\\site\\winxp-un.txt'));
}
else {
    die "Unrecognized OS name: $os_name";
}

1;


For the unattended names I stuck to eight characters, since I don't know what what would happen if you use more than eight.


At 09:39 AM 1/29/2005, you wrote:
Sebastian Zolg a �crit :
Hello
my unattended server works know greatly ! thanks for all ... to all !
But i want to do more. Is it possible to set an unattended.txt file for a
windows XP home and one for the windows XP pro ?? with different settings ?
Sure.

You have to set an unattend.csv or a mysql database. in conjonction with
 config-csv.pl, you will be able to choose any property you want based
on MAC address, or any other parameter, like OS type. Then you can
select automatically any unattend-osxx.txt files that you want.

In Case i want to chose to install the WINXP Pro and then the sript should
take take the "unattended.txt for PRO". Other i want to chose the WINXP Home an then it takse the "unatteded.txt.
for Home ??
How can i made these ?
Look at the doc enclosed in config-csv.pl
can i set more then one unatteded.txt in the site directory ?
thanks
greets



------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ unattended-info mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to