Advanced workaround for PDK 8.2.1 on Windows 7

Posted by grahams on 2010-03-12 14:16

My PDK Start menu items and file associations don't work on Windows 7. The Release Notes just say to use the command line. Isn't there a better alternative to get these working?


Let's start with PerlApp, since that's the most widely used application.

To fix your Start menu icon, go to Start|All Programs|ActiveState Perl Dev Kit 8.2.1 Build 292072. Right click on PerlApp and select Properties. Go to the Target box and change the text from "...\bin\perlapp-gui.exe" to "...\bin\perlapp.exe" (in other words, just delete -gui from the entry). Select OK. The PerlApp Start menu icon will now work.

To fix your .perlapp file association you will need a command line with Administrator priviledge. This can be done by navigating to Start|All Programs|Accessories and right clicking Command Prompt. Select Run as Administrator. If your PDK is installed on the default path, enter the following command:
C:\> ftype perlappfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlapp.exe" --interactive "%1"
If you installed PDK on a different path, adjust the command above to match your installation. Your perlapp associations are now corrected.

If they are present in your version of PDK, the Start Menu icons for PerlCtrl, PerlNET, PerlSvc, and PerlTray can all be corrected as you have just done for PerlApp by deleting "-gui" from the Target box. (64-bit PDK versions will not have a Start Menu icon for PerlNET.)

Again, your version of PDK may not have all of the following tools. Repair the ones you have and use. If you installed on a different path, modify the command to match your installation.
Fix the association for .perlctrl by:
C:\> ftype perlctrlfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlctrl.exe" --interactive "%1"

Fix the association for .perlnet by:
C:\> ftype perlnetfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\plc.exe" --interactive "%1"
(PerlNet is only available in 32-bit versions of the PDK)

Fix the association for .perlsvc by:
C:\> ftype perlsvcfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perlsvc.exe" --interactive "%1"

Fix the association for .perltray by:
C:\> ftype perltrayfile="C:\Program Files\ActiveState Perl Dev Kit 8.2.1\bin\perltray.exe" --interactive "%1"

ActiveState Staff
Tue, 2010-04-06 13:22

FilterBuilder and PerlCritic have problems with inadequate permissions under Windows 7. You can get both of these tools to run correctly by right-clicking the icon in the Start menu and selecting "Run as Administrator". You can also get them to run from the command line if you start the command window with a right-click and "Run as Administrator", then start perlfb or perlcritic.