Application Packaging

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

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 8 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.
Locked
bullitt773
Posts: 12
Last visit: Wed Mar 06, 2024 5:29 am

Application Packaging

Post by bullitt773 »

I have a very simple GUI that I'd like to distribute to some users, however it requires that a module be present on the workstation where it's being run from. Is there a way I can package this app so that the module folder is installed upon initial app installation?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Application Packaging

Post by jvierra »

You can just copy the folder to the folder that the script runs in as a subfolder and load it using an explicit path. It is also possible to create a module project and use it to create an installer for the module.

All of this assumes a module that does not require specific custom installation.
bullitt773
Posts: 12
Last visit: Wed Mar 06, 2024 5:29 am

Re: Application Packaging

Post by bullitt773 »

Thanks, I'd definitely rather have this as a package that when the user installs it, that module folder automatically gets copied to the correct location locally. I'm a newbie here, so can you point me in the right direction on getting started with that?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Application Packaging

Post by jvierra »

You would have to customize the installer for that to happen.

Look at the Sapien blog articles on installing packaged scripts and modules.
This topic is 4 years and 8 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.
Locked