> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Track Install or Update

SDK needs support to enable the update by the user application or install the application.
You need to have a logic on the app side to distinguish between app *INSTALL* and *UPDATE*

<CodeGroup>
  ```Kotlin Kotlin theme={"theme":{"light":"github-light","dark":"github-dark"}}
  //For Fresh Install of App
  MoEAnalyticsHelper.setAppStatus(context, AppStatus.INSTALL)

  // For Existing user who has updated the app
  MoEAnalyticsHelper.setAppStatus(context, AppStatus.UPDATE)
  ```

  ```Java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
  //For Fresh Install of App
  MoEAnalyticsHelper.INSTANCE.setAppStatus(context, AppStatus.INSTALL);

  // For Existing user who has updated the app
  MoEAnalyticsHelper.INSTANCE.setAppStatus(context, AppStatus.UPDATE);
  ```
</CodeGroup>

<Info>
  If you uninstall and reinstall your app again, the SDK considers it as a fresh install.
</Info>
