Update installed MST with new property for repair
I have an MSI that was customized with MST and installed to users. Now I need to update a property value (eg. License server name) in a new MST and then update that for all the users who currently have it installed. This application is a couple GB so don't really want to perform an uninstall then install the new version. The previous MST had a few CA's and other stuff I don't want anymore too. I was hoping I could update the cached MST then kick off a repair?
What's the best practice for storing license server names in packages? Previous places I did it via changing the DNS aliases but here not possible.
Answers (1)
You can store the licenseserver name in a public property.
As for modifying the cached MSI, you could use a script to look for the entry in HKCR\Installer\Products for your product, then read out the cached MSI path from the LastUsedSource and PackageName values, and finally modify this MSI using WiRunSQL.vbs (part of the SDK)