Condition for deployment



  • Shawn Anderson

    The conditions native to PDQ Deploy do not allow for custom creation. You can however use a .bat file to check for existing conditions and then fire off deployments based on what passes.

    Comment actions Permalink
  • M Moennikes



    thanks for your reply. i can add an Addition step (script).

    In the script the condition and then use an Exit code? Error code?

    Lets say:

    Condition is "registry key hklm\Software\somethin" exists.

    Script checks the regkey.

    If exists Exit/error code 0, deployment will start (next steps)

    if does not exist, error/Exit code is 1.

    Deployment will stop.

    But then the deployment is failed in the pdq deploy console?


    Comment actions Permalink
  • Adam R. Koczarski

    I just went through this exercise. You can add a step like;

    if exist "C:\Program Files\OpenVPN\bin\openvpn.exe" (

    EXIT /B 1

    and then on the Options tab select 'Stop Deployment with Success' on the 'Error Mode' drop down. You package will stop with 'Success' at this step and not try to reinstall the application. 

    Comment actions Permalink

Please sign in to leave a comment.