Pdf printer missing , trying to make a flexapp of pdfcreator

Made a flexapp of PDFCreator 5.2.1 but i cannot get the pdf printer working.
"No printers installed" popup if i start pdfcreator asking to fix the printer but this failes.

Pdfcreator starts the following command line to fix the printer.
"C:\Program Files\PDFCreator\PrinterHelper.exe" RepairPrinter -name="PDFCreator" -PortApplication="C:\Program Files\PDFCreator\PDFCreator-cli.exe"

if i start this from cmd i get a log.
2025-01-22 10:07:50.5024 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Installed ports [9]:
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: COM1: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: COM2: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: COM3: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: COM4: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: FILE: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: LPT1: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: LPT2: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: LPT3: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: PORTPROMPT: [Monitor: Local Monitor, Description: Local Port]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Installed monitors [4]:
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: WSD Port [Environment: Windows x64, DLLName: APMon.dll (10.0.22621.1 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5186 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Standard TCP/IP Port [Environment: Windows x64, DLLName: tcpmon.dll (10.0.22621.1 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Local Port [Environment: Windows x64, DLLName: localspl.dll (10.0.22621.2506 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Appmon [Environment: Windows x64, DLLName: AppMon.dll (10.0.22621.3527 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Installed drivers (x86) [1]:
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Microsoft enhanced Point and Print compatibility driver [DriverPath: C:\Windows\system32\spool\DRIVERS\W32X86\3\mxdwdrv.dll (10.0.22621.3810 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Installed drivers (x64) [3]:
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Microsoft Print To PDF [DriverPath: C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_amd64_814fb6b90fe879a0\Amd64\mxdwdrv.dll (10.0.22621.4541 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Remote Desktop Easy Print [DriverPath: C:\Windows\system32\spool\DRIVERS\x64\3\mxdwdrv.dll (10.0.22621.4541 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Microsoft enhanced Point and Print compatibility driver [DriverPath: C:\Windows\system32\spool\DRIVERS\x64\3\mxdwdrv.dll (10.0.22621.4541 (WinBuild.160101.0800))]
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Installed printers [1]:
2025-01-22 10:07:50.5341 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Microsoft Print to PDF [DriverName:Microsoft Print To PDF, PortName:PORTPROMPT:]
2025-01-22 10:07:50.5341 [Info] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RepairPrinter: Started
2025-01-22 10:07:50.5341 [Info] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Validation for 'PDFCreator' successfully passed! [ResultCode: 0]
2025-01-22 10:07:50.5341 [Info] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RepairPrinter: Started restart spooler...
2025-01-22 10:07:50.8199 [Info] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RepairPrinter: Spooler restarted...
2025-01-22 10:07:50.8199 [Info] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RepairPrinter: Install printer...
2025-01-22 10:07:50.8199 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: UnInstallPrinter: Started
2025-01-22 10:07:50.8668 [Error] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: No PDFCreator printer was found! [ResultCode: 3]
2025-01-22 10:07:50.8825 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: InstallPrinter: Started
2025-01-22 10:07:50.8825 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RemoveCertificates: Started
2025-01-22 10:07:50.8825 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: RemoveCertificates: Finished
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: InstallDriverIfMissing: Started
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: AddPdfcreatorPrinterDriverGdi: Started
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: ExtractPrinterFilesWindows: Started
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: PrinterDriverDirectory: C:\Windows\system32\spool\DRIVERS\x64
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT5.DLL"
2025-01-22 10:07:50.8985 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT5.DLL".
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT5.DLL" [667,648 bytes, version: 10.0.22621.1265 (WinBuild.160101.0800)] was written.
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PS5UI.DLL"
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PS5UI.DLL".
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PS5UI.DLL" [1,286,144 bytes, version: 10.0.22621.1265 (WinBuild.160101.0800)] was written.
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.HLP"
2025-01-22 10:07:50.9142 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.HLP".
2025-01-22 10:07:50.9302 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.HLP" [26,038 bytes] was written.
2025-01-22 10:07:50.9302 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9302 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PDFCREAT.PPD"
2025-01-22 10:07:50.9302 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PDFCREAT.PPD".
2025-01-22 10:07:50.9458 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PDFCREAT.PPD" [32,253 bytes] was written.
2025-01-22 10:07:50.9458 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9458 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PS_SCHM.GDL"
2025-01-22 10:07:50.9458 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PS_SCHM.GDL".
2025-01-22 10:07:50.9619 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PS_SCHM.GDL" [5,561 bytes] was written.
2025-01-22 10:07:50.9619 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9619 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Started writing "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.NTF"
2025-01-22 10:07:50.9619 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: Write File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.NTF".
2025-01-22 10:07:50.9775 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: File "C:\Windows\system32\spool\DRIVERS\x64\PSCRIPT.NTF" [1,062,732 bytes] was written.
2025-01-22 10:07:50.9775 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: SaveStreamToFile: Finished
2025-01-22 10:07:50.9775 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: ExtractPrinterFilesWindows: Finished
2025-01-22 10:07:51.0252 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: AddPdfcreatorPrinterDriverGdi: AddPrinterDriver failed! (Maybe a locked file.)
2025-01-22 10:07:51.0252 [Trace] 4216-1 () System.Dynamic.UpdateDelegates.UpdateAndExecute2: AddPdfcreatorPrinterDriverGdi: The system cannot find the file specified

So in the end it fails on : AddPdfcreatorPrinterDriverGdi: The system cannot find the file specified

How can i fix this?

(i was thinking of running a script with the flexap post import option that fixes / creates the pdf printer)