Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 19.07.2023 18:30, Juanjo Pablos via unattended-devel wrote: On 19/7/23 15:54, Johan Ho via unattended-devel wrote: I completely forgot about this for a while, what is the status of switching to Strawberry Perl? I was too afraid to break things up, so I made the modifications internally. Here is my copy. If everyone is ok, I can update the repository with this copy Yeah, I can understand that! I was also worried about making changes to perl.bat, so in the end I made another script strawberryperl.bat and used that instead. Thanks for your copy of the script, I will compare it to mine to see if there's anything I forgot. (It seems like the mailing list strips attachments, I guess anyone else following this mailing list will not get the file.) In any case, since I have a working setup for Strawberry Perl now, I am not that dependent on whether the unattended repository is up to date. But I guess the copy of perl.bat in the repository would not work for anyone who might download unattended for the first time. So it might be good to get it updated at some point. You could see if anyone else on this mailing list has any comments first, yup. Johan Ho ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 19/7/23 15:54, Johan Ho via unattended-devel wrote: I completely forgot about this for a while, what is the status of switching to Strawberry Perl? I was too afraid to break things up, so I made the modifications internally. Here is my copy. If everyone is ok, I can update the repository with this copy ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
Hello Juanjo, I completely forgot about this for a while, what is the status of switching to Strawberry Perl? I see that the perl.bat script in the repository still points to an old ActivePerl package that is no longer available for download. I tested now using Strawberry Perl in our own unattended installation, using code from this e-mail thread. It seems like everything works fine as long as I add the "ApplicationAssociationToasts" registry fixes that I mentioned. I tested both the cpan version and the "offline" version of the code (with the tar package of NetResource), both seemed to work fine. (I will probably just stick to using CPAN myself, since the rest of our unattended install requires network connection anyways.) I have only tested in Windows 10 though, I have not tested any other Windows versions. Johan Ho ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
Hello Juan, thanks a lot, that solved the problem. Below is the perl.bat file that is now working for me. Please add it to SVN if you like (maybe as other filename strawberryperl.bat ?) One little annoyance remaining, see PNG attachment. I will have to tell Windows that Strawberry Perl should be used to handle the PL file extension. But this problem I already had with ActivePerl. Regards Gerhard Hofmann :: 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 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; copy %Z%\packages\strawberryperl\Win32-NetResource-0.057.tar.gz %TEMP% cd /d %TEMP% call c:\strawberry\perl\bin\ptar.bat zxf %TEMP%\Win32-NetResource-0.057.tar.gz cd /d %TEMP%\Win32-NetResource-0.057 call c:\strawberry\perl\bin\perl Makefile.PL call gmake install --- ---Juan wrote--- maybe we need to add cd %TEMP% before the ptar command ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 26/6/19 14:37, Johan Ho via unattended-devel wrote: I think I solved this in my Windows 10 unattended script by setting the "ApplicationAssociationToasts" entries for .pl files to 0 in the registry: I have found a bug on this, but it said that this was fixed. https://rt.cpan.org/Public/Bug/Display.html?id=66039 Maybe we need to open another bug for windows 10 and try to run a script in the meantime ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
Den 26.06.2019 13:29, skrev Juanjo Pablos via unattended-devel: > On 26/6/19 13:15, Hofmann, Gerhard wrote: >> One little annoyance remaining, see PNG attachment. I will have to tell >> Windows that Strawberry Perl should be used to handle the PL file extension. >> But this problem I already had with ActivePerl. > > I saw this error on win10, on windows 7 seems to work just fine. Is this about the "Open with..." dialogue window that tends to pop up? (I can't see the PNG since I guess it wasn't sent to the mailing list.) I think I solved this in my Windows 10 unattended script by setting the "ApplicationAssociationToasts" entries for .pl files to 0 in the registry: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts] "Applications\\Notepad.exe_.pl"=dword: "Applications\\WordPad.exe_.pl"=dword: "Applications\\perl.exe_.pl"=dword: Or if you do it directly from a script/command line: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts /v "Applications\Notepad.exe_.pl" /t REG_DWORD /d 0 /f reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts /v "Applications\WordPad.exe_.pl" /t REG_DWORD /d 0 /f reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts /v "Applications\perl.exe_.pl" /t REG_DWORD /d 0 /f There might be some changes needed to make this work with Strawberry Perl. Hopefully this helps. Johan Ho ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 26/6/19 13:15, Hofmann, Gerhard wrote: One little annoyance remaining, see PNG attachment. I will have to tell Windows that Strawberry Perl should be used to handle the PL file extension. But this problem I already had with ActivePerl. I saw this error on win10, on windows 7 seems to work just fine. ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 25/6/19 11:56, Hofmann, Gerhard wrote: 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 maybe we need to add cd %TEMP% before the ptar command ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
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 ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
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 Gesendet: Montag, 31. Dezember 2018 07:57 An: Hofmann, Gerhard via unattended-devel Cc: Juanjo Pablos 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 unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 24/6/19 21:57, Hofmann, Gerhard wrote: 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. 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 ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
Re: [Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
On 27/12/18 13:53, Hofmann, Gerhard via unattended-devel wrote: 1) installing Win32::NetResource library online using cpan command - any offline alternative possible for PCs not connected to the Internet or behind http proxys? Added this line: :: 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 I need to investigate how to install it from local network. 2) install path is c:\strawberry, I'd rather would like it in the standard program files directory. When installing strawberry interactively and try to install to c:\Program Files\Strawberry or c:\Progra~1\Strawberry it claims in both cases about the path containing blanks. So I suppose that would neither work with msiexec...? we can fix this problem later... I will try to do a minimal test and push it one of these days. ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel
[Unattended-Dev] Experiences with Strawberry Perl instead of ActivePerl?
Hi all, I'm using Unattended for application-only-installs (appsonly.bat). As far as I understand the most up-to-date License Agreement of ActivePerl Community Edition... https://www.activestate.com/wp-content/uploads/2018/10/activestate_community_edition_software_license_agreement.pdf ... ActivePerl is only free for development purposes, but not for production purposes. So I think usage of ActivePerl for Unattended software deployment is problematic in the meantime I created a perl.bat using Strawberry Perl instead of ActivePerl, see below. I have done some very basic tests and it seems to work. Two things are bad in my opinion, maybe you have some ideas. 1) installing Win32::NetResource library online using cpan command - any offline alternative possible for PCs not connected to the Internet or behind http proxys? 2) install path is c:\strawberry, I'd rather would like it in the standard program files directory. When installing strawberry interactively and try to install to c:\Program Files\Strawberry or c:\Progra~1\Strawberry it claims in both cases about the path containing blanks. So I suppose that would neither work with msiexec...? 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 set perl_msi=%Z%\packages\strawberryperl\strawberry-perl-5.28.0.1-%PROCESSOR_ARCHITECTURE%.msi :retry if exist %perl_msi% goto have_perl echo %perl_msi% not found; press any key to retry. pause > nul goto retry :have_perl start /wait 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; cpan Win32::NetResource @if errorlevel 1 exit 1 ___ unattended-devel mailing list unattended-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unattended-devel