cancel
Showing results for
Show  only  | Search instead for
Did you mean:
Pilgrim

## INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

Our setup program lets users specify the folder to install the program. If they choose C:\program files on a 64-bit system, our INSTALLDIR value is set to that. However, the files get installed in the C:\Program Files (x86) folder. We need the INSTALLDIR variable (or some other variable) to reflect the actual folder name where the file is installed since we need to update registries, shortcuts, etc. to reflect this.

How do we get the actual folder name when InstallShielld makes that change behind the scenes? Thanks.
Labels (1)

Tags (3)
21 Replies
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

All x32 programs go into c:\program files (x86).

Don't think you want to mix x32 in the x64 directory.
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

I agree. But in this case, I'm not specifying the folder name. The user is, and they've specified the wrong folder. InstallShield installs it in the proper folder (x86) which is great, but it doesn't update the INSTALLDIR value which is what the user specified. I need to know what folder the files are being installed in this situation. Is this kept in another variable? Any suggestions?

TurboFisch wrote:
All x32 programs go into c:\program files (x86).

Don't think you want to mix x32 in the x64 directory.
Flexera beginner

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

Files which are copied by 32-Bit setup go always into c:\program files (x86)

It is so.
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

Thank you for your response. I agree and understand the X86 folder. I don't have a problem with it being automatically installed in a different folder from what the user selects.

My question is: How do I get the folder name of where it's actually installed? The name differs in different languages and the INSTALLDIR variable doesn't not contain the correct value.

Roman1 wrote:
Files which are copied by 32-Bit setup go always into c:\program files (x86)

It is so.
Frequent contributor

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

What project type is it Installscript, Basic MSI or InstallScript MSI ?
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

Installscript

MarkusLatz wrote:
What project type is it Installscript, Basic MSI or InstallScript MSI ?
Frequent contributor

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

Try to take a look at the user's guide and search for Disable(WOW64FSREDIRECTION). May be this solves your problem.
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

No, I don't want to disable it. I want the program to go to the right place. And it can be installed anywhere. We let the user choose. However, when they choose C:\Program Files, which is what INSTALLDIR is set to, InstallShield puts it in the x86 folder but doesn't update the INSTALLDIR value. I just need to know where it's actually installed.

MarkusLatz wrote:
Try to take a look at the user's guide and search for Disable(WOW64FSREDIRECTION). May be this solves your problem.
Pilgrim

## Re: INSTALLDIR is not C:\Program Files (x86) if user Select C:\Program Files for 32-bit

That's actually not true. That's only in English. There are equivalent names in other languages of Windows. What I need is the actual folder name where the files are installed. Any chance of getting that no matter what folder the user selects?

Roman1 wrote:
Files which are copied by 32-Bit setup go always into c:\program files (x86)

It is so.