jtroyan
Posts: 20
Joined: Mon Oct 19, 2009 9:41 pm

IIS IP setting

I am fast approaching my trial expiration, and wonder about another item I came across this afternoon. In the documentation about IIS, there is a quote under the IP address section:

"These fields are of Formatted Type and can be edited using Smart Edit Control by inserting Windows Installer property references, which will be resolved at install time."

Does this apply to the IP address, Host Header and Port? If so, how would you use [] in the IP section? Would this be something I would pass in via a Custom UI?

Also, is there an update coming that will allow for the error policy on prompt (or just in general) to allow changes to happen to app pools, or IIS web settings... For example I have 20+ app pools running under different user contexts... At the first of the year, we change the passwords of these service accounts, then want to run the package on my 10+ servers to update the passwords. It seems as though now, if I run a package with a test app pool, and error policy is set to prompt, even if the app pool info is different between package and machine, package still sees it as the same, so I can only skip or abort.

Thanks,

james
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS IP setting

Hi,
Does this apply to the IP address, Host Header and Port?
Yes, this applies for these fields too.
If so, how would you use [] in the IP section? Would this be something I would pass in via a Custom UI?
No, this doesn't requires any custom actions. All you have to do is to activate the IP adress field and create you project
normally. The value entered into the IP field doesn't matter yet.

After you have modified you project as desired save the .aip file. Now open it with w text editor (Notepad++ for example) and edit the following line:

Code: Select all

<ROW WebSiteId="1" WebApplication="APPDIR" Root="APPDIR" Condition="1" ServerBindings="255.255.255.255:8080:ExampleName" AccessFlags="49769" AccessPerm="513" DocumentList="index.html, index.htm, default.htm"/>
The part that interest you is this:

Code: Select all

ServerBindings="255.255.255.255:8080:ExampleName"
Instead of the IP adress I entered simply enter the name of the property like this:

Code: Select all

ServerBindings="[MY_PROP]:8080:ExampleName"
This can be done for all the tree components from the ServerBindings group. Please be careful not to remove the separator ':'.
Also, is there an update coming that will allow for the error policy on prompt (or just in general) to allow changes to happen to app pools, or IIS web settings...
This error prompt does not appears because the existent application pool is first uninstalled and then the new one is installed. This way the installation
cannot prompt the user because the previous passwords (settings) do not exist anymore.

If this is not what you asked please give us more details.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtroyan
Posts: 20
Joined: Mon Oct 19, 2009 9:41 pm

Re: IIS IP setting

Bogdan wrote:
After you have modified you project as desired save the .aip file. Now open it with w text editor (Notepad++ for example) and edit the following line:

Code: Select all

<ROW WebSiteId="1" WebApplication="APPDIR" Root="APPDIR" Condition="1" ServerBindings="255.255.255.255:8080:ExampleName" AccessFlags="49769" AccessPerm="513" DocumentList="index.html, index.htm, default.htm"/>
The part that interest you is this:

Code: Select all

ServerBindings="255.255.255.255:8080:ExampleName"
Instead of the IP adress I entered simply enter the name of the property like this:

Code: Select all

ServerBindings="[MY_PROP]:8080:ExampleName"
This can be done for all the tree components from the ServerBindings group. Please be careful not to remove the separator ':'.
I have done this, however, when I reopen the project and try to go to the IIS section the application bombs out. Should that happen? Example from my .aip project below:

Code: Select all

<ROW WebSiteId="2" WebApplication="SubmitServiceDescriptor" Root="SubmitServiceDescriptorWCF_DIR" Condition="1" ServerBindings="[WS_IP]:8080:" AccessFlags="49769" AccessPerm="513" DocumentList="default.svc" AppPool="6" AspNetVers="2.0.50727"/>
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS IP setting

Hi,

This shouldn't happen. Can you please make a "diff" between the two files(before and after modifying it manually) to see if you accidentally modified anything else?

If the problem persists please send us the .aip files to support at advancedinstaller dot com so we can investigate them.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtroyan
Posts: 20
Joined: Mon Oct 19, 2009 9:41 pm

Re: IIS IP setting

Bogdan -

Is it possible that the reason it is failing is the file contains [MY_PROP] (or the actual value [WS_IP] rather than [|MY_PROP]? Is the pipe character needed? Anyhow, files mailed.

James

Return to “Common Problems”