[Unattended] Win2kSP4 Defrag does not close after completion

2004-01-08 Thread Tyler Hepworth
Title: Message



I set up Window 2000 
SP4. Disk Defragment runs but does not close after completion. Any 
ideas?


[Unattended] How to pass Office Key into %pidkey%

2004-01-09 Thread Tyler Hepworth
Title: Message



How do I 
automatically feed the Office Key into the pidkey variable? I know that it 
is called as part of with-env.pl and you had said that you call it from 
sales.bat, but I don't call office from one of the master bat files. I 
have it set as an optional install. How would I set it when it is being 
called optionally?

Thanks,

Tyler 
Hepworth
Computer 
Specialist
Nature's Sunshine 
Products


[Unattended] MEMDISK Error

2004-01-21 Thread Tyler Hepworth
Title: Message



Trying to boot a 
Toshiba Portege via external pcmcia CD drive. I was able to successfully 
boot and load the dialog script once. I chose to partition the whole drive 
at which point the computer rebooted. Cannot get it to boot from the cd 
any longer. I get the the following info on the 
screen:

Loading 
memdisk
Loading 
e100b.imz
Ready.
MEMDISK 2.07 
2.07-pre5 Copyright 2001-2003 H. Peter Anvin
. lots of memory 
addresses displayed ..
Ramdisk at 
0x0eeb, length 0x00081326
Moving compressed 
data from 0x0eeb to 0x0ed76c00
gzip image: 
decompressed addr 0x0edf8000, len 0x00169000: failed
Decompression error: 
ran out of iput data
ran out of input 
data


Any ideas why I got 
it to boot once, but now no longer?


Tyler 



RE: [Unattended] MEMDISK Error

2004-01-21 Thread Tyler Hepworth
I upgraded to 3.5.  I got past the memdisk error, but now the bootup hangs
at:

Initializing TCP/IP via DHCP

Doesn't go any farther than that.

Tyler



-Original Message-
From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 12:38 PM
To: Tyler Hepworth
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Unattended] MEMDISK Error


Tyler Hepworth [EMAIL PROTECTED] writes:

 Loading e100b.imz
 Ready.
 MEMDISK 2.07 2.07-pre5 Copyright 2001-2003 H. Peter Anvin

There were some problems with compressed floppy images and MEMDISK 2.07.  We
upgraded to 2.08 in Unattended 3.5; please try it and let me know what
happens.

 - Pat


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Howto remove components from Office

2004-01-26 Thread Tyler Hepworth
Title: Message



Hi 
all,

I would like to know 
how to install everything but Access and FrontPage in an Office install. What 
would I add to the command line to do this?

Thanks,

Tyler 



[Unattended] Curse HP SoftPAQs! Is there are workaround.

2004-01-27 Thread Tyler Hepworth
Title: Message



HP has taken to 
bundling their drivers into binary executables called SoftPAQs. It is 
possible to extract the contents from the executable, but still the driver setup 
files do not contain .inf files that point to dlls, etc. The driver setup 
files are all in setup.exe format. This makes it impossible to place 
drivers into the $oem$\$1 directory and have them installed during setup. 


I have figured out 
how to get the SoftPAQs transferred to the local hard drive. I place 
dummy.inf files in the same directory as the executable driver files. They 
then get copied over. I wait for the script to give up because it can't 
connect to the network (once windows is running) and then I install all the 
drivers manually. After all the hardware is functioning, then I have to 
install Perl by hand, and then I can finally invoke "todo.pl postinst.bat" and 
have it pick up where it left off.

My questions is, 
would it be possible to specify during the install dialog that there are SoftPAQ 
files to be setup and then have the script copy the exes to the hard drive and 
then automatically run each exe. Can all this be done before a network 
drive is mapped and so forth?


I hope this makes 
sense. Its hard to explain in words.


Thanks,

Tyler

 



RE: [Unattended] Unattended printer installation

2004-01-27 Thread Tyler Hepworth
If you are on a domain and have point and print setup on your print servers,
you can also use a simple vbscript to install the printers

Set WshNetwork = CreateObject(WScript.Network)
WshNetwork.AddWindowsPrinterConnection \\printserver\printer_name

Put those lines in a .vbs file and then push the file onto todo.pl.  I wrote
a patch to install.pl that gives me a multiple choice dialog of all the
printers in my domain.  I can select which printers I want to be auto
installed (during the initial setup dialog).  A .vbs file is then
automatically created just like one above.  It contains all the printers
that I chose during the dialog and is pushed into postinst.bat along with
all the other items that need to be taken care of.  This is convenient for
me since I have over 30 printers of which I might only install 2-3.

