
Mastering Inventory Tracking: Understanding Your IProductCode

Mastering Inventory Tracking: Understanding Your IProductCode
Table of Contents
- Introduction
- Registration
- Using Advanced Installer
- GUI
- Working with Projects
- Installer Project
- Patch Project
- Merge Module Project
- Updates Configuration Project
- Windows Store App Project
- Modification Package Project
- Optional Package Project
- Windows Mobile CAB Projects
- Visual Studio Extension Project
- Software Installer Wizards - Advanced Installer
- Visual Studio integration
- Alternative to AdminStudio/Wise
- Replace Wise
- Migrating from Visual Studio Installer
- Keyboard Shortcuts
- Shell Integration
- Command Line
- Advanced Installer PowerShell Automation Interfaces
* IAdvancedInstaller
* IAdvinstProject
* IProductDetails
* IFolder
* ILaunchConditionsComponent
* IFilesComponent
* IIniFilesComponent
* IShortcut
* ITempFile
* IXmlFile
* IDirectoryMember
* IRegistryComponent
* IInstallParameters
* IBuildComponent
* ITextFileUpdatesComponent
* ITextUpdateFile
* ITextUpdateAppendOrCreate
* ITextUpdateReplace
* IFileAssociations
* IDefaultProgramFA
* IExtensionFA
* IProgIdFA
* IVerbFA
* IEnvironment
* IEnvironmentVariable
* IProductCode
* IUpgradeCode
* IMergeModulesComponent
* IMergeModule
* IDigitalSignature
* ICustomActionsComponent
* ITranslationsComponent
* IDriversComponent
* ISearch
* IServices
* IOrganizationComponent
* IComComponent
* IRemoveFilesComponent
* IRemoveFile
* IUpdatesProject
* IUpdaterComponent
* IPatchProject
* IPropertyComponent
* IProperty
* IPathVariable
* IMsixComponent
* IMsixDependencies
* IMsixDriverDependency
* IMsixDriverConstraint
* IMsixExternalDependency
* IMsixPackageDependency
- Features and Functionality
- Tutorials
- Samples
- How-tos
- FAQs
- Windows Installer
- Deployment Technologies
- IT Pro
- MSIX
- Video Tutorials
- Advanced Installer Blog
- Table of Contents
Disclaimer: This post includes affiliate links
If you click on a link and make a purchase, I may receive a commission at no extra cost to you.
IProductCode
This interface is meant to edit the “Product Code” for specific languages present in the project.
Declaration
IProductCode: IDispatch
Methods
GetProductCode(Int LangId) returns ProductCode
Returns product code (ex: {6B6C73EB-EC6B-4CA1-872C-2075A622E0EF}) for a specified language id as detailed in theMicrosoft documentation .
UpdateProductCode(String ProductCode, Int LangId)
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.
Examples
$advinst = new-object -comObject “AdvancedInstaller”
$proj = $advinst.CreateProject($advinst.ProjectTypes.Architect)
generate new product code
$proj.ProductDetails.ProductCode.GenerateAll()
$new_prodCode = $proj.ProductDetails.ProductCode.GetProductCode()
generate upgrade code
$upgradeCode = $proj.ProductDetails.UpgradeCode.UpgradeCode
$new_upgradeCode = $proj.ProductDetails.UpgradeCode.GenerateUpgradeCode()
load a project with multiple languages
$projPath = “C:\Tests\Powershell COM\multi-language.aip”
generate different product codes for each language
$projPath.ProductDetails.ProductCode.SetDifferentValues()
get product code per language package
$pc_en = $projPath.ProductDetails.ProductCode.GetProductCode(1033)
$pc_fr = $projPath.ProductDetails.ProductCode.GetProductCode(1036)
$pc_tr = $projPath.ProductDetails.ProductCode.GetProductCode(1055)
$pc_de = $projPath.ProductDetails.ProductCode.GetProductCode(1031)
Copy
See also
Did you find this page useful?
Please give it a rating:
Thanks!
Report a problem on this page
Information is incorrect or missing
Information is unclear or confusing
Something else
Can you tell us what’s wrong?
Send message
Also read:
- [New] In 2024, Full Screen Pro Tips and Tricks for Editors
- [New] Transforming Your Videography From Monochrome to High-Dynamic Range Masterpieces
- [Updated] Blur the Outside, Sharpen Inside Bokeh Balance Guide
- 「Outlookメールデータを最高度に保護する: 3つの効果的なバックアップ方法とその実行手順」
- 全功能DVD轉換器 Windows 10套件 - 高效率地将DVD文件转换为AVI、MP4和H264格式,适用于Android/iPhone/iPad设备
- DPC Watchdog Issue Resolution on Windows 11 Systems
- Effiziente Migration: Wenn Sie Ihre Windows Server 2012/2008 Sicherungen Schnell Übertragen
- Exploring Computer Components with Tom's Technology Hub
- How to Clonely Duplicate a Micro SD Card at No Cost on Windows PCs (11, 10, 8 & 7): Comprehensive Step-by-Step Manual
- Remove FRP Lock on Vivo Y200
- Resolving Data Transfer Problems: 5 Tips for Your Latest iPhone Model
- Save 24% Today: Transform Your Audio Experience with AirPods Pro 2 - The Latest to Become a Hearing Aid Compatible Device | Tech Insights by ZDNet
- Techniques Pour Importer Des Photos De L'iPhone Vers Un PC Sous Windows : Solutions Résolues
- The Ultimate Guide to Unlocking Your iPhone SE on MetroPCS
- Title: Mastering Inventory Tracking: Understanding Your IProductCode
- Author: Kenneth
- Created at : 2024-11-28 16:46:04
- Updated at : 2024-11-30 21:42:03
- Link: https://fox-sys.techidaily.com/mastering-inventory-tracking-understanding-your-iproductcode/
- License: This work is licensed under CC BY-NC-SA 4.0.