User input is resolved as Property - Advanced Installer Community
Carlo2007
Posts: 8
Joined: Fri May 13, 2016 10:45 am

User input is resolved as Property

Hi,

I need to install some files in another application folder. The user should select the folder and then Advanced Installer should put the files in the user input.
The issue that I have is as followed:

1. User selects: C:\Program Files\Microsoft Office 15\root\office15\STARTUP (on a 64 bit machine)
2. Advanced Installer will put the files not in C:\Program Files\ but in C:\Program Files (x86)\

I think it has something to do with the resolvement. I'm working on version 12.6.1.

Could you help me out?

Kind regards,

Carlo
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: User input is resolved as Property

Hi Carlo and welcome to Advanced Installer forums,

When a 32-bit application writes or reads a value under the C:\Windows\System32 directory , the application reads from the C:\Windows\SysWOW64 directory on a 64-bit OS.
Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
This is the default behavior for Windows Installer. A 32-bit installation package, on 64-bit machines, cannot install resources into 64-bit locations (i.e. "Program Files" folder).

In order to implement your scenario, you can select the Mixed 32/64-bit matching the platform option for the package type.
This package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems. It allows you to have a single installation package that will install on both platform types (32-bit and 64-bit platforms) and can install files or registry in the real system paths regardless of the platform.

When the "Mixed 32/64-bit matching the platform" package type is selected in the Install Parameters page, then the wizard will launch and will guide you step by step through every stage required to organize your “Mixed 32/64-bit matching the platform” package, as it can be seen in the below image:

Here is an article which may be useful to you: How do I create a package that will be installed like a 64-bit package on 64-bit platforms and as 32-bit package on 32-bit platforms ?.
This easy approach is to use the Mixed 32/64-bit matching the platform wizard.

If you have other questions, please let us know.

Kind regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Carlo2007
Posts: 8
Joined: Fri May 13, 2016 10:45 am

Re: User input is resolved as Property

Hi Dan,

Thank you for your answer. I can't select the folder that could go into a x64 path.
The setup can't know if the property is x64 or x32 before the build is made. I know my main application is made for x32 at all times but the folder that the user should select can be x32 or x64, this choice is made at runtime.
They should select Office and Office can be anywhere both on x64 and x32 paths.

Kind regards,

Carlo
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: User input is resolved as Property

Hi Carlo,

As I said, when a 32-bit application writes or reads a value under the C:\Windows\System32 directory , the application reads from the C:\Windows\SysWOW64 directory on a 64-bit OS.
Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
    This is the default behavior for Windows Instal
ler. A 32-bit installation package, on 64-bit machines, cannot install resources into 64-bit locations (i.e. "Program Files" folder).

In order to implement your scenario, you can select the Mixed 32/64-bit matching the platform option for the package type.

Have you tried this? Does the behaviour still persists?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Carlo2007
Posts: 8
Joined: Fri May 13, 2016 10:45 am

Re: User input is resolved as Property

Hi Dan,

Thank you for the solution. I've managed to get it working when the project is in mixed mode.

Kind regards,

Carlo
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: User input is resolved as Property

You're welcome Carlo,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”