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
Compiled PowerShell Script crashes in Win7 32Bit
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.
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.
Re: Compiled PowerShell Script crashes in Win7 32Bit
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.
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
Also check what version of PowerShell is installed on the Win7 machine.
You are building PowerShell V3 Host (Windows Forms)
You are building PowerShell V3 Host (Windows Forms)
Re: Compiled PowerShell Script crashes in Win7 32Bit
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
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