kornwaretm 0 Posted November 28, 2017 Share Posted November 28, 2017 i have a problem when creating installer via server API. i don't know what to set for "endpointRepositoryPackage", "package_app_id" , "package_os", "package_os_systems", and "package_version". i've tried some possible values with no luck, when i test download the installer it fails. i create all in one installer using this json { "Era.Common.NetworkMessage.ConsoleApi.Repository.RpcCreateStoredInstallerRequest": { "staticObjectData": { "name":"Test installer", "description":"olala vit" }, "storedInstallerData": { "agentPeerCertificateUuid": { "uuid":"agentpee-rcertific-ateu-uidddddddddd" }, "endpointRepositoryPackage": { "package_app_id":"com.eset.apps.business.ees", "package_description":"ESET Endpoint Security", "package_lang":"en_US", "package_name":"ESET Endpoint Security", "package_os":"WINDOWS", "package_os_systems":"WINDOWS XP, VISTA, NT 4.0, 95, 8, 7, 2000, 10", "package_version":"6.6.2064.0" }, "staticGroupUuid": { "uuid":"staticgr-oups-uuid-stri-nghereeeeeee" }, "acceptEula":true, "installerType":1, "serverHostname":"hos.ti.pa.ddr", "serverPort":"2222" } } } i need guide for this. thanks in advance Link to comment Share on other sites More sharing options...
ESET Staff MartinK 378 Posted November 28, 2017 ESET Staff Share Posted November 28, 2017 I would try to use: package_app_id="com.eset.apps.business.eea.windows" package_os="windows" but that is just guessing - please provide trace log error in case it will fail. Link to comment Share on other sites More sharing options...
kornwaretm 0 Posted November 28, 2017 Author Share Posted November 28, 2017 hi MartinK. nice guess that last ".windows" is the missing ingredient. no error, installer created. thank you very much. Link to comment Share on other sites More sharing options...
kornwaretm 0 Posted November 29, 2017 Author Share Posted November 29, 2017 i have a follow up question. after the installer are created i noticed that the agent peer certificate doesn't stick with the installer (check my attachment). i have to manually set the certificate via the web console. if i create an installer via web console, the peer certificate are assigned automatically. { "Era.Common.NetworkMessage.ConsoleApi.Repository.RpcCreateStoredInstallerRequest": { "staticObjectData": { "name": "in_installer_name", "description": "in_installer_description" }, "storedInstallerData": { "endpointLicenseUuid": { "uuid": "in_endpoint_license" }, "agentPeerCertificateUuid": { "uuid": "in_agent_peer_certificate_id" }, "agentPeerCertificatePassword": "", "endpointRepositoryPackage": { "package_app_id": "in_package", "package_description": "in_description", "package_lang": "en_US", "package_name": "in_name", "package_os": "in_os", "package_os_systems": "in_os_systems", "package_version": "in_version" }, "staticGroupUuid": { "uuid": "in_group_id" }, "acceptEula": true, "installerType": 1, "serverHostname": "in_host", "serverPort": "in_port" } } } my question is did i miss a parameter? or if not how to assign the certificate via serverAPI? Link to comment Share on other sites More sharing options...
kornwaretm 0 Posted November 30, 2017 Author Share Posted November 30, 2017 (edited) ow my post above is stupid. certificate only matters when the installer creation request is being made. after created it matters not. Edited November 30, 2017 by kornwaretm Link to comment Share on other sites More sharing options...
Recommended Posts