-Original Message-
From: Niels de Groot [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 23, 2004 3:07 PM
To: '[EMAIL PROTECTED]'
Subject: [Unattended] Unattended printer installation


Hi everybody,

I just found an interesting page on the web about installing printers 
unattended.
By pushing a commandline similar to the following onto todo.pl you can 
install shared printers very easily.
(I may have made a mistake with the escaped quotes, but I think the idea is 
clear enough)

todo.pl start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
\\\server\printer\ /m \description\

For more information you can run rundll32 printui.dll,PrintUIEntry /? 
from a Windows 2000/XP commandline, or check Microsoft knowledgebase 
articles 314486 and/or 189105

You could also wrap this into an optional package by adding your favorite 
printers to a batch file in the \scripts directory...

:: OPTIONAL: Install default network printers
todo.pl start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
\\\server\printer\ /m \description\


This works best if the drivers needed are on the printserver. If not you 
can use for exapmle Windows built-in drivers by adding a few options to the 
commandline. Check the knowledge base for more details.

Niels de Groot,
[EMAIL PROTECTED]


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Unattended printer installation

2004-01-28 Thread Tyler Hepworth
Well, I have never given much thought to that question, but I suppose my
simple vbscript would not address that issue.  However, I was reading up on
Neils' post about rundll32 printut.dll and one of the options is has is to
store and restore printer settings from a file.  So, I think it would be
possible to configure the printer and then store its settings.  Then, when
you pass the rundll32 command to todo.pl, one of the options would be to
restore printer settings from the file.  I can't confirm this, but this
appears to be the case from what little reading I have done.

Tyler



-Original Message-
From: Paul Griffith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 7:19 AM
To: Tyler Hepworth
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Unattended] Unattended printer installation



Just a follow up question as I debate using Ghost or the unattend package.
How do you or would you configure your printers? All the the printers I
deploy in the lab have the duplex option enabled and I notice that if I do
not enable duplex after I install the driver and make it the default on the
computer it prints in simplex mode (single sided).


Thanks
Paul



