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:00000000
"Applications\\WordPad.exe_.pl"=dword:00000000
"Applications\\perl.exe_.pl"=dword:00000000

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

Reply via email to