When creating an application with the Click To Run, it might happen that you receive the following error ‘C2R Client returned failing error code 17002’.

There are 2 reasons for this error message

  • Make sure that the computer account has write permissions on the share. Otherwise, make sure that the computer account is member of the domain.
  • Avoid the following installation line:
    "%~dp0setup.exe" /packager "%~dp0packager_project.xml" "%~dp0AppV50Packages - Modified"​

    Use instead
    "%~dp0setup.exe" /packager "%~dp0packager_project.xml" "%~dp0AppV50Packages-Modified"​

    I have no idea why this goes wrong.