On Tue, 27 Jan 2004, Tyler Hepworth wrote:

 If you are on a domain and have point and print setup on your print 
 servers, you can also use a simple vbscript to install the printers

 Set WshNetwork = CreateObject(WScript.Network) 
 WshNetwork.AddWindowsPrinterConnection \\printserver\printer_name

 Put those lines in a .vbs file and then push the file onto todo.pl.  I 
 wrote a patch to install.pl that gives me a multiple choice dialog of 
 all the printers in my domain.  I can select which printers I want to 
 be auto installed (during the initial setup dialog).  A .vbs file is 
 then automatically created just like one above.  It contains all the 
 printers that I chose during the dialog and is pushed into 
 postinst.bat along with all the other items that need to be taken care 
 of.  This is convenient for me since I have over 30 printers of which 
 I might only install 2-3.

 -Original Message-
 From: Niels de Groot [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 23, 2004 3:07 PM
 To: '[EMAIL PROTECTED]'
 Subject: [Unattended] Unattended printer installation


 Hi everybody,

 I just found an interesting page on the web about installing printers 
 unattended. By pushing a commandline similar to the following onto 
 todo.pl you can install shared printers very easily.
 (I may have made a mistake with the escaped quotes, but I think the idea
is
 clear enough)

 todo.pl start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
 \\\server\printer\ /m \description\

 For more information you can run rundll32 printui.dll,PrintUIEntry 
 /? from a Windows 2000/XP commandline, or check Microsoft 
 knowledgebase articles 314486 and/or 189105

 You could also wrap this into an optional package by adding your 
 favorite printers to a batch file in the \scripts directory...

 :: OPTIONAL: Install default network printers
 todo.pl start /wait rundll32 printui.dll,PrintUIEntry /if  /r 
 \\\server\printer\ /m \description\


 This works best if the drivers needed are on the printserver. If not 
 you can use for exapmle Windows built-in drivers by adding a few 
 options to the commandline. Check the knowledge base for more details.

 Niels de Groot,
 [EMAIL PROTECTED]


 ---
 The SF.Net email is sponsored by EclipseCon 2004
 Premiere Conference on Open Tools Development and Integration See the 
 breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
 http://www.eclipsecon.org/osdn 
 ___
 unattended-info mailing list [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/unattended-info


 ---
 The SF.Net email is sponsored by EclipseCon 2004
 Premiere Conference on Open Tools Development and Integration See the 
 breadth of Eclipse activity. February 3-5 in Anaheim, CA. 
 http://www.eclipsecon.org/osdn 
 ___
 unattended-info mailing list [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/unattended-info


-- 
Paul Griffith | York University, Dept. of Computer Science CSB1003A
CS Technical Team | 4700 Keele Street,Toronto, Ontario, Canada M3J 1P3
[EMAIL PROTECTED] | Phone: 416-736-2100 x70258 Fax: 416-736-5872


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Patch to install.pl that creates printer selection dialog

2004-01-28 Thread Tyler Hepworth
Title: Message




I wanted a way to 
specify printers during the initial dialog and have them installed as part of 
the process. I made some modifications to install.pl and created a 
printers.pl script that I placed in the "site" folderto accomplish this 
task. I keep a text file in "site" that contains a list of full unc paths 
to my various printers. During the initial dialog, this list is pulled up 
and the printer install choices are displayed as a multi-choice dialog. If 
any printers are selected, they are stuffed into a .vbs file that is run during 
postinst.bat. The vbs file contains Windows Script Host code that installs 
the printers.


###
Changes made to 
Install.pl
###

Added the following 
lines to "sub create_postinst_bat ()". The code is placed right after the 
section "# NTP servers"
---
# 
Printers
if (-e 
"c:/netinst/printset.vbs") {push @postinst_lines, "call 
c:\\netinst\\printset.vbs";}


Added the following 
lines after "# Create C:\netinst and subdirectories." and before "# Create 
unattend.txt file." 

# Call site-specific 
printer setup dialog.my $print_conf = 
'z:\\site\\printers.pl';

if (-e $print_conf) 
{ my $pr_result = do $print_conf; 
$@ and die "do $print_conf failed: 
$@"; defined 
$pr_result or die "Could not do 
$print_conf: $^E";}


Added the following 
lines so that a new option would be pushed into @edit_choices. The code 
was placed after the push of "$doit" into @edit_choices.
--
my $printsetup = 
$u-{'_meta'}-{'printsetup'};defined 
$printsetup and push 
(@edit_choices, 
"Edit $printsetup (will be run by 
$postinst)" 
= $printsetup);



###
Contents of 
printers.pl
###

sub 
create_print_setup () {my $netinst = 'c:\\netinst';my 
@print_lines;my $print_string = 
$u-{'_meta'}-{'printers'};my @printers = split /;/, 
$print_string if ($print_string);if (scalar @printers  0) 
{push @print_lines,'Set WshNetwork = 
CreateObject("WScript.Network")';foreach (@printers) 
{push @print_lines, 
"WshNetwork.AddWindowsPrinterConnection 
\"$_\"";}}if (scalar @print_lines  0) 
{open (OUT, "$netinst\\printset.vbs");print "Creating 
$netinst\\printset.vbs...";foreach (@print_lines) 
{print OUT "$_\n"}print 
"done.\n\n";}return 
'c:\netinst\printset.vbs';}

$u-comments 
('_meta', 'printers') = ['Printers to be 
installed'];

$u-{'_meta'}-{'printers'} 
= sub { my $printers = 
"z:/site/printers.txt"; my 
@print_array;if (-e $printers) { 
open (IN, "$printers") || warn "Could not open file: 
$!"; while (IN) 
{ chomp; 
push @print_array, $_; 
} close 
(IN); @selected_printers = 
multi_choice ('Choose printers to 
setup.', 
@print_array); return 
join ';', @selected_printers; 
}};

$u-{'_meta'}-{'printsetup'} = 
\create_print_setup;



Sample contents of 
printers.txt


\\my_print_server\printer1
\\my_print_server\printer2
\\my_print_server\printer3



###
Notes
###

printers.pl and 
printers.txt both go in "install\site"

The local admin 
account on theclient must have the same password as the local admin 
account on the print server or else the .vbs script will fail (won't be able to 
access the print server to setup the printer).

The printers must be 
setup on the print server such that they can be installed by just calling the 
full unc path to the printer from a command line or run 
dialog.


[Unattended] Adding custom scripts to initial setup

2004-01-30 Thread Tyler Hepworth
Title: Message




Is it possible to 
add custom questions to the initial install dialog without modifying 
install.pl? I have already made one patch to install.pl but I want to stay 
away from that if possible so that I don't run into problems with 
upgrades. 

Thanks,

Tyler



[Unattended] Cant locate inifile.pm in @inc

2004-02-04 Thread Tyler Hepworth
Title: Message




I wrote a script 
that use Unattended::Inifile to grab a value out of the unattend file. 
However, this does not take place until fairly late in the install after perl 
and windows have been installed. 
When the script executes, I get the following message:

"Can't locate 
unattend/inifile.pm in @INC (@INC contains: c:/perl/lib c:/perl/site/lib .) at 
.."

How can I fix it so 
unattend/inifile.pm is accessible by my scripts?

Thanks,

Tyler

p.s. Whatsup with the mailing list? I 
generally have to post twice before my posts come through. That, or posts 
are delayed by several hours.


[Unattended] PXE Setup without RIS in pure Microsoft Environment

2004-02-05 Thread Tyler Hepworth
I got network booting to work using nothing more than a Microsoft DHCP
server and the builtin Microsoft tftp client.  No RIS, no third party tftp
daemons needed.  It works quite well.

It is possible to setup a PXE server on Widows 2000 server without
installing RIS.  Do all of this on whatever machine is serving DHCP.


DHCP Configuration

1.  Open the DHCP control panel from administrative tools.

2.  Expand the server you are wanting to configure.  Expand the Scope
folder.  Right click on Scope Options and select Configure Options.

3.  Put a check mark in 013 Boot File Size and enter the file size in 512
octet blocks.  Example, your boot image file is 12 KB (kilobytes).  Convert
12 KB to bytes (12288).  This must be exact, don't just multiply 12 by 1000.
Divide the file size in bytes by 512 (12288 / 512).  Enter the resulting
number (24) in the text dialog that is enabled when you put a check in 013.

4.  PUt a check mark in 043 Vendor Specific Info and enter the following
binary value: 01 04 00 00 00 00 ff.

5.  Open a command window and type the following:
c:\netsh
netshdhcp
netsh dhcpserver \\server_name
netsh dhcp serveradd optiondef 60 ClassID String 0
netsh dhcp serverset optionvalue 60 STRING PXEClient

6.  Put a check mark in 066 Boot Server Host Name and enter the i.p. of
the server

7.  Put a check mark in 067 Bootfile Name and enter the name of the boot
image file.

8.  Right click on the server name in the DHCP control panel, go to all
tasks, and select restart.

9.  Go back to scope options and verify that all the information is there.
You should see the five entries on the right.  They should look like this:

013  Boot File Size Standard0x18
043  Vendor Specific Info   Standard01 04 00 00 00 00 ff
060  ClassIDStandardPXEClient
066  Boot Server Host Name  StandardServer I.P.
067  Bootfile Name  Standardpxelinux.0 (boot file name)

If any of the options don't match what is shown, doubleclick on the option
and change the values so they look like above.  More than likely option 060
will be wrong.  Change it so it looks like above.


You are now ready to set up tftp.




TFTP Configuration

1.  Copy tftpd.exe from c:\winnt\system32\dllcache\tftpd.exe to
c:\winnt\system32\tftpd.exe

2.  Get a copy of sc.exe from the system32 folder on any windows xp box
and place it in c:\winnt\system32

3.  Open a command window and type sc create tftpd binpath=
'c:\winnt\system32\tftpd.exe' 

4.  The service tftpd is now available in the service control panel.  Open
the control panel, find the service, and start it.  (If you want it to start
automatically, you can set it to do so from the control panel.)

5.  open the registry to the following key.
\\hkey_local_machine\system\currentControlSet\services\tftpd.  Add a subkey
to the tftpd folder parameters.  Add a string value Directory to the
parameters key.  Give Directory the path location where your boot image
file is located. (example c:\tftpd).


Credit for much of this go to Willis Doiron.
http://pxes.sourceforge.net/howtos/ms_only_environment


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Similar project - merging possible?

2004-02-05 Thread Tyler Hepworth
Yes, there are several default options and custom options can be added as
well.  The list of default options can be found here:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn
ol/windows2000serv/reskit/tcpip/part4/tcpappe.asp.

Tyler


 Cool!  Does anybody know if Microsoft's DHCP server can be
 configured with custom options?  (We can always fall back to 
 the current prompt the user with timeout approach if the 
 DHCP options are not
 available.)


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Adding questions to install dialog

2004-02-05 Thread Tyler Hepworth
There are two issues here:

1).  I did figure out how to add a question using the $u hash and I created
a new section - [_oe].  However, the section was printed at the top of the
unattend file (before comments or anything else). I don't like it there.  I
want it at the bottom, underneath [_meta].  Is there anyway to fix that?

2).  Yes, I can give you an example of something I am trying to do.
Earlier, I posted to the list about how I modified install.pl to display a
multi-choice dialog that lets you choose printers to setup.  I would like to
separate all of that code from install.pl so I can easily upgrade without
having to rework install.pl every time a new version is released.  Here are
the changes that I made to install.pl and the associated scripts needed to
make the patch run.  Perhaps you could look them over and tell me how to
make my dialog independent of install.pl?

###
Changes made to Install.pl
###
 
Added the following lines to sub create_postinst_bat ().  The code is
placed right after the section # NTP servers


---
# Printers
if (-e c:/netinst/printset.vbs) {
  push @postinst_lines, call c:\\netinst\\printset.vbs;
 }
 
 
Added the following lines after # Create C:\netinst and subdirectories.
and before # Create unattend.txt file.  



# Call site-specific printer setup dialog.
my $print_conf = 'z:\\site\\printers.pl';
 
if (-e $print_conf) {
my $pr_result = do $print_conf;
$@
and die do $print_conf failed: $@;
defined $pr_result
or die Could not do $print_conf: $^E;
}
 
 
Added the following lines so that a new option would be pushed into
@edit_choices.  The code was placed after the push of $doit into
@edit_choices.


--
my $printsetup = $u-{'_meta'}-{'printsetup'};
defined $printsetup
and push (@edit_choices,
  Edit $printsetup (will be run by $postinst)
  = $printsetup);
 
 
 
###
Contents of printers.pl
###
 
sub create_print_setup () {
 my $netinst = 'c:\\netinst';
 my @print_lines;
 my $print_string = $u-{'_meta'}-{'printers'};
 my @printers = split /;/, $print_string if ($print_string);
 if (scalar @printers  0) {
  push @print_lines,
  'Set WshNetwork = CreateObject(WScript.Network)';
  foreach (@printers) {
   push @print_lines, WshNetwork.AddWindowsPrinterConnection \$_\;
  }
 }
 if (scalar @print_lines  0) {
 open (OUT, $netinst\\printset.vbs);
 print Creating $netinst\\printset.vbs...;
  foreach (@print_lines) {
   print OUT $_\n
  }
  print done.\n\n;
 }
 return 'c:\netinst\printset.vbs';
}
 
$u-comments ('_meta', 'printers') =
['Printers to be installed'];
 

$u-{'_meta'}-{'printers'} =
sub {
 my $printers = z:/site/printers.txt;
 my @print_array;
  if (-e $printers) {
  open (IN, $printers) || warn Could not open file: $!;
  while (IN) {
   chomp;
   push @print_array, $_;
  }
  close (IN);
@selected_printers = multi_choice ('Choose printers to setup.',
  @print_array);
return join ';', @selected_printers;
 }
 };
 
$u-{'_meta'}-{'printsetup'} = \create_print_setup;

 
 

Sample contents of printers.txt

 
\\my_print_server\printer1
\\my_print_server\printer2
\\my_print_server\printer3
 
 
 
###
Notes
###
 
printers.pl and printers.txt both go in install\site








 -Original Message-
 From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 05, 2004 9:22 AM
 To: Tyler Hepworth
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [Unattended] Adding questions to install dialog
 
 
 Tyler Hepworth [EMAIL PROTECTED] writes:
 
  Is it possible to add custom questions to the initial
 install dialog
  without modifying install.pl?  I have already made one patch to
  install.pl but I want to stay away from that if possible so that I 
  don't run into problems with upgrades.
 
 Yes.  See the Programmatic Configuration section in
 http://unattended.sourceforge.net/advanced.htm l .
 
 Basically,
 you use the $u hash to add a new [_meta] 
 variable.  Or better yet, you use it to create an entire new 
 section (call it [_local] or [_site] or something) and put 
 your variables in there.
 
 Can you give an example of something you are trying to do?
 
  - Pat
 


---
The SF.Net email is sponsored

RE: [Unattended] Need suggestions for a few tasks

2004-02-05 Thread Tyler Hepworth
Swipe a copy from windows 2003 server.  It works perfectly on XP.  Haven't
tried it on 2K.  If someone has a place that you can host the file, I will
email it to you so you can share it with the rest.



-Original Message-
From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 4:31 PM
To: DE-LOS-SANTOS,ORIOL (HP-Spain,ex1)
Cc: [EMAIL PROTECTED]
Subject: Re: [Unattended] Need suggestions for a few tasks


DE-LOS-SANTOS,ORIOL (HP-Spain,ex1) [EMAIL PROTECTED] writes:

 - Set the power saving setting so that all time-outs are set to
 never. I guess there might be a registry key to do this but have not 
 found it yet.

The Microsoft answer is to use powercfg.exe; see
http://support.microsoft.com/?id=324347.  Good luck finding a copy if you
are just an end user.

Justin Beckley has contributed a script which I will probably bundle in the
next release.  It simply modifies HKEY_CURRENT_USER/Control
Panel/PowerCfg/CurrentPowerPolicy to have a value between 0 and 5, which
supposedly sets power management according to the following
table:

Turn Off   System
---
monitor   hard diskstandby  hibernate
 
  0 - Home/Office Desk - 20 min.   Never   Never Never
  1 - Portable/Laptop  - 15 min.   30 min. 20 min.   3 hrs.
  2 - Presentation - Never Never   Never Never
  3 - Always On- 20 min.   Never   Never Never
  4 - Minimal Mngt.- 15 min.   Never   Never Never
  5 - Max Battery  - 15 min.   Never   20 min.   45 min.


I am not sure where Justin got this from, but hey, if it works...

 - Change the location of My Documents so that is located in a
 different disk.

To change it for one user, you can right-click on it, select Properties,
and then Move

You can script this change using WSH's CreateShortcut method (which is badly
named; it also lets you modify an existing shortcut):

 
http://msdn.microsoft.com/library/en-us/script56/html/wsmthcreateshortcut.as
p

To change it for all users, the best I can find is:

  http://www.jsiinc.com/SUBF/TIP2700/rh2771.htm

But this uses folder redirection which may not be what you want.

 - Create a new dial-up connection (always the same one so it should be
 easy).

The Microsoft answer to this one, I think, is to use the Connection Manager
Administration Kit (cmak), which is part of adminpak.msi. You can find the
latter on the Windows 2000 Server (or Server 2003) CD-ROM and possibly for
download from Microsoft.

I do not have any more details; sorry.

You might have better luck with these questions on one of the Microsoft
newsgroups.

 - Pat


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms. Free
Eval! http://www.perforce.com/perforce/loadprog.html
___
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Error in when calling Unattend::Inifile

2004-02-06 Thread Tyler Hepworth
I placed the following in my perl script so it could use Inifile.pm

Use lib 'Z:\\lib';

But now it is giving me this error when the script runs:

Can't locate object method new via package Unattend::Inifile (perhaps
you fo
rgot to load Unattend::Inifile?) at Z:\site\getextension.pl line 3.
Z:\site\getextension.pl failed, status 255 (0)
A)bort R)etry I)gnore ?


