You are here: PSPad forum > Bug report / Hlášení chyb > error:Unable to launch PSPad.exe!

error:Unable to launch PSPad.exe!

#1 error:Unable to launch PSPad.exe!

Posted by: stoyanov.st | Date: 2017-05-22 07:16 | IP: IP Logged

EditWithPSPad - error

PSPad 5.0.0 (227)
Windows 10
Version 1511 (OS Build 10586.916)

When PSPad is integrated into OS using DLL library
AND
Compatibility flag is set to RUNASADMIN

The error appear.

Options: Reply | Quote | Up ^


#2 Re: error:Unable to launch PSPad.exe!

Posted by: pspad | Date: 2017-05-22 07:53 | IP: IP Logged

Sorry, but your report down't give any useful information how to solve your problem.

Can I ask, why do you set run as admin compatibility? There is no reason for it.
Run PSPad as user, not as admin, go to program settings / System integration, change integration to registry, confirm, change it back to DLL, confirm.
Do the same when PSPad was started as admin.
It will fix association in registry for start PSpad from context menu.

Edited 1 time(s). Last edit at 2017-05-22 07:58 by pspad.

Options: Reply | Quote | Up ^


#3 Re: error:Unable to launch PSPad.exe!

Posted by: stoyanov.st | Date: 2017-05-22 08:22 | IP: IP Logged

The reason is simple, avoiding some more clicks and actions - whenever I'm editing some .ini file inside Program files folder (the risk making such dangerous action is clear), or for example editing system hosts file, additional permissions are required and you have to save your file in other folder than to copy it back to the source folder, this is what I'm trying to avoid.
And yes I forgot mentioning it's via context menu.
I followed your instructions to reset the integration when the compatibility flag was set to runasadmin, no change.
Whenever integration is made via registry, it all OK, except icons in context menu smiling smiley

Edited 1 time(s). Last edit at 2017-05-22 08:24 by stoyanov.st.

Options: Reply | Quote | Up ^


#4 Re: error:Unable to launch PSPad.exe!

Posted by: stoyanov.st | Date: 2017-05-24 06:24 | IP: IP Logged

As a workaround I found that solution for suitable:
community.spiceworks.com
Which appears to work within Program Files, but not with hosts file sad smiley
Still under investigation.

Edited 1 time(s). Last edit at 2017-05-24 06:32 by stoyanov.st.

Options: Reply | Quote | Up ^


#5 Re: error:Unable to launch PSPad.exe!

Posted by: stoyanov.st | Date: 2017-06-05 10:39 | IP: IP Logged

Update:
Last satisfying working configuration for me is to integrate PSPad via registry and add icons via default registry entries, i.e. in
HKEY_CLASSES_ROOT\*\shell\PSPad
add new REG_EXPAND_SZ with name icon and value:
%ProgramFiles(x86)%\PSPad editor\PSPad.exe,4

Same for other two entries PSPad HEX and PSPad TextDiff.

This I believe can be easily integrated into the program it self.

And that way it is working with compatibility flag RUNASADMIN. No errors, no prompts.

Source for icons resolution: stackoverflow.com

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR