# The role of the ProductGuid with AutoCAD OEM Installer Wizard

**URL:** <https://forum.techsoft3d.com/t/the-role-of-the-productguid-with-autocad-oem-installer-wizard/824>\
**Category:** AutoCAD OEM\
**Created:** [June 16, 2022, 7:44am UTC](https://forum.techsoft3d.com/t/the-role-of-the-productguid-with-autocad-oem-installer-wizard/824 "2022-06-16T07:44:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/jm1/32/317_2.png) [@jm1](https://forum.techsoft3d.com/u/jm1)\
**Post date:** [June 16, 2022, 7:44am UTC](https://forum.techsoft3d.com/t/the-role-of-the-productguid-with-autocad-oem-installer-wizard/824/1 "2022-06-16T07:44:14Z")

</div>

I have been building and deploying AutoCAD OEM based applications since 2015. Early on, I  
discovered an important rule for the deployment: **Each OEM installer build done with the OEM**  
**Installer Wizard should have a unique ProductGuid**. The ProductGuid is an identifier that is  
used by the installer mechanism to identify the distinct version of the application.

Usually, the OEM Install wizard creates the unique ProductId for you, **BUT** only under special circumstances:

- You use the user interface of the OEM Installer Wizard to enter the installer data manually and to build the installer, without using a saved installer xml file from a previous build.
- You use a previously saved installer xml file where the `<ProductGuid>` node has been removed.

As soon as there is a `<ProductGuid>` node in a saved installer xml file, the OEM Wizard will **NOT** create a new and unique ProductGuid. Instead, it will use the ProductGuid provided in the installer xml file.

Therefore, when using an existing installer xml file, you have to either

- remove the `<ProductGuid>` node  
or
- change the ProductGuid in the `<ProductGuid>` node

Let’s say you are building and deploying your AutoCAD OEM application called xTest to your  
customers. A couple of month later, you need to build and deploy the application again to fix  
some software bug that has come up. You build the updated application and create the installer  
using the AutoCAD OEM Installer Wizard with the previous saved installer xml file.

When using the same ProductGuid as the first initial build, the updated OEM product will not  
be installed properly on the user client machine. While you used the same ProductGuid like the  
first installer build, the product thinks it is already installed on the machine, the installation  
process of the updated application (with the same ProductGuid) will fail.

When using a new and unique ProductGuid for the updated application, the new installer will  
be able to overwrite the already installed older version of the application on the user client  
machine.

Before building the OEM installer with the OEM Installer Wizard, open the installer xml file  
and change the ProductGuid to a new value:

 ![20220616-001](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/d533b825987c3804c79b629a929660308ab284c7.png)

or just delete the `<ProductGuid>` node:

 ![deleted-product-guid](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/605e284cf422792173c57853f7115bad3fad3552.png)

  
In Visual Studio, there is a handy tool to create a new Guid: 

> **[Create GUID Tool in Visual Studio - TechNet Articles - United States (English)...](https://social.technet.microsoft.com/wiki/contents/articles/33047.create-guid-tool-in-visual-studio.aspx)**
>
> Technical articles, content and resources for IT Professionals working in Microsoft technologies

You can do this from C# code with `Guid.NewGuid().ToString()`

Starting with AutoCAD OEM 2023, this needs to be `Guid.NewGuid().ToString().toUpper()`  
(see [here](https://forum.techsoft3d.com/t/installer-error-with-autocad-oem-2023-installer/825))

---

<div class="post-metadata">

**Author:** ![anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anthony](https://forum.techsoft3d.com/u/anthony)\
**Post date:** [May 15, 2023, 4:21pm UTC](https://forum.techsoft3d.com/t/the-role-of-the-productguid-with-autocad-oem-installer-wizard/824/2 "2023-05-15T16:21:54Z")

</div>

I tried this with AutoCAD OEM 2024 and the new installation leaves the previous program entry, it does not see the install as an upgrade. Is there a way to specify a fixed upgrade code?

---

<div class="post-metadata">

**Author:** ![jm1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/jm1/32/317_2.png) [@jm1](https://forum.techsoft3d.com/u/jm1)\
**Post date:** [May 16, 2023, 6:51am UTC](https://forum.techsoft3d.com/t/the-role-of-the-productguid-with-autocad-oem-installer-wizard/824/3 "2023-05-16T06:51:56Z")

</div>

Hello Anthony,

welcome to the forum!

I have not tried it yet with AutoCAD OEM 2024 , so I can’t comment on this right now. I will come back to this when I had the opportunity to try it myself.

But having a fixed upgrade guid would not solve the problem, because the installer needs some way to distinguish the installer versions. The “new” installer needs to know that it is another (newer) version than the already existing installed version of the application. The AutoCAD OEM Installer has been doing this in the past with the ProductGuid, which is (or should be) unique for each installer version to make the distinction.
