You write a custom action that checks for OLD-GUID . When you change the Product Code, your script breaks. Fix: Use property references (e.g., [ProductCode] ) in InstallScript or use the MSI API to retrieve the current product code dynamically.
You fixed a typo in a text file. You rebuild the MSI. Do not change the Product Code. You can just overwrite the old file. installshield product code
Remains constant. It identifies a family of products. For example, all versions of "MyApp" (v1.0, v2.0, v3.0) will share the same Upgrade Code but will each have a unique Product Code. When Should You Change the Product Code? You write a custom action that checks for OLD-GUID
| Scenario | Product Version | Product Code | Result | | :--- | :--- | :--- | :--- | | | Increment (e.g., 1.0.0 to 1.0.1) | Keep Same | Files are updated in place. | | Major Upgrade | Increment (e.g., 1.0 to 2.0) | Change (New GUID) | Old version removed, new version installed. | | Side-by-Side Install | Any | Change (New GUID) | Both versions appear in Add/Remove Programs. | You fixed a typo in a text file