Page 1 of 1

PowerShell command in a package

Published: May 24, 2017 - 5:47 PM
by the Challans Town Hall
Hello,

has anyone ever run PowerShell commands within a WAPT package?

This would be very useful for uninstalling Windows 10 tools like Mail, Edge, Skype, etc.

For those interested, here's a helpful link listing some commands:

https://www.informaticien.be/news_item-20889.html

Thank you.

Re: PowerShell command in a package

Published: May 24, 2017 - 6:04 PM
by htouvet
in setuphelpers, there is the command

Code: Select all

run_powershell
https://github.com/tranquilit/WAPT/blob ... s.py#L3873

https://www.wapt.fr/en/doc/changelog.ht ... -8-2-1-3-9

Code: Select all

Changelog 1.3.8.2 -> 1.3.9
Added setuphelpers functions
[NEW] run_powershell
Example of use:

https://store.wapt.fr/package_details?p ... 2_all.wapt

Re: PowerShell command in a package

Published: June 6, 2017 - 3:54 PM
by the Challans Town Hall
Thanks Hubert, the run_powershell works perfectly. :)