# Possible to detect if an installation is a preview build?

**URL:** <https://forums.unrealengine.com/t/possible-to-detect-if-an-installation-is-a-preview-build/101524>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub\
**Created:** [October 20, 2017, 7:18am UTC](https://forums.unrealengine.com/t/possible-to-detect-if-an-installation-is-a-preview-build/101524 "2017-10-20T07:18:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [October 20, 2017, 7:18am UTC](https://forums.unrealengine.com/t/possible-to-detect-if-an-installation-is-a-preview-build/101524/1 "2017-10-20T07:18:08Z")

</div>

I want to detect programmatically, from my build scripts, if a particular engine installation (Launcher as well as Github) is a preview release. The Build.version file would seem to be the place, but from looking at it I can’t see a clear way of differentiating a preview release from the first proper version (both will have patch number of 0). Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [October 20, 2017, 9:35am UTC](https://forums.unrealengine.com/t/possible-to-detect-if-an-installation-is-a-preview-build/101524/2 "2017-10-20T09:35:16Z")

</div>

Maybe _BRANCH\_NAME_ macro helps with what you need; check it out in _Engine\Source\Runtime\Launch\Resources\Version.h_

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [October 24, 2017, 3:46pm UTC](https://forums.unrealengine.com/t/possible-to-detect-if-an-installation-is-a-preview-build/101524/4 "2017-10-24T15:46:56Z")

</div>

Thanks for the feedback guys. Unfortunately, as far as I can tell at least, none of the information in either case differentiates specifically between Preview and Release. It seems the only change in information from Preview to Release is just increased build/changelist numbers, just as when changing from one preview to the next. So there seems to be no way to detect the transition from final preview to initial release.
