# What does Exit code 2 means when INSTALLING TestComplete 15.46.9.7

**URL:** <https://community.smartbear.com/t/what-does-exit-code-2-means-when-installing-testcomplete-15-46-9-7/328>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated\
**Created:** [January 4, 2023, 9:39pm UTC](https://community.smartbear.com/t/what-does-exit-code-2-means-when-installing-testcomplete-15-46-9-7/328 "2023-01-04T21:39:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 4, 2023, 9:39pm UTC](https://community.smartbear.com/t/what-does-exit-code-2-means-when-installing-testcomplete-15-46-9-7/328/1 "2023-01-04T21:39:26Z")

</div>

> Originally posted by **RaulValdes** on January 04, 2023

I am creating a installation package to install TestComplete 15.46.9., i am using a powershell script

with the following installation switch

**“xDir\TestComplete\_Tool.exe” -SilentInstall**

nothing else, and it works like a charm in most machines but some of them are returning **2** as an exit code (checked on my logs) and it fails, but it doesn’t say why

I tried searching what that exit code for installation means but had no luck, can someone help on this?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 4, 2023, 11:56pm UTC](https://community.smartbear.com/t/what-does-exit-code-2-means-when-installing-testcomplete-15-46-9-7/328/2 "2023-01-04T23:56:18Z")

</div>

> Originally posted by **Marsha\_R** on January 04, 2023

These may be of some help:

 ![Marsha_R_1-1672876541025.png](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/d55c229e4090b67adc84155888a45db0ae34daa3.png)

[https://support.smartbear.com/testcomplete/docs/general-info/installing/installing-in-silent-mode.html](https://support.smartbear.com/testcomplete/docs/general-info/installing/installing-in-silent-mode.html)

If not, I suggest contacting Support directly. Here’s the link:

[https://support.smartbear.com/testcomplete/message/](https://support.smartbear.com/testcomplete/message/)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [January 5, 2023, 2:34pm UTC](https://community.smartbear.com/t/what-does-exit-code-2-means-when-installing-testcomplete-15-46-9-7/328/3 "2023-01-05T14:34:49Z")

</div>

> Originally posted by **Kitt** on January 05, 2023

This is the SmartBear documentation on exit codes for both [[TestComplete]](https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/exit-codes.html) and [[TestExecute]](https://support.smartbear.com/testexecute/docs/running/automating/command-line/exit-codes.html). Both state exit code 2 is when the _last test results include errors_. Although these are in reference to the running of tests vs the installation process, one could assume the same exit logic is applied. Since you are suppressing the errors using -SilentInstall you never see them what the error actually is.

I would try searching for the “setup” or “testcomplete” log, which should be stored in C:\Users\<youruser\>\AppData\Local\Temp. In the log you might find something similar to below:

```auto
Error message: "Unable to execute "C:\Windows\Installer\{F9706C42-3B24-1500-91B0-B5EA37F86B81}\Setup_SM.exe" -SilentUnInstall -SkipCheckSingleInstance -HideInstallation -SkipFutureVersion -HASP=False -TCService=False -Log="C:\Users\<youruser>\AppData\Local\Temp". Error : 2."

```

This might be an indication that the Installer folder is not be present on that machine. What I’ve done to fix this, is to copy the mentioned folder (C:\Windows\Installer{F9706C42-3B24-1500-91B0-B5EA37F86B81}) from another machine that is working.

I am interested to see if you have a similar error in your logs that point to TELite. I upgraded this morning and hit the “exit code 2” error - fixing the issue with the abovementioned steps. My broader question is why is SmartBear still including TestExecuteLite in the latest versions of TestComplete (see screenshot) - since I though it was deprecated to use TestExecute instead? Would love to see if anyone else with a web license only has had these issues…

 ![Kitt_0-1672928822971.png](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/59a2a0906e1b9909e11f01db65a702b3401b5a52.png)
