IProductCode

This interface is meant to edit the “Product Code” for specific languages present in the project.

Declaration

IProductCode: IDispatch

Methods

GetProductCode(IFolder target, String source)returns IFile
Adds a new file in the project and returns the file as an object. IFolder target is the directory where the new file will be added. The source as string is the disk location from where the file will be added.

UpdateProductCode(String target, String source) returns IFile
Adds a new file in the project and returns the file as object. Target as string will be the folder in Advanced Installer where the file will be added. The source as string is the disk location from where the file will be added.

GetProductCode(Int LangId) returns ProductCode
Returns product code (ex: {6B6C73EB-EC6B-4CA1-872C-2075A622E0EF}) for a specified language id as detailed in the Microsoft documentation.

UpdateProductCode(Int LangId, String ProductCode)
Updates the product code for the specified language id with the value provided by the second parameter.

GenerateProductCode(Int LangId) returns ProductCode
Updates the product code for the specified language id with a generated value for product code and returns the new value.

SetDifferentValues()
Sets different values for product codes if there are multiple languages in the project.

SetSameValue()
If there are multiple languages in the project, they will share the same value as product code.

GenerateAll()
Generates a new product code for all languages in the project.

PrintProductCodes() returns ProductCodes
Returns a string with all the product codes and the corresponding languages.

See also

IAdvinstProject

Product Details Tab

IUpgradeCode