Compiled PowerShell Script crashes in Win7 32Bit

Ask your 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.
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
KlausGB
Posts: 4
Last visit: Thu Feb 28, 2019 7:07 am

Compiled PowerShell Script crashes in Win7 32Bit

Post 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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post 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.
User avatar
Olga_B
Site Admin
Posts: 196
Last visit: Thu Mar 28, 2024 8:34 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by Olga_B »

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

You are building PowerShell V3 Host (Windows Forms)
KlausGB
Posts: 4
Last visit: Thu Feb 28, 2019 7:07 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post 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
User avatar
Olga_B
Site Admin
Posts: 196
Last visit: Thu Mar 28, 2024 8:34 am

Re: Compiled PowerShell Script crashes in Win7 32Bit

Post by Olga_B »

Yes, you need to install version 3.
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked