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

2023-07-20 Thread Johan Ho via unattended-devel

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?

2023-07-19 Thread Johan Ho via unattended-devel

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?

2019-06-26 Thread Johan Ho via unattended-devel
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