No announcement yet.

Unattended build not building.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Unattended build not building.

    Hey, I'm looking to set up some unattended TrueUpdate builds I've ead the documentation and it seems relatively straight forward but nothing seems to be happening.

    The command I'm using is: TrueUpdate.exe /BUILD "C:\agent\_work\1\s\Setup\WebUpdates\Update.tu 2" /LOG "C:\agent\_work\1\s\Setup\WebUpdates\UpdateBuildLo g.txt"

    I see a TrueUpdate icon appear in the task bar for a short time before it disappears. No logs are being generated and the .tu2 is not being built.

  • #2
    Check the build error code, it will tell you what is wrong...



    • #3
      Same thing happens to me the TrueUpdate icon appears and disappears for a couple of seconds and no build error code was returned


      • #4
        I do not believe that you are checking for the build error code properly.

        Please follow these steps, exactly as written.

        1 - Create a new project, and keep clicking Next until the wizard finished, keeping all settings as default.

        2 - Save the project on your hard drive, as "Untitled.tu2".

        3 - Close TrueUpdate.

        4 - To keep things simple, in the same folder where you saved the project file, create a batch file named unattended-build.bat, with the content as shown below. The forum does not allow the posting of the actual batch file as text for security reasons, so it has to be an image.

        Click image for larger version

Name:	SCRN-2020-01-04-03.png
Views:	339
Size:	6.1 KB
ID:	304341

        You need to enter the correct paths to the TrueUpdate executable and the project file, matching your environment, as well as the desired path for the log file, of course. Everything else should stay exactly as shown.

        5 - After you made the required changes to the sample batch file above, save it, and open a command prompt in the folder where the batch file was saved. Run the batch file from the command line, and you should get this:

        Click image for larger version

Name:	SCRN-2020-01-04-01.png
Views:	58
Size:	4.8 KB
ID:	304342

        Zero means that there was no error.

        6 - Now open the project in TrueUpdate, go to the Project Settings, and enable code signing without actually providing a path to the code signing tool or certificate. Save the modified project, and close TrueUpdate again.

        7 - Run the batch file again, and now it should return the error code for the missing code signing tool. (All error codes are listed in the product documentation.)

        Click image for larger version

Name:	SCRN-2020-01-04-02.png
Views:	65
Size:	6.4 KB
ID:	304343

        4300 means "Code sign tool executable does not exist"

        8 - Now edit the batch file once more, and point it to the full path of the project file you were attempting to build previously. Execute the batch file again and check the error code.