===================================
Universal .PTP livery tool
===================================
for FSX, and P3D
(MSFS users, see https://flightsim.to/addon/101791/ptp-installer-for-pmdg-737-800-msfs-2024-only)

---------------USAGE---------------
To run, open a command prompt inside this folder (or run "cd <this folder path>") and run this command:

powershell -ExecutionPolicy Bypass -File .\UnPTP.ps1 "<PTP file path>"

You can add multiple PTPs as needed.
You can also use the QuickRun.bat file, after putting the PTP file into this folder simply run the file and enter the PTP file name.

Then, install the livery manually into P3D:

Paste the content of the "Config.cfg" as the last of the "[fltsim.<x>]" entries in the relevant aircraft.cfg file located in "<Sim root folder>\SimObjects\Airplanes\<aircraft>"
Copy the "Texture.<livery name>" folder into that same aircraft folder.
Rename "Aircraft.ini" to the aircraft's registration and paste it into "<Sim root folder>\PMDG\<product>\Aircraft".

"Settings.dat" is mostly for debug purposes, you won't need it. Some custom liveries may be missing the "Aircraft.ini" file, this is not a big deal.

CREDITS:
The core script is not my work.
PMDG (reluctantly) - CabLib.dll from Operations Center 2

This is a basic PowerShell script, you can check the code if you are suspicious.