Here are the contents of my script:

use lib 'Z:\\lib';
use Unattend::Inifile;
my $u = new Unattend::Inifile ('C:\\netinst\\unattend.txt');
my $agent_extension = $u-{'_meta'}-{'StationExtension'};

$ENV{'agext'} = $agent_extension;



Have I specified something incorrectly?  

Thanks,

Tyler



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Adding questions to install dialog

2004-02-09 Thread Tyler Hepworth
There are two issues here:

 Basically,
 you use the $u hash to add a new [_meta]
 variable.  Or better yet, you use it to create an entire new 
 section (call it [_local] or [_site] or something) and put 
 your variables in there.

1).  I did figure out how to add a question using the $u hash and I created
a new section - [_oe].  However, the section was printed at the top of the
unattend file (before comments or anything else). I don't like it there.  I
want it at the bottom, underneath [_meta].  Is there anyway to fix that?


 
 Can you give an example of something you are trying to do?
 



2).  Yes, I can give you an example of something I am trying to do. Earlier,
I posted to the list about how I modified install.pl to display a
multi-choice dialog that lets you choose printers to setup.  I would like to
separate all of that code from install.pl so I can easily upgrade without
having to rework install.pl every time a new version is released.  Here are
the changes that I made to install.pl and the associated scripts needed to
make the patch run.  Perhaps you could look them over and tell me how to
make my dialog independent of install.pl?

