Love the new toolkit. However, I used to test as I was building by loading up and running the AppDeployToolkitMain.ps1 and then running the lines of code I put into Deploy-Application.ps1. How do I do this with the new toolkit? Also, how does one change the configuration? I don’t use balloon notifications and want to turn them off.
I was building by loading up and running the AppDeployToolkitMain.ps1 and then running the lines of code I put into Deploy-Application.ps1. How do I do this with the new toolkit?
With PSAppDeployToolkit v4, you’d import your module, then you should be able to run your commands. If you need/want to see onscreen log output, there’s two options:
- Add
-Verbose
on the end of your function calls - Start a temporary session so the module is bootstrapped. This is achieved by doing
$adtSession = Open-ADTSession -SessionState $ExecutionContext.SessionState -PassThru
( you can also pass through your additional parameters like-AppVendor
,-AppName
, etc.
Also, how does one change the configuration? I don’t use balloon notifications and want to turn them off.
In the Template_v4 ZIP file you’ve likely downloaded, in the root of that folder there will be a “Config” directory. All the familiar options will be in there. Please modify this one, and not the config folder within the PSAppDeployToolkit module folder as it’s not designed to be tampered with.
1 Like