Hello,
I've tested your scenario and it worked as expected. The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.
By the way, it is highly expected that the 80 port be used. If you need a free port, then you can use the predefined
Get a free TCP port to get a free TCP port. Also, the installer stops to late. Since you are checking if the related port is free during the wizard dialogs, you should also give the related error then.
For example, you can ask the user if he agree to assign a different port if the port you are checking is used. Depending the user's answer, you can quite the installation or continue further.
Please give us more details about your installation scenario so I can guide you better and precisely.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging