D4z
Posts: 4
Joined: Tue May 04, 2010 4:18 pm

Choosing install language depeding on OS .... and more.

Hi,
I'm currently trying out Advanced Install 7.6.1, and I have to admit I am totally new to the world of Installer packages.
I've managed to create a basic install package quit easily, with prerequisites, which are all working (nearly), and different languages used during installation.
My first problem is linked to one of the prerequisites, specifically Acrobat Reader. I have 2 versions of the installer, one French and the other English, and I'm trying to get the installer to launch the proper version depending on the OS language.
The second problem i'm having is with the installation of a specific file, linked to each user. I'm trying to copy a file further down the user's "Documents and Settings" folder, with an alternative path if the OS is Vista or 7. I looked into the "Install a user specific file" in the Help's HowTo's, but I'm not getting it. I can't seem to specifiy a path to where to install it.

Many thanks for your help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Choosing install language depeding on OS .... and more.

Hello,

Use a registry search for HKCU\Control Panel\International in the prerequisite search. Look for the "Locale" registry value, it contains the language code in hexadecimal for the user's language setting.

Regarding your second issue, you might want to look on this page:
http://www.advancedinstaller.com/user-g ... paths.html

You can use a property based folder. Our guide on installing files in a custom folder describes an example of how to use this feature.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
D4z
Posts: 4
Joined: Tue May 04, 2010 4:18 pm

Re: Choosing install language depeding on OS .... and more.

Gabriel,many thanks for your help, which has helped me fix the various issues.

I have another question however. How do I create a prerequisite for checking the Adobe Flash Player Version and make it forward compatible ? Here's what I mean. I've created a search which checks the Flash10e.ocx file in System32\Macromed\Flash. The thing is, with every new FlashPlayer version, the .ocx file is renamed (eg: Flash10.ocx; Flash10a.ocx, Flash10e.ocx, ...). So, for exemple, if my search is looking for Flash10e.ocx (which is the latest version installed) and I update in the future to a new version (eg Flash11.ocx), my installer won't recognise Flash11.ocx and will try to re-install flash player 10.
I've also tried using wildcards (eg Flash*) which returns a successful search, but the file's version isn't detected (it just states "Version found: 0.0.0.0")
What I'm really trying to acomplish is check for a minimum Flash Player version.
Am I making sense ? My apologies if this seems like a basic question.

Many thanks.
D4z
Posts: 4
Joined: Tue May 04, 2010 4:18 pm

Re: Choosing install language depeding on OS .... and more.

I've just looked into using Reg Keys. Can someone confirm that what I'm thinking of doing would work ?
I was thinking of adding 3 searches:
- Reg key : ShockwaveFlash.ShockwaveFlash.8
- Reg key : ShockwaveFlash.ShockwaveFlash.9
- Reg key : ShockwaveFlash.ShockwaveFlash.10

If all fail, then install Flash Player.

Does that sound like it would work ? I'm guessing if a futur user buys a Pc with Flash 11 only, then those Reg Keys wouldn't exist and so the install would try to install the Player version packaged ! :cry:
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Choosing install language depeding on OS .... and more.

Hello,

I was about to suggest the reg key version too. However, don't look for specific versions. Your package won't detect flash 11 if installed and will try to install it again. Same goes for future versions.
I suggest you look for a registry key which is available when any version of flash is installed.

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

Return to “Common Problems”