Inconsistently skipping dialogs with CheckFreeTCPPort - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MABLINK
Posts: 4
Joined: Wed Nov 18, 2009 8:56 am

Inconsistently skipping dialogs with CheckFreeTCPPort

I’m working with Advanced Installer 7.7 Build 28804.

The puzzle I’m having is that the dialog sequence is randomly skipping all the way to the Progress Dialog and hangs. The only option is to cancel the install and try again.

The interesting thing is that it sometimes there is no problem and the installation runs smoothly as expected with no other changes on the machine!

I was starting to think it was a timing issue because I was getting in the habit of clicking “Next” fairly quickly through the screens I was familiar with, but unfortunately waiting 10-20 seconds on each screen still produces inconsistent behavior of skipping all the way to the Progress Dialog and hanging.

It seems that if I make it to the Folder Dialog I am guaranteed to make it to the Finish successfully.

Now the project does include a “CheckFreeTCPPort” that has a DoAction event calling the Custom Action CheckFreeTCPPort function in the aicustact.dll and that is before the Folder Dialog, but again it does work fine occasionally. However if I remove the CheckFreeTCPPort from the install, I cannot get it to fail.

I’m testing on an XPMode Virtual PC, but I do not expect that to be the cause.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Inconsistently skipping dialogs with CheckFreeTCPPort

Hello,

Perhaps you forgot to add the CheckFreeTCPPort dialog.
For using the CheckFreeTCPPort action please consult our guide on the subject.
Let me know if the issue still occurs after following the guide.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MABLINK
Posts: 4
Joined: Wed Nov 18, 2009 8:56 am

Re: Inconsistently skipping dialogs with CheckFreeTCPPort

I had used the guide to build my solution. The only difference is that I do not allow the user to enter the port because it is fixed for my install. During the Begin phase of the InstallExecuteSequence I used a PropertySource Custom Action to set the AI_BIND_TCP_PORT property.

Should I be setting the property at a different phase of the install?

What was confusing me is the inconsistent behavior.

Thanks,

Mark
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Inconsistently skipping dialogs with CheckFreeTCPPort

Hi Mark,

The CheckFreeTCPPort is a UI Custom Action. This means the AI_BIND_TCP_PORT property must be set using a SetProperty published event placed before the CheckFreeTCPPort is executed. Otherwise, placing it under InstallExecuteSequence means it will execute too late (after CheckFreeTCPPort was already run).

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”