Search found 14 matches

by proshot78
Tue Nov 29, 2022 9:25 pm
Forum: PowerShell Studio
Topic: Crash on run!
Replies: 2
Views: 7316

Crash on run!

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: Powershell Studio ...
by proshot78
Fri Jun 24, 2022 7:02 pm
Forum: PowerShell
Topic: Install Powershell Runtime during MSI install
Replies: 7
Views: 7338

Re: Install Powershell Runtime during MSI install

My apologies for the delayed response! I am running it against a different machine now, that doesn't have Powershell 7 installed. The MSI is not installing the Powershell 7.2.2 runtime, and I get the following error: Powershell Issue.PNG I'm not sure how to enable MSI logging (or know where they are...
by proshot78
Wed Jun 15, 2022 3:38 pm
Forum: PowerShell
Topic: Install Powershell Runtime during MSI install
Replies: 7
Views: 7338

Re: Install Powershell Runtime during MSI install

According to your screenshot you try to or are installing the 7.2.2 runtime. The error message indicates that you packaged your application for 7.2.4 These two do not go together. Either package for 7.2.4 and install that particular runtime or, use 7.2.2 for packaging and runtime. Because of .NET d...
by proshot78
Tue Jun 14, 2022 7:56 pm
Forum: PowerShell
Topic: Runs in shell but not as exe?
Replies: 0
Views: 15774

Runs in shell but not as exe?

I've been pulling my hair out over this one! I have a chunk of code: $UserADObject = Get-ADUser $UserID -properties * $UserADObject.memberof | ForEach-Object { $Group = Get-ADGroup $_ Remove-ADGroupMember -Identity $Group.name -Members $UserID -Confirm:$False } $MemberList | ForEach-Object { $Group ...
by proshot78
Tue Jun 14, 2022 7:45 pm
Forum: PowerShell
Topic: Install Powershell Runtime during MSI install
Replies: 7
Views: 7338

Re: Install Powershell Runtime during MSI install

I get the following error:
Powershell Issue.PNG
Powershell Issue.PNG (5.74 KiB) Viewed 6907 times
The MSI is not installing the runtime, but if I manually install the runtime it works just fine.
by proshot78
Tue Jun 07, 2022 8:10 pm
Forum: PowerShell
Topic: Install Powershell Runtime during MSI install
Replies: 7
Views: 7338

Install Powershell Runtime during MSI install

Ok, I've stumped myself yet again.
I have the correct Powershell runtime for installing my project. How do I tell the MSI to also install the Powershell Runtime during execution?

I tried using Custom Actions, but I'm afraid that didn't do the trick. What am I doing wrong here?
CustomAction.PNG
CustomAction.PNG (19.48 KiB) Viewed 7338 times
by proshot78
Sun May 29, 2022 5:58 pm
Forum: PowerShell
Topic: Issues installing on non-development workstation
Replies: 2
Views: 1860

Re: Issues installing on non-development workstation

Thank you so much!
I had downloaded the 7.2.2 runtime, and selected the wrong one!
by proshot78
Sat May 28, 2022 9:25 pm
Forum: PowerShell
Topic: Issues installing on non-development workstation
Replies: 2
Views: 1860

Issues installing on non-development workstation

Hello! I have a project that I've built out as an MSI, but I can only get it to work on my workstation. I get the following error box: Powershell Issue.PNG I've tried installing the dependency listed (.NET 6.0), and Powershell 7 is installed on the station that isn't working. The script Engine I hav...
by proshot78
Sat May 28, 2022 8:54 pm
Forum: PowerShell
Topic: Module failing to import
Replies: 1
Views: 1496

Re: Module failing to import

Fixed by removing module and placing functions in startup.pss
by proshot78
Sun May 22, 2022 3:47 pm
Forum: PowerShell
Topic: Module failing to import
Replies: 1
Views: 1496

Module failing to import

I have a project that has been built and installed via a MSI. When running in Powershell studio, the program can access and use a custom module I created, but when I run the installed program I get the resulting error: Import-Module: Line | 76 | Import-Module .\Common\UserToolsFunctions.psm1 | ~~~~~...