Executable not running on W7x64 - was running before

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 4 years and 11 months 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.
User avatar
albourne
Posts: 4
Last visit: Fri Dec 09, 2022 2:25 am

Executable not running on W7x64 - was running before

Post by albourne »

We have been using PS Studio for building some GUI apps.
I recently tried to convert to EXE and the executable will not run on W7 x64 with PS2.0 installed anymore.

This had been built many times before and was properly running on those systems.
In addition, no modifications were made on the script itself between the previous script version and the latest one (only a couple of variable names were changed).

Also, for the script to run on Windows 10, we need to provide the .config file alongside which wasn't the case in the past.
We just built one single executable and successfully ran on both OS.

Powershell Studio version: 5.6.162 running on Windows 10 1803 x64

This is the psbuild info:

Code: Select all

[Package]
Output=program2.3.1
OutputPath=bin
Target=Microsoft Windows 64 Bit
IconFile=applic.ico
Manifest=
ManifestType=1
STA=1
ResolveExternalScripts=0
GenerateConfigFile=0
Password2=
Username=
Engine=SAPIEN PowerShell V2 Host (Windows Forms)
UseRunAs=0
PFX=
TimeStamp=http://timestamp.globalsign.com/scripts/timstamp.dll
PFXPassword2=
RestrictUser=
RestrictMAC=
RestrictMachine=
RestrictDomain=
RestrictInstance=1
RestrictedOS=
ProhibitLogging=0
DisableLogging=0
DisableTranscript=0
FileVersion=2.3.1.0
ProductVersion=2.3.1.0
ProductName=Program Name
Description=Program Name (PS2)
Company=Company Name
Copyright=Copyright (c) 2017 All rights reserved
InternalName=
OriginalName=program2.3.1
Comments=
AutoIncrementVersion=0
PFXThumbPrint=
This is the target system info.
Microsoft Windows 7 Professional
OSArchitecture : 64-bit

Code: Select all

PS C:\> $psversiontable

Name                           Value
----                           -----
CLRVersion                     2.0.50727.8800
BuildVersion                   6.1.7601.17514
PSVersion                      2.0
WSManStackVersion              2.0
PSCompatibleVersions           {1.0, 2.0}
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.1
Any help would be appreciated.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Executable not running on W7x64 - was running before

Post by davidc »

[TOPIC MOVED TO POWERSHELL STUDIO FORUM BY MODERATOR]

Please try rebuilding the packaged executable using the latest service build (v163) and let us know if the issue persists.
David
SAPIEN Technologies, Inc.
This topic is 4 years and 11 months 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.