###
Changes made to Install.pl
###
 
Added the following lines to sub create_postinst_bat ().  The code is
placed right after the section # NTP servers


---
# Printers
if (-e c:/netinst/printset.vbs) {
  push @postinst_lines, call c:\\netinst\\printset.vbs;
 }
 
 
Added the following lines after # Create C:\netinst and subdirectories.
and before # Create unattend.txt file.  



# Call site-specific printer setup dialog.
my $print_conf = 'z:\\site\\printers.pl';
 
if (-e $print_conf) {
my $pr_result = do $print_conf;
$@
and die do $print_conf failed: $@;
defined $pr_result
or die Could not do $print_conf: $^E;
}
 
 
Added the following lines so that a new option would be pushed into
@edit_choices.  The code was placed after the push of $doit into
@edit_choices.


--
my $printsetup = $u-{'_meta'}-{'printsetup'};
defined $printsetup
and push (@edit_choices,
  Edit $printsetup (will be run by $postinst)
  = $printsetup);
 
 
 
###
Contents of printers.pl
###
 
sub create_print_setup () {
 my $netinst = 'c:\\netinst';
 my @print_lines;
 my $print_string = $u-{'_meta'}-{'printers'};
 my @printers = split /;/, $print_string if ($print_string);
 if (scalar @printers  0) {
  push @print_lines,
  'Set WshNetwork = CreateObject(WScript.Network)';
  foreach (@printers) {
   push @print_lines, WshNetwork.AddWindowsPrinterConnection \$_\;
  }
 }
 if (scalar @print_lines  0) {
 open (OUT, $netinst\\printset.vbs);
 print Creating $netinst\\printset.vbs...;
  foreach (@print_lines) {
   print OUT $_\n
  }
  print done.\n\n;
 }
 return 'c:\netinst\printset.vbs';
}
 
