Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Launch condition failure

Hi I have a problem with launch conditions of the installer. My project requires IIS version of minimum 5.1 and I set it in predefined launch conditions page but when I try to install on a computer without any IIS it doesn't says anything and setup just doesn't run. So is there a way to inform the user for not meeting the conditions with a popup or message box.

Thanks for the help.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition failure

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file with the problem to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Launch condition failure

Thanks for the help but is there any way to inform user that the computer the installer running on does not meet the requirements in case it does not?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition failure

Hi,

This is done by using predefined or custom launch conditions. I'm not sure why the IIS predefined custom launch condition didn't work on your machine, but usually this feature works correctly.

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

Re: Launch condition failure

I am experiencing the same sort of issue, when choosing IIS version 6 or 7, as a minimum version, but the installer is just bypassing that item all together. I am using this on Win2008 x64. I have opened the project file and do see the following in the xml:

<ROW Property="AI_MINIISVERSION" MultiBuildValue="DefaultBuild:6.0" ValueLocId="-"/>

If I choose this, and just add a file to the target system, the install runs, and puts the file on the target, when IIS is not installed.

Thanks,

james

edit: Tried rebuilding the package, still having the same issue.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Launch condition failure

Hi James,

I've tested a package with IIS launch condition on two Win2008 x64 machines and none of them failed the test.
Can you please test the package on a clean machine? If the problem persists please send us the .aip file and a verbose log to support at advancedinstaller dot com
so we ca investigate the problem.

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

Re: Launch condition failure

the machine I am running this basic package on is a vanilla 2k8 server that was just built... I have sent the files you requested. Thanks!
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Launch condition failure

Is there any update on this problem? I am running on Windows Server 2008 (x86) and the installer does not correctly detect that IIS is not installed...it continues normally as if it was installed.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Launch condition failure

Hi,

This problem was caused because the user had been using a modified version of Windows Server (vanilla 2008 server). After searching the web I've got to the conclusion
that this modified version of Windows 2008 Server comes with IIS package installed, even if the IIS is not active.

We are testing if IIS is installed by doing some file specific searches and if the files are found then it means that IIS is installed.
We don't have the facility to test if IIS is active on the machine that runs the installation package. However some investigations have been made and an improvement will be available in the future

Can you please test your package on a clean Windows 2008 Server (nothing modified like vanilla or something else).

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Launch condition failure

I can tell you that this is a Windows Server 2008 machine that had IIS installed, but then removed. Could it be that it left some files behind?

Are you able to tell me which files AI is looking for, by any chance?

Thanks,
John
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition failure

Hi John,

Currently the IIS launch condition uses the "inetinfo.exe" and "w3wp.exe" files from the "system32\inetsrv" folder. If these files exist the condition is met. However, starting with the next Advanced Installer version the launch condition will also determine if IIS is configured as a role. For your project you can try using a custom launch condition instead of the predefined one. For example, you can use two file searches to find the files I mentioned and a registry search to determine if this entry exists:

Code: Select all

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\DisplayName\ 
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Launch condition failure

Thank you. I will give that a shot.

Do you know of any way to detect whether or not the ASP.NET Role Service is enabled/installed?
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Launch condition failure

johngraumann wrote:Thank you. I will give that a shot.

Do you know of any way to detect whether or not the ASP.NET Role Service is enabled/installed?
Never mind, I think I found it. It looks like the HKEY_LOCAL_MACHINE\Software\Microsoft\InetSTP\Components\ registry key will have the ASPNET value set to '1' if the ASP.NET role service is installed. Seems to work like a charm.

Thanks again.

Return to “Common Problems”