On Wed, May 28, 2003 at 10:14:57, P. Benie wrote:

> On Wed, 28 May 2003, Nils [iso-8859-1] �stbjerg wrote:
> 
> > > Run, z:\\packages\\putty\\putty-installer.exe /silent
> > > WinWait, Setup, This will install PuTTY. Do you wish to continue?
> > > Send, {ENTER}
> >
> > Why install putty ? Why not just copy it over where you want it ?
> 
> I do it so that that it appears in the list of installed applications in
> the registry.
> 
> As it happens, I resently asked how to make the PuTTY installer properly
> silent. Try this instead of AutoIT:
>   putty-0.53b-installer.exe /sp- /silent

That was going to be my next question, if it used the inno installere. But 
it appears it does, cool. 

> I also append the PuTTY directory to %PATH% so that you can use putty
> and pscp from the cmd prompt:

Again I used the lazy approcs, just install putty in the %SYSTEMROOT% ;)

> use Win32::TieRegistry ( Delimiter=>"/", ArrayValues=>1 );
> my $envkey=$Registry->{"LMachine/SYSTEM/CurrentControlSet/Control/".
>            "Session Manager/Environment/"};
> die unless defined($envkey);
> my $pathval=$envkey->{"/Path"};
> my @path=split(";", ${$pathval}[0]);
> push(@path, "C:\\Program Files\\Putty");
> ${$pathval}[0]=join(";", @path);
> $envkey->{"/Path"}=$pathval;
Neat.


Nils

-- 
Nils �stbjerg                  mailto:[EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to