Tirsdag 27 november 2007 23:41, skrev Brian May: > On Mon, Nov 26, 2007 at 01:18:39PM +0100, Nils Olav Fossum wrote: > > Mandag 26 november 2007 12:22, skrev Brian May: > > > My assumption (correct me if I am wrong) was that by default the user > > > would get prompted to add these directories to OemPnPDriverPath. > > > > Yes, correct > > > > > So if you have same copies of winxpsp2 that use driverspack and some > > > which do not, this might be an issue. > > > > No, by default you can choose the OS you want. > > It does not mather what the OS directory under z:\os is named. > > So it should be no problem to have nearly identical OS-trees. > > No, I meant if you tried to hide the prompt. You could hard code the > OemPnPDriverPath in unattend.txt, but then the user will never get prompted > even if installing from an OS which requires the prompt.
Yes, I see what you mean :-) And I sometimes do just that (see below) > > A better solution might be to set both OemPnPDriverPath and OS as per > computer settings, maybe in unattend.csv (or whatever you use). Yes, I have something like this (this is simplifyed) in my site/config.pl: sub ask_hwprofile_preseed () { print "\nChoose Machine Hardware preseed setup.\n"; my $ret = menu_choice ('No pre-setup for this hardware (continue)' => undef, 'Dell Optiplex 745', => 'z:\\site\\preseed\\dello745.txt', 'Fujitsu Siemens E3500' =>'z:\\site\\preseed\\fsce3500.txt', 'HP DC-5750 AMD FylkesavtPC' =>'z:\\site\\preseed\\hpdc5750.txt', ); defined $ret or return undef; return $ret; } # sub ask_hw_preseed sub ask_swprofile_preseed () { print "\nChoose Software preseed setup.\n"; my $ret = menu_choice ('No Software pre-setup for this machine (continue)' => undef, 'Internsone Standard (domene)', => 'z:\\site\\preseed\\mgkisone.txt', 'ExternPC No Domain', => 'z:\\site\\preseed\\externpc.txt', 'minimal test', => 'z:\\site\\preseed\\minitest.txt', 'Testinstall :-) ', => 'z:\\site\\preseed\\test-sw.txt', ); defined $ret or return undef; return $ret; } # sub ask_sw_preseed my $hw_preseed = ask_hwprofile_preseed (); if (defined $hw_preseed) { print $hw_preseed; $u->read (dos_to_host ($hw_preseed)); my $sw_preseed = ask_swprofile_preseed (); if (defined $sw_preseed) { print $sw_preseed; $u->read (dos_to_host ($sw_preseed)); } } Basically: First ask witch hw settings I want added to unattend.txt Then ask witch software script(s) to run. The generation of the final unattend.txt is as follows: 1: read the default unattend.txt 2: add or override the settings from site/unattend.txt 3: add or override the settings from the hw-select menu 4: add or override the settings from the sw-select menu 5: write the final unattend.txt to disk as an example, the dello745.txt: [_meta] fdisk_cmds = "fdisk /clear 1;fdisk /pri:12288;fdisk /pri:100,100 /spec:7;fdisk /delete /pri:1;fdisk /pri:4000;fdisk /activate:1" fdisk_confirm=0 edit_files=0 OS_media = Z:\os\winxpsp2 [Unattended] OemPnPDriversPath = "drv-dell\opti-745;drv-chip\wdm_178;drv-misc\kb888111" and a example from the sw menu: (mostly settings for skipping questions) [Identification] JoinDomain = my_domain [GuiUnattended] AdminPassword=secretpasswd [_meta] ntp_servers="" local_admins="" edit_files = 0 top = mgk-internsone.bat middle = "" ;bottom = "" Works for me :-D ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ unattended-info mailing list unattended-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-info