Getting Install Root Path For Web Installer
Posted on 2005-03-18
In my installer I tweak the web.config file settings based on values input in one of the installer dialogs.
Right now I assume "C:/Inetpub/wwwroot/" + virtualDirectoryName + "/web.config" where virtualDirectoryName is the passed value of "TARGETVDIR" in a custom action, but I'm hoping to find a more robust methodology (that will account for virtual directories somewhere other than Inetpub/wwwroot).
I tried looking at "TARGETDIR" but it ended up being the System32 folder or something (not what I wanted). Is there a way to get at the install root?