Compiled PowerShell Script crashes in Win7 32Bit

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
KlausGB
Posts: 4
Joined: Mon Feb 11, 2019 11:37 am

Compiled PowerShell Script crashes in Win7 32Bit

Post by KlausGB » Wed Feb 20, 2019 3:23 am

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

User avatar
jvierra
Posts: 13725
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by jvierra » Wed Feb 20, 2019 3:53 am

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.

User avatar
Olga_B
Site Admin
Posts: 117
Joined: Mon May 15, 2017 9:06 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by Olga_B » Wed Feb 20, 2019 10:23 am

Also check what version of PowerShell is installed on the Win7 machine.

You are building PowerShell V3 Host (Windows Forms)

KlausGB
Posts: 4
Joined: Mon Feb 11, 2019 11:37 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by KlausGB » Mon Feb 25, 2019 12:44 am

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

User avatar
Olga_B
Site Admin
Posts: 117
Joined: Mon May 15, 2017 9:06 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by Olga_B » Mon Feb 25, 2019 11:17 am

Yes, you need to install version 3.

Locked