Skip to content
⌘ NSIS Forum Archive

Updated psExec to be x64 compatible

2 posts

julianhille#

Updated psExec to be x64 compatible

Hi,

psExec.nsh had a flaw that a 32bit nsis on a 64bit windows system only started
a 32bit powershell.
That were a problem for me as i needed to find 64bit processes which does not work from within a 32bit process.

So here i fixed it for you (and me).

As im unable to register to the wiki and had no other possible way to open source that i added a gist: https://gist.github.com/julianhille/...7c855ae3d9c443

This is based on https://nsis.sourceforge.io/PowerShell_support and only uses the possibility to circumvent the win32 remapping of pathes by using the special path `sysnative` inside of the windows dir.

Pitfall is: if theres something newer then powershell v1 it might fall back to v1 always.