Reading through that article, it sounds like the config.plist file does not exist on the system until the installer package is run. If that is the case, you probably do not need a script at all. I would try putting the PKG file into a policy and then using the "Files and Processes" tab to write the license key using the "Execute Command" function.

Obviously replace "ABCDE-..." with your actual license key.
Test that before going down the road of using a script.
Reading through that article, it sounds like the config.plist file does not exist on the system until the installer package is run. If that is the case, you probably do not need a script at all. I would try putting the PKG file into a policy and then using the "Files and Processes" tab to write the license key using the "Execute Command" function.

Obviously replace "ABCDE-..." with your actual license key.
Test that before going down the road of using a script.
Thank a lot. Let me try that and I will report back!
Reading through that article, it sounds like the config.plist file does not exist on the system until the installer package is run. If that is the case, you probably do not need a script at all. I would try putting the PKG file into a policy and then using the "Files and Processes" tab to write the license key using the "Execute Command" function.

Obviously replace "ABCDE-..." with your actual license key.
Test that before going down the road of using a script.
Hey Steve I've tried doing this method but i am getting the below. I can see that the plist does exists
Result of command:
config.plist: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “config.plist” couldn’t be opened because there is no such file." UserInfo={NSFilePath=config.plist, NSUnderlyingError=0x600002964c90 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
Hey Steve I've tried doing this method but i am getting the below. I can see that the plist does exists
Result of command:
config.plist: file does not exist or is not readable or is not a regular file (Error Domain=NSCocoaErrorDomain Code=260 "The file “config.plist” couldn’t be opened because there is no such file." UserInfo={NSFilePath=config.plist, NSUnderlyingError=0x600002964c90 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
Try using the full path to config.plist file.