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!

kilhan
Posts: 6
Joined: Wed May 30, 2007 4:21 pm
Location: POLAND
Contact: Website

System condition based on file existance

Hi,
Please help formulate the condition for the prerequisite program.

Our program is the app for Vista Media Center. So its minimal requirement is Vista Home Premium or Ultimate. There is no way to distinguish them, as even the compilation is the same.

But I can do it checking the existence of the file <windir>/ehome/ehshell.exe.

If the file does not exist the setup should refuse installation like it does with insufficient Windows version.

BTW, it would be great to add to Help some typical and more sophisticated examples of expressions used in conditions and custom actions.

Cheers

Chris
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This can be done by creating a file search in the "Search" page and use the search property as a launch condition ("Prerequisites->Launch Condition" page).

Both can be done easily by using the "Launch Condition" wizard (see "Wizards" main menu).

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
campster
Posts: 15
Joined: Thu Jun 14, 2007 7:54 pm

I'm REALLY new to your product so this post may be in the wrong thread.

I want to be able to have one msi that can conditionally install different files. This can be determined either by recognition of the version of Microsoft Visual Studio or by user selection (I'll be happy if I can get either to work)

I am using AI version 4.2 Professional and do not see a Launch Condition page. Am I missing something or was this feature released after 4.2?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Create a file search for Visual Studio and use the search property as condition for a component.

Similar to this:
http://www.advancedinstaller.com/forums ... php?t=2584

Let me know if you encounter any problem.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
campster
Posts: 15
Joined: Thu Jun 14, 2007 7:54 pm

Thanks for the info. I've posted this question in new thread to avoid confusion.

Return to “Common Problems”