Search found 28 matches

by laned101
Sun Nov 29, 2020 12:47 pm
Forum: Former and Future Customers - Questions
Topic: Import-Module ..\moduleFolder\
Replies: 5
Views: 153

Re: Import-Module ..\moduleFolder\

Ive given you all the code that is relevant `Import-Module ..\Model3\Model3` along with the structure. This works perfectly fine within ISE and Powershell console from the relevant directory, it just doesn't work in PSS.
by laned101
Sun Nov 29, 2020 9:18 am
Forum: Former and Future Customers - Questions
Topic: Import-Module ..\moduleFolder\
Replies: 5
Views: 153

Re: Import-Module ..\moduleFolder\

Thanks for the response, any idea why it wont let me import using ..\?
by laned101
Fri Nov 27, 2020 12:42 pm
Forum: Former and Future Customers - Questions
Topic: Import-Module ..\moduleFolder\
Replies: 5
Views: 153

Import-Module ..\moduleFolder\

Firstly no idea why this keeps post here (Former and Future Customers - Questions) I have posted this in PowerShell Studio Application Support twice and it somehow ends up here again. Anyway Product: PowerShell Studio 2019 (64 Bit) Build: v5.6.167 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.1776...
by laned101
Wed Nov 18, 2020 6:08 am
Forum: PowerShell
Topic: Windows Service
Replies: 4
Views: 374

Re: Windows Service

My Service code runs separate from my GUI code, the GUI code is packaged as part of the MSI.

When I uninstall the Application from Add Remove Programs, you'd think it would stop the service then remove it. But not to worry I'll write the logic to do it.
by laned101
Wed Nov 18, 2020 5:51 am
Forum: PowerShell
Topic: Windows Service
Replies: 4
Views: 374

Re: Windows Service

Yes I noticed it's only when the service is active. I thought it would shutdown as part of the uninstall process? Is this not the case? hmm might be able to add that as a custom action during uninstall.
by laned101
Wed Nov 18, 2020 5:24 am
Forum: PowerShell
Topic: Windows Service
Replies: 4
Views: 374

Windows Service

I have created a windows service app with powershell and studio. I have included a few WinForm GUIs to help with configuration etc. I have noticed that now when uninstalling the application it doesn't remove the service from the services list. I can't work out why any help would be appreciated.
by laned101
Tue Nov 17, 2020 11:58 am
Forum: PowerShell GUIs
Topic: Windows Tray Application
Replies: 7
Views: 386

Re: Windows Tray Application

JackMayhoffer wrote:
Fri Nov 13, 2020 1:43 pm
Thanks, this helped a lot.
You're welcome
by laned101
Tue Nov 17, 2020 11:54 am
Forum: PowerShell
Topic: Custom Actions
Replies: 0
Views: 286

Custom Actions

Hi, I am trying to work out how to execute custom actions from a dir that is not INSTALLDIR. Specifically, I am building an MSI with various binaries in it. These binaries get moved to a BIN directory within the install directory (via Powershell), but I can not execute the custom actions as it doesn...
by laned101
Thu Nov 05, 2020 4:05 am
Forum: PowerShell GUIs
Topic: Windows Tray Application
Replies: 7
Views: 386

Re: Windows Tray Application

I have worked this out now! It seems I didnt need to add the Add_Click event. This works as expected now $Options = { Add-Type -AssemblyName System.Windows.Forms $TestForm = New-Object system.Windows.Forms.Form $TestForm.ClientSize = '500,300' $TestForm.text = "Simple Gui" $TestForm.BackColor = "#ff...
by laned101
Thu Nov 05, 2020 3:35 am
Forum: PowerShell GUIs
Topic: Windows Tray Application
Replies: 7
Views: 386

Re: Windows Tray Application

Thank you, I have taken a look and the only event I can see that remotely fits with what I am trying to achieve is the MouseClick event. However this is only for the Tray Icon, this doesnt seem to have any events for clicking icons on the the menu of the tray icon (once clicked). Here is a descripti...