janderssen
Posts: 18
Joined: Tue Nov 20, 2007 7:19 am

supported os checks

Hi,

I have found how you can specify a minium os version, and the message in this case is generally very basic error reported to the user.

What I would like to acheive is if the os is of version a,b,c these are supported. If the version id defg, we would like to pop up a message stating the product is not tested on these versions, but you can install at your own descretion, else the os is not supported and aborts the installation.

What would be the recommended way to acheive this flexability.

I have so far written a custom action to work out the os, and version, but trying to work out how to get AI to pop up a message box (that will also be in the translations list for multi-language support)

Cheers
Jason
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done from inside your custom action. After you get the OS information you can show the message you want to the user. Also, you can terminate the installation by returning a custom value:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Note that the multi-language support should also be done from inside the custom action (get the language of the OS and show the appropriate message).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janderssen
Posts: 18
Joined: Tue Nov 20, 2007 7:19 am

Hi cosmin,

[quote="cosmin"]
Note that the multi-language support should also be done from inside the custom action (get the language of the OS and show the appropriate message).
[/quote]

What if the installer is running in a different language, I would need to retreive the languge the user chose when they selected the language to install, if using a multi-language installation.

What is the best way to get this information.

Cheers
Jason
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This information is stored in the ProductLanguage property. The possible values of this property are listed here:
http://msdn2.microsoft.com/en-us/library/ms912047.aspx
http://msdn2.microsoft.com/en-us/library/0h88fahh.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”