The Product Code is changed automatically by Advanced Installer only if you increase the version of the package. However, you can manually change it by editing the AIP with a text editor:
- close Advanced Installer
- find the .AIP file of your project
- open it in a text editor
- find the ProductCode property
- replace the existing GUID with a custom one
- save and close the .AIP file
Please note that Windows Installer doesn't support installing multiple instances of the same package on the same machine. Therefore, I'm not sure if what you need can be done.
Yes, I,ve note this. But if you could change the product code, windows installer make a fresh install without repairing options.
Advanced installer dont have a property with the product code and cant change it dinamically, only change the versión force to create a new product code.
During installation, is posible generate or change the product code to force windows installer to install a fresh copy of solution?
After the package is built, the only way of changing the Product Code is by editing the MSI (for example with Orca). Therefore, I'm not sure if it can be changed dynamically. Also, There is a property called ProductCode, but it cannot be changed dynamically.
By "doesn't support" I meant that it cannot be done. The only solution would be to create different packages manually.
Sorry, I,ve found a "productCode" property in advanced installer. Can I change it in a custom action during installation, and windows installer will support this workaround?
Thanks
FOLLOW US
Get the latest news in Application Packaging