elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

How do I change package code?

Hi

I can not find on internet how I can change package code of some .msi from msi api. I have tool which manually rise version of my .msi so I can test each new build if it can be upgraded on higher version. I have changed everything (version, product code, upgrade table) expect "package code". This value is not stored in database but somewhere else and I don't know hot to read it or change.

Orca can do it. View -> Summary Information -> Package Code so there have to be some solution how to achieve this from MSI API.

thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How do I change package code?

Hello,

Please read the following MSDN documentation:
- setting a summary information property: http://msdn.microsoft.com/en-us/library ... S.85).aspx
- list of summary information properties: http://msdn.microsoft.com/en-us/library ... S.85).aspx
- the property containing the package code: http://msdn.microsoft.com/en-us/library ... S.85).aspx
- to write the change: http://msdn.microsoft.com/en-us/library ... S.85).aspx

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”