Friday, 15 July 2011

MSI upgrade with Powershell /DSC -



MSI upgrade with Powershell /DSC -

i able uninstall (ensure = "absent") or install product (ensure = "present"). however, if create new version of same product, comes same message - "already installed".

does mean way upgrade uninstall / install?

it sounds msi creating. create sure you're changing product code each version:

what productcode in msi package?

the product code unique guid of identifying application or product release; in other words, different versions , languages of product must have different product codes. http://msdn.microsoft.com/en-us/library/aa370854(vs.85).aspx. also, productcode can used query feature state, , product state. example, installer api "msiqueryfeaturestateex()" , "msiqueryproductstate()", etc.

powershell dsc

No comments:

Post a Comment