Hi,
here is an other solution.
Install your Perl in \\netinstall\install\perl as described dont use
somthing like ADDLOCAL!
My perl.bat:
regedit /s %Z%\packages\system\perl\perl.reg
set PathExt=%PathExt%;.PL
The perl.reg:
---SNIP---
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Perl]
[HKEY_CLASSES_ROOT\Perl\DefaultIcon]
@="C:\\WINDOWS\\Installer\\{E3411538-C3EE-4F51-915A-4C369ABEE040}\
\_95fe01f856ebc8574541b8763179eadc,0"
[HKEY_CLASSES_ROOT\Perl\Shell]
[HKEY_CLASSES_ROOT\Perl\Shell\Open]
[HKEY_CLASSES_ROOT\Perl\Shell\Open\Command]
@="\"\\\\netinstall\\install\\perl\\bin\\perl.exe\" \"%1\" %*"
[HKEY_CLASSES_ROOT\PerlScript]
@="PerlScript Language"
[HKEY_CLASSES_ROOT\PerlScript\CLSID]
@="{F8D77580-0F09-11d0-AA61-3C284E000000}"
[HKEY_CLASSES_ROOT\PerlScript\OLEScript]
[HKEY_CLASSES_ROOT\PerlScriptFile]
[HKEY_CLASSES_ROOT\PerlScriptFile\DefaultIcon]
@="\\\\netinstall\\install\\perl\\bin\\PerlSE.dll,0"
[HKEY_CLASSES_ROOT\PerlScriptFile\ScriptEngine]
@="PerlScript"
[HKEY_CLASSES_ROOT\PerlScriptFile\Shell]
[HKEY_CLASSES_ROOT\PerlScriptFile\Shell\Open]
@="&Open"
[HKEY_CLASSES_ROOT\PerlScriptFile\Shell\Open\Command]
@="C:\\WINDOWS\\System32\\WScript.exe \"%1\" %*"
[HKEY_CLASSES_ROOT\PerlScriptFile\Shell\Open2]
@="Open &with Command Prompt"
[HKEY_CLASSES_ROOT\PerlScriptFile\Shell\Open2\Command]
@="C:\\WINDOWS\\System32\\CScript.exe \"%1\" %*"
[HKEY_CLASSES_ROOT\PerlScriptFile\ShellEx]
[HKEY_CLASSES_ROOT\PerlScriptFile\ShellEx\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\PerlScriptFile\ShellEx\PropertySheetHandlers
\WSHProps]
@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"
[HKEY_CLASSES_ROOT\.pl]
@="Perl"
[HKEY_CLASSES_ROOT\.pl\Perl]
[HKEY_CLASSES_ROOT\.pl\Perl\ShellNew]
[HKEY_CLASSES_ROOT\.pls]
@="PerlScriptFile"
[HKEY_CLASSES_ROOT\CLSID\{F8D77580-0F09-11D0-AA61-3C284E000000}]
@="PerlScript Language"
[HKEY_CLASSES_ROOT\CLSID
\{F8D77580-0F09-11D0-AA61-3C284E000000}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID
\{F8D77580-0F09-11D0-AA61-3C284E000000}\Implemented Categories
\{F0B7A1A1-9847-11CF-8F20-00805F2CD064}]
[HKEY_CLASSES_ROOT\CLSID
\{F8D77580-0F09-11D0-AA61-3C284E000000}\Implemented Categories
\{F0B7A1A2-9847-11CF-8F20-00805F2CD064}]
[HKEY_CLASSES_ROOT\CLSID
\{F8D77580-0F09-11D0-AA61-3C284E000000}\InprocServer32]
@="\\\\netinstall\\install\\perl\\bin\\PerlSE.dll"
"ThreadingModel"="Both"
[HKEY_CLASSES_ROOT\CLSID
\{F8D77580-0F09-11D0-AA61-3C284E000000}\OLEScript]
[HKEY_CLASSES_ROOT\CLSID\{F8D77580-0F09-11D0-AA61-3C284E000000}\ProgID]
@="PerlScript"
[HKEY_LOCAL_MACHINE\SOFTWARE\Perl]
@="\\\\netinstall\\install\\perl\\"
"BinDir"="\\\\netinstall\\install\\perl\\bin\\perl.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState]
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\ActivePerl]
"CurrentVersion"="811"
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\ActivePerl\811]
@="\\\\netinstall\\install\\perl\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\ActivePerl\811\Help]
@="\\\\netinstall\\install\\perl\\html\\index.html"
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlScript]
[HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlScript\1.0]
"NoCaseCompare"=dword:00000001
"EnabledZones"=dword:00000010
"EnableEventLogMsgs"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
\Environment]
"Path"=Edit(Delim=";"):/Find "%" or end /Insert "%" after
"Path"=Edit(Delim=";"):/Find start /Insert "\\" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
"Path"=Edit(Delim=";"):/Find start /Insert "" before
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
\Application]
"Sources"=Edit(MultiSZ):/Find start /Insert "PerlMsg" before
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
\Application\PerlMsg]
"EventMessageFile"=ExpandSZ:"\\\\netinstall\\install\\perl\\bin\
\PerlMsg.dll"
"TypesSupported"=dword:00000007
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP
\LanguageEngines]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ASP
\LanguageEngines\PerlScript]
"Write"="$Response->write(|);"
"WriteBlock"="$Response->writeblock(|);"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
\Environment]
"PATHEXT"=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager
\Environment]
"PATHEXT"=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager
\Environment]
"PATHEXT"=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL"
--SNAP---
So you dont have to replace any thing in the unatended source. Only the
perl.bat is new.
have fun!
greetings mario gzuk
Am Donnerstag, den 06.01.2005, 04:24 +1300 schrieb Godfrey Livingstone:
> Installing perl and changing install path to z:\perl as per the instructions
>
> and
>
> set todo=%z%\perl\bin\perl %z%\bin\todo.pl
>
> and replacing
>
> todo.pl with %todo%
>
> works
>
> but
>
> z:\perl is hard coded into the perl files
>
> maybe someone who knows perl better than I do can figure a way to code
> %z%\perl instead and create an install script for us to install it.
>
> Still the patch will be large.
>
> Regards
>
> Godfrey
> > What you want is HOW TO SET UP A NETWORKED WIN32 ACTIVESTATE PERL
> >
> > See http://www.cleartool.com/interop/NetASPerl.html
> >
> > for instructions on how to do this.
> >
> > I suspect the patch would not be small as todo.pl would not be associated
> > with the perl shell.
> >
> > Godfrey
> >
> >
> >>
> >>
> >> Geert Stappers wrote:
> >>
> >>>On Sun, Jan 02, 2005 at 01:53:50AM +0100, oliver wrote:
> >>>
> >>>
> >>>>Hi
> >>>>
> >>>>I was wondering if it really is nessacery to fully install perl into
> >>>> the
> >>>>C drive soley for the purpose of installing the various applications.
> >>>>
> >>>>I'm not saying not to use perl, but is there no way to use perl from
> >>>> the
> >>>>Z mapped drive? (I do know there might be some issues with perl not
> >>>>beeing on the C:\ which I think can't be right. It's just not sane :)
> >>>>but who knows.
> >>>>
> >>>>Primarly because I don't want all my users to have an active perl
> >>>>install on their system. Also it's kind of dull to install 60mb worth
> >>>> of
> >>>>software to be used for those 5 minutes of software install.
> >>>>Automatically uninstalling afterwards also seems dumb.
> >>>>
> >>>>Secondly it becomes really useless afterwards, I mean, we have a
> >>>> network
> >>>>share with a whole bunch of nice packages, but a simple doubleclick on
> >>>> a
> >>>>bat file doesn't install the package. (Because of perl errors).
> >>>>
> >>>>My proposal would be to have perl live in z:\perl and have all scripts
> >>>>use that version. The bat files include a 'header' file that set's
> >>>>enviroment variables correctly so that perl can be run from Z:\perl.
> >>>>
> >>>>This would also make it possible to simply install a package by running
> >>>>the script file for it.
> >>>>
> >>>>
> >>>
> >>>I think the question is:
> >>>
> >>> When a patch is supplied, will it be excepted?
> >>>
> >> Accepted or expected? : )
> >>
> >> Accepted, I don't know. If the sysadmin wants perl on every install, put
> >> perl.bat in your base.bat, it it's not, don't put perl.bat in your
> >> base.bat : )
> >>
> >> Expected, it might come to a supprise I'm sure, but does it matter for
> >> the end result? You'll still get a fully unattended workable win
> >> installation.
> >>
> >>>
> >>>
> >>>>oliver
> >>>>
> >>>>
> >>>
> >>>Happy New Year
> >>>Geert Stappers
> >>>
> >>>
> >>
> >>
> >> -------------------------------------------------------
> >> The SF.Net email is sponsored by: Beat the post-holiday blues
> >> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> >> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> >> _______________________________________________
> >> unattended-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/unattended-devel
> >>
> >
> >
> >
> > -------------------------------------------------------
> > The SF.Net email is sponsored by: Beat the post-holiday blues
> > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> > _______________________________________________
> > unattended-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/unattended-devel
> >
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> unattended-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unattended-devel
--
____________________________________________
Mario Gzuk
IT department
Max-Planck-Institute for Biogeochemistry
Beutenberg Campus
Hans-Knoell-Str. 10
07745 Jena
Germany
Tel: +49(0)3641576703
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel