V4.0.6 - Deploymode and DeploymentType

In the changelog for 4.0.6 it says: " Don’t specify default values within Invoke-AppDeployToolkit.ps1 for -DeploymentType and -DeployMode.

But where else should I “hardcode” it in ? My workflow used to be to just change the Deploymenttype to uninstall and vice versa in the ISE to test my script and have an output right away. Also, I always hardcoded NonInteractive into the script so that I can just install the script in intune or sccm via Invoke-AppDeployToolkit.exe and Invoke-AppDeployToolkit.exe Uninstall

If I now want to run my script as Non-Interactive but Uninstall I only have the possibility to run the exe via cmd like this: Invoke-AppDeployToolkit.exe -DeploymentType Uninstall -DeploymentMode NonInteractive. But that just runs the script and gives me zero feedback. I want to just be able again to run it straight from the ISE like it was possible until 4.0.5.

I would greatly appreciate it to know where I can “hardcode” the values back in again. Would also be easier than to explain customers that they need to do sth. different again when adding new packages to SCCM/ Intune…

Thanks in advance

If you wanting to hard-code values, by all means hard-code your intention. We’re just not hard-coding them there anymore.

perfect example of disimprovement.

Care to elaborate as to why you think that?