Accessing MSI properties from the Installer class in System.Configuration.Install

Hi

I wrote a custom installer class by subclassing the Installer class in the System.Configuration.Install namespace but I have been unable to access the MSI properties such TARGETDIR. Is this possible If so, how

Thanks


Answer this question

Accessing MSI properties from the Installer class in System.Configuration.Install

  • AamirButt

    yes it is, i think the reason is that unlike other custom properties where you just put CUSTOMPROPERTY you can access it, if your using the special property TARGETDIR, you must enclosed it with these brackets [] and double quotation marks, like /statePropert="[TARGETDIR]\subfolders"

    hth...


  • SujitKhasnis

    Installer Class can only be called in the custom actions within the whole installation state, so I think the only way is to call an external application at the custom action that edits MSI. Provided that the called application will run on a seperate process so it will be independent from the Installer.

  • Rich Visotcky

    Is there a way to Set MSI properties from within an Installer Class
  • Accessing MSI properties from the Installer class in System.Configuration.Install