Product, version and build: PowerShell Studio 2018 5.5.152
32 or 64 bit version of product: 64 bit
Operating system: Windows 10 1703
32 or 64 bit OS: 64 bit
For some of my projects I'll build them as 32-bit even if they're going to run on 64-bit systems. This allows me to not have to worry about ensuring that a 64-bit EXE runs on 64-bit systems, and a 32-bit EXE runs on 32-bit systems. I've been doing this for years with no problems, until recently when I shared a 32-bit EXE with another division of my organization, which for all purposes of troubleshooting should be considered another company. In their environment when one of my 32-bit EXE's run on their 64-bit Windows 7 x64 Enterprise systems, Task Manager shows the process for a second, then it disappears.
Any idea what would cause this? Is there a pre-req or setting I'm unaware of? They're running PS 4.0, and the script engine I'm using is V3. I don't have anything configured under Execution Restrictions -> Operating Systems.
32 Bit EXE not running on some 64 Bit systems
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- cdouglas_nch
- Posts: 16
- Last visit: Wed Feb 28, 2024 10:55 am
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: 32 Bit EXE not running on some 64 Bit systems
If the process starts as you indicated it is not a matter of the exe not running.
You do not mention what exact engine you select when packaging, so I do not know where the error, if any, would show up.
First step would be to package a simple hello world app with a command line engine and run that on the target computer from a console.
That should give you some clue if the exe runs or if you see any error message.
You do not mention what exact engine you select when packaging, so I do not know where the error, if any, would show up.
First step would be to package a simple hello world app with a command line engine and run that on the target computer from a console.
That should give you some clue if the exe runs or if you see any error message.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- cdouglas_nch
- Posts: 16
- Last visit: Wed Feb 28, 2024 10:55 am
Re: 32 Bit EXE not running on some 64 Bit systems
I stated that I used the V3 script engine. I guess I left out that I'm using the 'Windows Forms' one.
I'll create a basic V3 Command line EXE and see what happens.
I'll create a basic V3 Command line EXE and see what happens.
- cdouglas_nch
- Posts: 16
- Last visit: Wed Feb 28, 2024 10:55 am
Re: 32 Bit EXE not running on some 64 Bit systems
Thanks for the suggestion. Rather than creating a basic script, I simply switched the script engine to Command Line on my project and ran the 32-bit EXE produced from that. It quickly pointed to the issue, which was the 32-bit PowerShell Execution Policy was set to Restricted. Face palm moment right here.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: 32 Bit EXE not running on some 64 Bit systems
Don't worry. It happens to all of us
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.