Hi,
I have been trying something similar, I didn't answer your last mail because
I needed time to try it. What I do is switch the autologon user as a task
within the list of initial tasks that unattended is given - if I understand
the operation correectly this new designation stays for the duration of the
current install session.
I think that you can achieve this by passing parameters to Pats original
code, but I hacked a small perl script that does just that - I Call it
on-logon.pl so in my base script I call todo.pl on-logon.pl
This seems to work OK although I have only made preliminary tests. Incase
it helps I have included my code below - beware though, PERL is a foriegn
language to me so it is not pretty
Regards
Kevin Lawry
#_____________________________ Code Starts
_____________________________________
# Script to enable or disable automatic logon.
use warnings;
use strict;
use Getopt::Long;
my %reg;
use Win32::TieRegistry (Delimiter => '/', TiedHash => \%reg);
my $winlogon_key =
'HKEY_LOCAL_MACHINE/Software/Microsoft/Windows
NT/CurrentVersion/Winlogon/';
# Replae Username & password here with applicable ones for your domain
my %new_values = ('DefaultUserName' => "[EMAIL PROTECTED]",
'DefaultPassword' => "SomeStrongSecret",
'AutoAdminLogon' => 1);
foreach my $key (sort keys %new_values) {
if (1==1) {
my $val = $new_values{$key};
$reg{$winlogon_key}->{$key} = $val
or die "Unable to set $winlogon_key/$key to $val: $^E";
}
else {
(delete $reg{$winlogon_key}->{$key})
or die "Unable to delete $winlogon_key/$key: $^E";
}
}
#___________________________Code Ends
_________________________________________________________________
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
DE-LOS-SANTOS,ORIOL (HP-Spain,ex1)
Sent: 24 December 2003 10:23
To: Unattended Mailing List
Subject: [Unattended] Installing aplications as a user other than
administrator.
Hello everyone,
I already posted this question a couple of days ago but haven't got any
answers yet. Maybe the mail did not get to the mailing list correctly.
I'm trying to setup some scripts to have most of the applications installed
as a user other than administrator (the user of course is provided with
administrator privileges).
So far I have everything setup so that after a first logon as administrator,
it switches automatic logon to the specified user. My problem now is
automatically starting the "todo.pl --go" command
after the first logon for this user. The user I log on with is a domain user
so the first time I log on the profile for such user does not even exist.
I've tried adding the "todo.pl --go" command in the
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run registry
key without success. I hopped that such key would be copied to the
installation user profile on its first logon but when the profile for the
user is created it does not seem add the "todo.pl --go" command to the
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run registry
branch.
Of course, the first thing that I am planning to execute after the
installation user logon is a cleanup of the registry key in
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run
Any suggestions to accomplish my goal.
Thanks
Oriol de los Santos
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info