$u-comments ('_meta', 'printers') =
['Printers to be installed'];
 

$u-{'_meta'}-{'printers'} =
sub {
 my $printers = z:/site/printers.txt;
 my @print_array;
  if (-e $printers) {
  open (IN, $printers) || warn Could not open file: $!;
  while (IN) {
   chomp;
   push @print_array, $_;
  }
  close (IN);
@selected_printers = multi_choice ('Choose printers to setup.',
  @print_array);
return join ';', @selected_printers;
 }
 };
 
$u-{'_meta'}-{'printsetup'} = \create_print_setup;

 
 

Sample contents of printers.txt

 
\\my_print_server\printer1
\\my_print_server\printer2
\\my_print_server\printer3
 
 
 
###
Notes
###
 
printers.pl and printers.txt both go in install\site







---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Error when calling Unattend::Inifile

2004-02-10 Thread Tyler Hepworth
Yes, that did the trick.  Thanks.  I know perl is case sensitive, but I was
using code lifted directly from a thread that I found on the mailing list.
All references to IniFile were written as Inifile not IniFile.

Tyler



 -Original Message-
 From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 09, 2004 2:57 PM
 To: Tyler Hepworth
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [Unattended] Error when calling Unattend::Inifile
 
 
 Tyler Hepworth [EMAIL PROTECTED] writes:
 
  But now it is giving me this error when the script runs:
  
  Can't locate object method new via package Unattend::Inifile 
  (perhaps you fo rgot to load Unattend::Inifile?) at 
  Z:\site\getextension.pl line 3.  Z:\site\getextension.pl failed, 
  status 255 (0) A)bort R)etry I)gnore ?
 
 Windows is not case-sensitive, but Perl is.
 
  use lib 'Z:\\lib';
  use Unattend::Inifile;
 
 Try Unattend::IniFile instead.
 
  - Pat
 


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] how to disable sound

