Page 1 of 1

Compiled PowerShell Script crashes in Win7 32Bit

Posted: Wed Feb 20, 2019 2:23 am
by KlausGB
Hello
i developed a script in Win10Pro 64 Bit and it works well.
i compiled it (Deploy + Build). The exe works in Win10Pro 64 bit, but crashed immediately in Win7Pro 32Bit.

Settings for build:
Target Windows 32 Bit
SAPIEN PowerShell V3 Host (Windows Forms)
Execution Restiction: checked Win10 Win8.1 Win8 Win7

Crash Message:
Problemsignatur:
Problemereignisname: CLR20r3
Problemsignatur 01: ScanPrix_Updater.exe
Problemsignatur 02: 1.0.0.1
Problemsignatur 03: 5c24b325
Problemsignatur 04: PoshExeHostWinV3
Problemsignatur 05: 1.0.0.1
Problemsignatur 06: 5c24b325
Problemsignatur 07: 3c
Problemsignatur 08: 87
Problemsignatur 09: System.IO.FileNotFoundException
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 0a9e
Zusatzinformation 2: 0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3: 0a9e
Zusatzinformation 4: 0a9e372d3b4ad19135b953a78882e789

What can i do?
Best Regards
Klaus

Re: Compiled PowerShell Script crashes in Win7 32Bit

Posted: Wed Feb 20, 2019 2:53 am
by jvierra
Please post the complete PowerShell exception message.

Note that you have a message: "System.IO.FileNotFoundException"

You code is missing a correct file path or file name. Try to use complete path names instead of relative paths.

Re: Compiled PowerShell Script crashes in Win7 32Bit

Posted: Wed Feb 20, 2019 9:23 am
by Olga_B
Also check what version of PowerShell is installed on the Win7 machine.

You are building PowerShell V3 Host (Windows Forms)

Re: Compiled PowerShell Script crashes in Win7 32Bit

Posted: Sun Feb 24, 2019 11:44 pm
by KlausGB
Right, that's where V2 is installed.
I thought Power Shell Studio would be a compiler where the result is independent of the installed PowerShell because you are promoting it as a tool to create tools. As I know it, tools are not installed, but simply copied and called, just like MS Sysinternals.
Now I have to install at least version 3 of PowerShell on all systems where I want to use my tool? Version 2 lacks the features I need.

Translated with www.DeepL.com/Translator

Re: Compiled PowerShell Script crashes in Win7 32Bit

Posted: Mon Feb 25, 2019 10:17 am
by Olga_B
Yes, you need to install version 3.