Search found 30 matches

by akincer
Sun Sep 20, 2020 8:02 am
Forum: PowerShell Studio
Topic: Frequent failures to upgrade Windows service app via MSI
Replies: 2
Views: 183

Re: Frequent failures to upgrade Windows service app via MSI

Extended testing points to upgrades succeeding without fail if I manually stop the service first.
by akincer
Fri Sep 18, 2020 12:49 pm
Forum: PowerShell Studio
Topic: Frequent failures to upgrade Windows service app via MSI
Replies: 2
Views: 183

Frequent failures to upgrade Windows service app via MSI

Product, version and build: Powershell Studio 2020, 5.7.179 Operating system: Windows Server 2016 Have a Windows service app that new MSI versions fail to upgrade with the following error: Service 'myservice' (myservice) could not be installed. Verify that you have sufficient privileges to install s...
by akincer
Thu Aug 06, 2020 11:44 am
Forum: PowerShell Studio
Topic: Creating a windows service
Replies: 2
Views: 376

Re: Creating a windows service

After additional testing it appears you must first compile the service project then add the exe as the file for the MSI. Is this expected?
by akincer
Thu Aug 06, 2020 10:55 am
Forum: PowerShell Studio
Topic: Creating a windows service
Replies: 2
Views: 376

Creating a windows service

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 akincer
Wed Aug 05, 2020 1:47 pm
Forum: PowerShell Studio
Topic: IDE and classes
Replies: 4
Views: 335

Re: IDE and classes

I figured out why type hinting wasn't working while trying to recreate. I had removed the type casting in the property declaration because of some troubleshooting. Adding it back fixed hinting but the error in the IDE on the left saying "Unable to find type [MyType]" persists. Maybe just a harmless ...
by akincer
Wed Aug 05, 2020 11:54 am
Forum: PowerShell Studio
Topic: IDE and classes
Replies: 4
Views: 335

Re: IDE and classes

With your project open, set your class ps1 files Shared property to true from the Properties panel: SPS_PropertiesSharedTrue.png Your classes should then appear in the Functions panel. When a project is built, the script files and psf files are exported into one script file. This is why your projec...
by akincer
Wed Aug 05, 2020 10:27 am
Forum: PowerShell Studio
Topic: IDE and classes
Replies: 4
Views: 335

IDE and classes

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 akincer
Mon Oct 07, 2019 12:12 pm
Forum: PowerShell
Topic: Start-Job hangs Powershell on Windows 2016
Replies: 18
Views: 6953

Re: Start-Job hangs Powershell on Windows 2016

Figured out why jobs using Invoke-Command were going out to lunch and it's embarrassingly silly. I had to do this because due to how multi-threading is achieved using runspaces, REST API requests were stepping all over each other. The performance boost for this use case using jobs instead of runspac...
by akincer
Mon Oct 07, 2019 10:53 am
Forum: PowerShell
Topic: Start-Job hangs Powershell on Windows 2016
Replies: 18
Views: 6953

Re: Start-Job hangs Powershell on Windows 2016

I can tell it's "hung" because execution in the parent thread stops. That code stopped executing where it always does -- starting a job. This time on job 5. Using process explorer: powershell.exe parent process state: Wait:UserRequest conhost.exe parent process state: Wait:UserRequest powershell.exe...
by akincer
Fri Oct 04, 2019 2:21 pm
Forum: PowerShell
Topic: Start-Job hangs Powershell on Windows 2016
Replies: 18
Views: 6953

Re: Start-Job hangs Powershell on Windows 2016

For now I've just decided to use PoshRSJob and keep it all in runspaces. I cannot seem to replicate it, but I had BLISTERING speed using Invoke-Command as a job in one test. I've got acceptable performance with PoshRSJob. Now it seems to be a matter of finding the right balance of throttling concurr...