2004-02-16 Thread Tyler Hepworth
I spent several hours scouring the web about this issue and found the module
Win32::Sound that is available via ppm from ActiveState.  Here is some
sample code to mute and unmute the volume.

use Win32::Sound;

Win32::Sound::Volume(0); # turn sound off
Win32::Sound::Volume(65535); # set sound to max volume

The module supports lots of other features.  The details can be found here:

http://www.xav.com/perl/site/lib/Win32/Sound.html


My question is how do I include or access modules (like this one) that do
not come with the default perl installion from ActiveState.

Tyler 





 -Original Message-
 From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 14, 2004 9:11 AM
 To: pommerer
 Cc: 'Unattended List (E-mail)'
 Subject: Re: [Unattended] how to disable sound
 
 
 pommerer [EMAIL PROTECTED] writes:
 
  how is it possible to disable/enable sound during installation
  (base.bat)
 
 Interesting question.
 
 The best I can find is this VB script from Microsoft:
 
http://support.microsoft.com/?id=178456

I tried and failed to find a way to do this from Perl.  The problem is that
there is no COM interface for controlling the Windows Mixer; you need to
call functions inside winmm.dll (and I do not think rundll32 will work for
this).

 - Pat


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
unattended-info mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Installing from DVD

2004-03-01 Thread Tyler Hepworth
I would like to help with this project.  I have as much time to devote to it
as you desire.  I understand all that you are saying and am ready to give it
a shot.  The only thing I am not sure on is hard coding the drive letter in
unattend.txt.  What if there are multiple optical drives on the machine and
the DVD is not always on D:?  Is there a way to dynamically adjust for that
scenario?

Tyler



 -Original Message-
 From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 01, 2004 2:07 PM
 To: Tyler Hepworth
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [Unattended] Installing from DVD
 
 
 Tyler Hepworth [EMAIL PROTECTED] writes:
 
  Is it possible to boot from, map a drive to, and install 
 from DVD. I 
  have branch offices overseas that I would like to ship a disk to, 
  rather than trying to set up servers at each site.
 
 In theory, yes.  In practice, I know of nobody who has tried it.
 
 Unattended treats the Z:\ drive as read-only at all times.  
 Your strategy would be:
 
   - Burn the install share and the bootdisk to DVD.
 
   - Arrange to map the DVD as Z:\ using the DOS (or Linux) boot disk.
 
   - Set the [_meta]/z_drive value in Z:\site\unattend.txt to D:, or
 wherever the DVD appears under Windows.  (This will set the %Z%
 variable which all of the installation scripts use to locate
 stuff.)
 
   - Modify mapznrun.bat not to map the drive if %Z% is already
 available.  Oh, wait, I already did this :-).
 
 Seriously, I have had something like this in the back of my 
 mind from the beginning.  Everything should just work once 
 you get past the initial hurdles.
 
 I just did some reading about DVDs.  If I understand 
 correctly, a bootable DVD is very similar to a bootable CD; 
 you can just use a basic ISO-9660 file system and ISOLINUX to 
 boot.  This is good news.
 
 I just did some more reading.  There may be some subtleties 
 involving long file names.  Joliet extensions, Rock Ridge 
 extensions, ISO-9660 level 2, UDF...  Whatever.  You need 
 to create a DVD which is basically ISO-9660 so ISOLINUX can 
 read it, and it also needs to be readable by both DOS (or 
 Linux) and Windows.  I suspect the Joliet extensions would be 
 sufficient.
 
 This actually sounds like a fairly small but interesting 
 project.  I wish I had a DVD burner.  How soon do you need 
 this, and how much time do you have to spend on it?
 
  - Pat
 


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Matts Question about Menus

