On Tue, 3 Jun 2003 11:46 pm, Rosario Esposito wrote:
> Hello,
> I'm trying to modify the install.pl script (in \dosbin directory)
> because I would like
> to get only one question during the installation: "which percentage of
> disk space
> do you want for Windows ?".
> I added, in "ask_fdisk_cmds", something like:
>
> print "Choose percentage of disk space for Windows\n";
> my $perc = <STDIN>;
> chomp($perc);
> $ret='fdisk /pri:'.$perc.',100';
>
Fdisk commands is not the way to go.  If you want windows to take up a certain 
percentage of the disk, change you config.pl to create a very small parition 
for windows installation.  Say 600-700meg.  As far as I'm aware, 2G is still 
the limit for the dos partition size.  

Somehow you need to get the size of the disk, could probably do that with some 
handy work in perl.  I wouldn't know off hand, but could be done. Then set 
ExtendOEMPartition in unattend to 
(diskpercent/100*DiskSize)-fdiskpartitionsize

> It works fine but it is not an "elegant" solution because:
> - when installation starts it asks me for the percentage of disk space
> for Windows
> - then  the disk is partitioned and the system reboots
> - when installation restarts it asks me AGAIN for the percentage of disk
> space for Windows
> - then disk is partitioned but no changing in partition table are
> detected, so the installation goes on
Above will make this problem go away, as until the disk is partitioned you 
will not be asked for the size you want windows to take up.
>
> Unfortuately I'm not a good perl programmer so, any "fast" solution to
> specify the percentage only
> ONCE during the installation would be very appriciated.

Hope this helps a little.

Russell Smith


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to