Right now I'm learning the Powershell App Deployment Toolkit. PSADT is used in software deployment, to have more control over (silent-)installs, (silent-)uninstalls and repairs of software. To work as expected, it needs a certain directory-structure, which looks like this:
Source
│ Deploy-Application.exe
│ Deploy-Application.exe.config
│ Deploy-Application.ps1
│
├───AppDeployToolkit
│ AppDeployToolkitBanner.png
│ AppDeployToolkitConfig.xml
│ AppDeployToolkitExtensions.ps1
│ AppDeployToolkitHelp.ps1
│ AppDeployToolkitLogo.ico
│ AppDeployToolkitMain.cs
│ AppDeployToolkitMain.ps1
│
├───Files
│ installer.msi
│
└───SupportFiles
info.txt
- The
Deploy-Application.ps1is the place where you put your own logic. - The
AppDeployToolkitMain.ps1stores the toolkit-functions. - From inside the
Deploy-Application.ps1you can call all functions declared inAppDeployToolkitMain.ps1. - With
AppDeployToolkitHelp.ps1you can overview all usable commands with the synopsis (syntax etc.).
For the purpose of debugging I want to try all commands outside of the AppDeployToolkitMain.ps1 in a normal powershell. It know that I could just copy out every function and make a new .ps1-file, but this seems too tideous. Also I think some functions depend on each other, so I had to copy or read through everything.
Is there a way to import the AppDeployToolkitMain.ps1, so I can try out every function?