Hello,
I have an installer that creates an asp.net application in iis and we are specifying port 8088. The user may change this after install directly in iis. When they update to a new version of our app, it replaces the old files (ok) but changes the port back to 8088 (not ok). Is it possible to query the user for the port they prefer, or not override the port in use prior to the update?
Yes, this is possible. You can use our
"Dialog Editor" feature to create a custom dialog on which the user can input the desired port number (for example on an edit box control associated with
PORT_PROP property). Then, you can simply add a reference to the
PORT_PROP property in the
"Web Site Binding" dialog from
"Web Site Bindings/SSL Settings" tab. Please keep in mind that our "Dialog Editor" feature is available only starting with an "Enterprise" project type.
If you don't have an "Enterprise" license, then you can create your own UI custom action which will get the user PORT info and save it into an installer property (e.g. PORT_PROP). The custom action can be added as a custom action with sequence after "Install Execution Stage -> Searches" actions group.
I forgot to mention - in Professional. I saw GetFreeTCPPort custom action but don't know how to use that in Professional or detect the port already used before updating.
I'm afraid that in order to add the
"Get a free TCP port" predefined custom action you will have to use the "Dialog Editor" feature to add the custom action as a control event on a dialog control. For example you can schedule the
custom action to run on a button push.
If you have any questions/doubts just let us know.
All the best,
Daniel
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging