POwershell Studio looking for install exe when double clicking ps1

Use this forum to ask questions about installation or issues encountered while installing our software.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
This topic is 2 months and 3 weeks 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.
bandersonhalo
Posts: 4
Last visit: Wed Sep 18, 2024 8:32 am

POwershell Studio looking for install exe when double clicking ps1

Post by bandersonhalo »

Hello,

I have installed Powershell studio 2024 using the web download, I have activated the install. I can launch Powershell Studio from the icon with no issues. BUT if I double click a ps1 file expecting it to launch Powershell Studio, it starts an install and is looking for 158689744.exe. I have searched my hard drive and do not see this exe anyplace... has anyone seen this and if so what was your solution?

I have used Powershell studio for at least 8 to 10 years and haven never seen this issue.
User avatar
brittneyr
Site Admin
Posts: 1825
Last visit: Mon Dec 09, 2024 11:09 am
Answers: 45
Been upvoted: 36 times

Re: POwershell Studio looking for install exe when double clicking ps1

Post by brittneyr »

From similar reported issues, this behavior had something a resource from the installer failing to register with the computer.
When you attempt to open a script from file explorer, the computer will search for the installation instead of loading the product, you get a loading bars as it searches for the installation
There are usually errors in the event viewer following after installing.
The errors will look like the following:
Detection of product '{7E4C87FE-4FE6-44A3-8C34-642090C7D524}', feature 'MainFeature' failed during request for component '{6BC481DC-ECE7-46D9-8572-C6F13629D083}'
This behavior only happens if Windows Installer detects there are some missing or modified resources for the application.

The solution in the past for this behavior was to reinstall the product. Please try reinstalling and let me know if this resolved the issue for you.
Brittney
SAPIEN Technologies, Inc.
bandersonhalo
Posts: 4
Last visit: Wed Sep 18, 2024 8:32 am

Re: POwershell Studio looking for install exe when double clicking ps1

Post by bandersonhalo »

brittneyr wrote: Fri Sep 13, 2024 1:22 pm From similar reported issues, this behavior had something a resource from the installer failing to register with the computer.
When you attempt to open a script from file explorer, the computer will search for the installation instead of loading the product, you get a loading bars as it searches for the installation
There are usually errors in the event viewer following after installing.
The errors will look like the following:
Detection of product '{7E4C87FE-4FE6-44A3-8C34-642090C7D524}', feature 'MainFeature' failed during request for component '{6BC481DC-ECE7-46D9-8572-C6F13629D083}'
This behavior only happens if Windows Installer detects there are some missing or modified resources for the application.

The solution in the past for this behavior was to reinstall the product. Please try reinstalling and let me know if this resolved the issue for you.
Hello Brittney,

I have reinstalled twice hoping to it would be the solution. I had this same issue on my previous laptop as well. Both we 2024 installs, both run as admin, both registered. I can open Powershell Studio from the Start menu icon with no issues.
I fixed the issue on my previous laptop at some point but I dont remember what the fix was...
here are the errors shown in Event Viewer
1. Detection of product '{7D668FBB-93BC-47EE-A41F-30A18C8D46CB}', feature 'DefaultFeature', component '{3F057C75-795D-4292-9597-C8D2001996E6}' failed. The resource 'HKEY_CURRENT_USER(64)\Software\SAPIEN Technologies, Inc.\SnippetEditor\Settings\Company' does not exist.

2. Detection of product '{7D668FBB-93BC-47EE-A41F-30A18C8D46CB}', feature 'ps1' failed during request for component '{860CBE98-DC94-4F64-A2B9-FD601726A64A}'

3. Activation context generation failed for "C:\Users\{user name}\Downloads\PowerShell Studio Installer.exe".Error in manifest or policy file "" on line . A component version required by the application conflicts with another component version already active. Conflicting components are:. Component 1: C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.3672_none_2713b9d173822955.manifest. Component 2: C:\Windows\WinSxS\manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.3672_none_6ec0f0a887fe525b.manifest.
bandersonhalo
Posts: 4
Last visit: Wed Sep 18, 2024 8:32 am

Re: POwershell Studio looking for install exe when double clicking ps1

Post by bandersonhalo »

update....

I did a repair installing EVERYTHING
no change

enables .net 3.5 thinking that might have been the previous fix
No luck

I tried running the ps1 as admin (had to run a CMD as admin and then run a ps1 there)
it launched Powershell Studio 100% as expected

Tried launching from a ps1 again as a non-admin
same issue again, so this appears to be a permissions issue with something.

I am a standard user on Windows 11 (but have an admin acct but due to policy can not use that acct for daily work).

Granted my standard user ID modify rights over the c:\prog files\sapien folder...
No change
User avatar
brittneyr
Site Admin
Posts: 1825
Last visit: Mon Dec 09, 2024 11:09 am
Answers: 45
Been upvoted: 36 times

Re: POwershell Studio looking for install exe when double clicking ps1

Post by brittneyr »

Please try the following:

1. Uninstall PowerShell Studio.
2. Make sure you have the latest build: 5.8.248
3. Run the installer with /L*V "setup.log" like so:
  1.        SPS24Setup_5.8.248_082224_x64.exe /L*V "setup.log"
4. Attach the log file here or upload it here: https://www.sapien.com/support/upload
5. Please provide specifics about your system.
6. Please indicate any other software you use that might association the .ps1 extension with itself.
7. Check the following registry key: HKEY_CLASSES_ROOT\.ps1 if "Perceived Type" is "Text" and let us know.
Brittney
SAPIEN Technologies, Inc.
bandersonhalo
Posts: 4
Last visit: Wed Sep 18, 2024 8:32 am

Re: POwershell Studio looking for install exe when double clicking ps1

Post by bandersonhalo »

Log uploaded.... BUT this time it had different behavior

Install ran
launched from icon fine
launched from PS1 prompted for admin creds, sat and chewed for several minutes, prompted for admin creds again, did a install/repair then launched as expected.
closed PSStudio
launched from PS1 again and it opened as expected

So I am working now, BUT it took way to long to get to this point.
This topic is 2 months and 3 weeks 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.