Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?

"Hofmann, Gerhard via unattended-devel" <[email protected]> Tue, 25 Jun 2019 09:56:33 +0000
Newsgroups gmane.comp.windows.unattended.devel
Message-ID <VI1P190MB0287B3C1B0C35783320F1BB7FFE30@VI1P190MB0287.EURP190.PROD.OUTLOOK.COM>
Hello Juan, 

thanks a lot, I tested this and I think we are near a working state.

The ptar command unpacks the .tar.gz archive not into 
   %TEMP%\Win32-NetResource-0.057
like wanted / expected, but instead into 
   c:\windows\system32\Win32-NetResource-0.057

The commands
    cd %TEMP%\Win32-NetResource-0.057
    call c:\strawberry\perl\bin\perl Makefile.PL 
    call gmake install
then fail because they expect Makefile.PL to be in a different directory.

So I suppose we will have to explicitely tell the ptar command in which target directory to unpack the archive...?

Regards

Gerhard Hofmann

Juan wrote:

Gerhard,
would you mind test this code?

+call 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;
+::
+::This code should be equilavent to
+::cpan Win32::NetResource
+::But it works Offline
+copy %Z%\packages\strawberryperl\Win32-NetResource-0.057.tar.gz %TEMP%
+call c:\strawberry\perl\bin\ptar.bat zxf %TEMP%\Win32-NetResource-0.057.tar.gz
+cd %TEMP%\Win32-NetResource-0.057
+call c:\strawberry\perl\bin\perl Makefile.PL 
+call gmake install

replace start /wait for call