2004-03-10 Thread Tyler Hepworth
Matt,

The applications/bat files that show up in the menus are all controlled by
the bat files themselves.  To remove any applications from the menu, delete
the corresponding bat file from the scripts directory.  To add a file to the
master script menu (base,developer,sales,etc) then create a bat file with
the heading

::MASTER  : Your title goes here

To add an app to the optional menu, create a bat file with the heading

:: OPTIONAL : Your title goes here  

To create an application that will be installed by default by a master
script and you therefor don't want it to show on the optional menu or
elsewhere, create a bat file with the heading

:: Your title goes here

Open up some of the bat files in your script directory and look through them
to see how they are structured.  That will help you out quite a bit.

Tyler



 -Original Message-
 From: Matt Brown [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 10, 2004 11:46 AM
 To: '[EMAIL PROTECTED]'
 Subject: Re: [Unattended] Modified Install.pl for Application 
 Install Only
 
 
 Along the same lines, is there an easy way to modify the script to 
 remove/add some applications/bat files to the menu?
 
 It might just be that I'm a perl novice but I can't find 
 where to edit it.
 
 Thanks
 


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] MAC Address

2004-05-04 Thread Tyler Hepworth
Mangano, Aron wrote:
 How does everyone find the MAC address of the PC easily and
 quickly to insert into the .csv file when trying to insert
 the product key into the OS automatically. ???
 
 

Windows XP has a command line tool (so I hope it will run in dos) called
getmac.exe.  This will also run on Windows 2000 (I think).  Just type
getmac at the prompt and it will return the mac address of all interfaces
in the system.  getmac /? for full details.

Hth,

Tyler


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] PXE Howto without RIS on Windows 2000 Server

2004-05-14 Thread Tyler Hepworth
Perhaps you would be interested in adding this to the documentation.  I
wrote a tutorial on how to setup PXE booting on Windows 2000 server without
RIS.  The tutorial includes setting up the DHCP portion of the PXE boot and
it shows how to configure the Windows server to run TFTP as well (built-in.
not necessary to use third party client).

Cheers,

Tyler Hepworth



PXE HOWTO without RIS.tar.gz
Description: Binary data


RE: [Unattended] Windows auto update how to?

2004-05-20 Thread Tyler Hepworth


 -Original Message-
 From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 20, 2004 8:05 AM
 To: John Lilley
 Cc: Mangano, Aron; [EMAIL PROTECTED]
 Subject: Re: [Unattended] Windows auto update how to?
 
 
 For the record...
 
 I just read about this unattend.txt setting:
 
 [Unattended]
 DUDisable=No
 
 Apparently, this causes Windows Setup to connect to Windows 
 Update to download everything during installation.
 
 Read all about it by searching for DUDisable (second occurrence) at:
 
 
http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techre
f/en-us/w2k3tr_u_unattended.asp

 - Pat


This is very interesting.  Did you read the part about DUShare and
DUPrepare?  Instead of connecting to windows update it looks for the update
.cab files on a local share.

Whether I use DUDisable or DUShare, does that mean that all patches will be
incorporated into the windows setup, and constant rebooting can be avoided?
Does it mean faster setup times?  Hmmm.


Tyler


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Questions about check and prepare bash scripts

2004-05-20 Thread Tyler Hepworth
Is it possible to pass the results of the check script to the prepare
script so that only the missing items are downloaded instead of the entire
~1 GB?  I ran check and have about 50 items missing, but I do not want to
download each of them by hand.

Thanks,

Tyler Hepworth


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Problem using Linux boot disk 4.2

2004-05-20 Thread Tyler Hepworth
I haven't tried booting this machine from any other version of the linux
boot disk, but using version 4.2 I get the following message:

Found no hard drives (amiraid/ar0 ataraid/d0 cciss/c0d0 i20/hda ida/0d0
rd/c0d0 hda sda hdc) under /sys/block

Your sys/block contains:
alot of ramxx 

So, close. Oh, well!


I have checked the hard drive and can install windows manually from the
windows setup cd.  Is there any other information you need from me?

Thanks,

Tyler Hepworth


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


RE: [Unattended] Problem using Linux boot disk 4.2

2004-05-21 Thread Tyler Hepworth

 Ah, crud.  I messed up the SCSI support.

It appears to be that way ;-)

 
 Could you try the Linux boot disk in 4.2c-rc1?  I just 
 uploaded it to http://unattended.sourceforge.net/testing/.  
 (I also uploaded just linuxboot.iso in case you do not want 
 to download the whole thing.)
 
 Please let me know if it works, so I can release 4.2c ASAP...


Works like a champ! :-)


Tyler




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info