Templates/Application/App.json

{
    "PackageInformation": {
        "SetupType": "EXE",
        "SetupFile": "Deploy-Application.exe",
        "SourceFolder": "Source",
        "OutputFolder": "Package",
        "IconFile": "Icon.png"
    },
    "Information": {
        "DisplayName": "<replaced_by_pipeline>",
        "AppVersion": "<replaced_by_pipeline>",
        "Description": "<<ENTER_VALUE:[custom_text]>>",
        "Publisher": "<replaced_by_pipeline>",
        "Notes": "<<ENTER_VALUE:[custom_text]>>",
        "Owner": "<<ENTER_VALUE:[custom_text]>>",
        "InformationURL": "<replaced_by_pipeline>",
        "PrivacyURL": "<replaced_by_pipeline>"
    },
    "Program": {
        "InstallCommand": "Deploy-Application.exe Install",
        "InstallCommandInteractive": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-ServiceUI.ps1 -DeploymentType Install -AllowRebootPassThru",
        "UninstallCommand": "Deploy-Application.exe Uninstall",
        "UninstallCommandInteractive": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-ServiceUI.ps1 -DeploymentType Uninstall -AllowRebootPassThru",
        "InstallExperience": "<<SELECT_VALUE:[system, user]>>",
        "DeviceRestartBehavior": "<<SELECT_VALUE:[suppress, force, basedOnReturnCode, allow]>>",
        "AllowAvailableUninstall": "<<SELECT_VALUE:[true, false]>>"
    },
    "RequirementRule": {
        "MinimumSupportedWindowsRelease": "<<SELECT_VALUE:[W10_1607, W10_1703, W10_1709, W10_1809, W10_1909, W10_2004, W10_20H2, W10_21H1, W10_21H2, W10_22H2, W11_21H2, W11_22H2]>>",
        "Architecture": "<<SELECT_VALUE:[All, x64, x86]>>"
    },
    "CustomRequirementRule": [
    ],
    "DetectionRule": [
        {
            "Type": "Registry",
            "DetectionMethod": "VersionComparison",
            "KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\<<ENTER_VALUE[reg_key]>>",
            "ValueName": "DisplayVersion",
            "Operator": "greaterThanOrEqual",
            "Value": "<replaced_by_pipeline>",
            "Check32BitOn64System": "<<SELECT_VALUE:[false, true]>>"
        },
        {
            "Type": "Registry",
            "DetectionMethod": "VersionComparison",
            "KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\###PRODUCTCODE###",
            "ValueName": "DisplayVersion",
            "Operator": "greaterThanOrEqual",
            "Value": "<replaced_by_pipeline>",
            "Check32BitOn64System": "<<SELECT_VALUE:[false, true]>>"
        },
        {
            "Type": "Registry",
            "DetectionMethod": "Existence",
            "KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\<<ENTER_VALUE[reg_key]>>",
            "ValueName": "<<ENTER_VALUE:[reg_value_name]>>",
            "DetectionType": "<<SELECT_VALUE:[exists, notExists]>>",
            "Check32BitOn64System": "<<SELECT_VALUE:[false, true]>>"
        },
        {
            "Type": "Registry",
            "DetectionMethod": "Existence",
            "KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\###PRODUCTCODE###",
            "ValueName": "<<ENTER_VALUE:[reg_value_name]>>",
            "DetectionType": "<<SELECT_VALUE:[exists, notExists]>>",
            "Check32BitOn64System": "<<SELECT_VALUE:[false, true]>>"
        },
        {
            "Type": "MSI",
            "ProductCode": "<replaced_by_pipeline>",
            "ProductVersionOperator": "<<SELECT_VALUE:[notConfigured, equal, notEqual, greaterThanOrEqual, greaterThan, lessThanOrEqual, lessThan]>>",
            "ProductVersion": "<replaced_by_pipeline>"
        },
        {
            "Type": "MSI",
            "ProductCode": "<replaced_by_pipeline>",
            "ProductVersionOperator": "notConfigured"
        },
        {
            "Type": "Script",
            "ScriptFile": "detection.ps1",
            "EnforceSignatureCheck": "<<SELECT_VALUE:[false, true]>>",
            "RunAs32Bit": "<<SELECT_VALUE:[false, true]>>"
        }
    ]
}