Samples/v2/AppLibrary/StandardApps/RSATOffline.json

{
    "Name": "RSATOffline",
    "Source": {
                   "Manual": true
               },
    "Install": [
                    {
                        "PreScriptBlocks": [
                                                "$ISO = Get-ChildItem $Item.Path",
                                                "$ISO | Mount-DiskImage",
                                                "$Source = (Get-Volume -DiskImage (Get-DiskImage -ImagePath $ISO.FullName)).DriveLetter + \":\\LanguagesAndOptionalFeatures\"",
                                                "$Item.Path = $Null",
                                                "Get-WindowsCapability -Online -Name RSAT* | Add-WindowsCapability -Online -LimitAccess -Source $Source"
                                            ],
                        "Path": "[SoftwarePath]\\WindowsOptionalFeatures\\*.iso"
                    }
                ],
    "Registry": [

                 ],
    "Detection": {
                  }
}