Hi,
quite a while ago you gave me some hints concerning Strawberry Perl instead of
ActivePerl.
I ran into a problem that installing Strawberry just with msiexec will result
in a Perl environment that does not have Win32::NetResource library installed.
No problem on PCs with Internet access, command
cpan Win32::NetResource
in the perl.bat file will pull it from the Internet.
You suggested me some commands (ptar… make…) that also should do the job
offline and indeed when I run them in a cmd this works very well.
But when having it in the perl.bat it seems the ptar command is executed
correctly, but everything after that does not seem to work / to be executed.
Some more ideas…? My perl.bat (not working…) see below.
Regards
Gerhard
---------------------
:: Install Strawberry Perl
::
URL|ALL|http://strawberryperl.com/download/5.28.0.1/strawberry-perl-5.28.0.1-32bit.msi|packages/strawberryperl/strawberry-perl-5.28.0.1-X86.msi
::
URL|ALL|http://strawberryperl.com/download/5.28.0.1/strawberry-perl-5.28.0.1-64bit.msi|packages/strawberryperl/strawberry-perl-5.28.0.1-AMD64.msi
::
URL|ALL|http://cpan.metacpan.org/authors/id/J/JD/JDB/Win32-NetResource-0.057.tar.gz|packages/strawberryperl/Win32-NetResource-0.057.tar.gz
set
perl_msi=%Z%\packages\strawberryperl\strawberry-perl-5.28.0.1-%PROCESSOR_ARCHITECTURE%.msi
echo on
msiexec /qb /l* %SystemDrive%\netinst\logs\strawberryperl.txt /i %perl_msi%
set
PATH=%PATH%;c:\strawberry\c\bin;c:\strawberry\perl\bin;c:\strawberry\perl\site\bin;
cd /d c:\netinst
ptar zxf %Z%\packages\strawberryperl\Win32-NetResource-0.057.tar.gz
cd /d c:\netinst\Win32-NetResource-0.057
pwd
perl Makefile.PL
gmake
gmake test
gmake install
-----------------------------------------
Von: Juanjo Pablos via unattended-devel <[email protected]>
Gesendet: Montag, 31. Dezember 2018 07:57
An: Hofmann, Gerhard via unattended-devel
<[email protected]>
Cc: Juanjo Pablos <[email protected]>
Betreff: Re: [Unattended-Dev] Experiences with Strawberry Perl instead of
ActivePerl?
Just a comment:
::This code should be equilavent to "cpan Win32::NetResource"
::But it works Offline
cd %TEMP%
ptar zxf %Z%\packages\strawberryperl\Win32-NetResource-0.057.tar.gz
cd Win32-NetResource-0.057
perl Makefile.PL
gmake
gmake test
gmake install
If you want I can push those changes to start testing.
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel