> Where and how can I change the username the application script is 
> using?

> There is no way to do this at present.  Right now, the system uses "net use ... 
> /persistent:yes" to make sure the z: drive gets mapped after each reboot.

> What username do you want to use?  You might be able to do what you want with 
> autolog.pl plus some extra registry hacking...

I have been using a specific username (and password) for installs from the beginning.  
Description below:
  - patched dosbin\install.pl to use a username and password and copy the attached 
"mapdrive.pl" to c:\netinst to do the same upon each reboot.
-- CLIP install.pl--
if (defined $top) {
    push @postinst_lines, ("net use z: $ENV{'INSTALL'} installpwd /USER:install 
/persistent:no",
                           'call z:\\scripts\\perl.bat',
                           'PATH=z:\\bin;%PATH%',
                           'copy z:\\site\\mapdrive.pl c:\\netinst',
                           # Last step is always a reboot
-- END CLIP --

  - patched todo.pl to run my "mapdrive.pl" instead of just kicking off the next items 
in the todo list upon reboot.  This allows the use of a username and password and more 
importantly to do some checking for a successful drive mapping before proceeding.  
Without this recovery logic, I was having timing issues with the drive not being fully 
mapped before attempting to continue on with application installs.
-- CLIP todo.pl--
# We have more work to do, so arrange to run
# ourselves after reboot.
# Doucet hack for drive mapping authentication on reboot
#  referenced file created in install.pl
#run_at_logon ("$0 --go");
  run_at_logon ("c:\\netinst\\mapdrive.pl");
-- END CLIP --

Cheers,
Scott


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick J. LoPresti
Sent: Sunday, March 09, 2003 4:44 PM
To: Norstr�m, Daniel
Cc: [EMAIL PROTECTED]
Subject: Re: [Unattended] Questions


"Norstr�m, Daniel" <[EMAIL PROTECTED]> writes:

> Hi does anyone know how and where to:
> 
>  
> 
> Get rid of the reboot message I get from the XP before the application 
> script (that installs Perl and the other applications) starts.

I do not know.  It does not seem to have any negative effect, but I agree it would be 
nice to avoid.

> Where and how can I change the username the application script is 
> using?

There is no way to do this at present.  Right now, the system uses "net use ... 
/persistent:yes" to make sure the z: drive gets mapped after each reboot.

What username do you want to use?  You might be able to do what you want with 
autolog.pl plus some extra registry hacking...

> Can I add "jobs" to the todo list after the "first" installation of XP 
> and the applications is done? Where and how

Yes.  Run "Z:\bin\todo.pl ...", or just edit c:\netinst\todo.txt by hand.  Then run 
"z:\bin\todo.pl --go" to fire it off.

> Can I use the reboot function and the installation script will 
> continue after the reboot? If so how? I have read the documentation 
> but maybe don't get everything

Try to follow the sample scripts, which use todo.pl to add tasks to the to-do list.  
One possible task is ".reboot", which does a reboot and then runs "todo.pl --go" again 
after rebooting.  This is the only mechanism we have for rebooting in the middle of a 
sequence of operations.

> And finally is perl only needed in the OS to run the todo list? Do you 
> uninstall Perl after this?

Most of the utility scripts in z:\bin use Perl.  I always leave Perl installed because 
I prefer it to VB for system administration tasks.

 - Pat

Attachment: mapdrive.pl
Description: mapdrive.pl

Reply via email to