I have an installer class which I use to do some processing on the application after it is initially installed.
In the installer I have a custom dialog which requests a username and password. This is accessed in my installer class with
Me.Context.Parameters("username")
After setting it as CustomActionData /username="[TXTUSERNAME]"
This is all fine. The first dialog of a Web Setup Project gets the user to select an IIS website from a dropdownlist and set a VirtualDirectory if required. I need to get the seleted Hostname but so far I have failed to find a reference to it in any documentation.
I have tried things like:
Me.Context.Parameters("targetURL")
Me.Context.Parameters("TARGETSITE")
but none of them output anything..
Any ideas?
So is it some proessing after installation or not? You said that it was in your the question (first line) so we assume that there is something runnable on disk 🙂
For example, if you are deriving from System.Configuration.Install.Installer you can invoke it post install via installutil and pass any kind of args you want – meaning you are free from MSI at that point.
Also check out this http://www.codeproject.com/KB/install/command_lines_setups.aspx There’s source code etc. showing how to pass completely arbitrary command line args to MSI. It also lists tons of properties that are available – got to like at least one of them 🙂