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.
Locked
bullitt773
Posts: 3
Joined: Tue Jul 02, 2019 6:02 pm

Application Packaging

Post by bullitt773 » Tue Jul 16, 2019 9:13 am

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?

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Application Packaging

Post by jvierra » Tue Jul 16, 2019 12:39 pm

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: 3
Joined: Tue Jul 02, 2019 6:02 pm

Re: Application Packaging

Post by bullitt773 » Tue Jul 16, 2019 1:26 pm

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?

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Application Packaging

Post by jvierra » Tue Jul 16, 2019 1:58 pm

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

Look at the Sapien blog articles on installing packaged scripts and modules.

Locked