Hello Piotr,
We have analysed your sample project. Thank you for your email.
Your current project configuration will trigger the following behaviour:
The lib folder is the only one placed in APPDIR, which in "Mixed 32/64-bit matching the platform" Package type case will always be resolved to "C:\Program Files\[Manufacturer]\[ProductName]" regardless the OS Type as it is shown in "Install Parameters" page, in Application Folder".
Please note that APPDIR is the only location in the "Files and Folders" page that could be changed by the user at install time, the rest of them being resolved in relation with the system's environment variables.
"Program Files" and "Program Files 64" entries from "Files and Folders" page are resolved at install time to the enviroment variables %ProgramFiles(x86)% and %ProgramFiles% respectively. So if the user decides to install the application on drive D, and the Windows Volume is "c:\" only the APPDIR will be on that drive.
If you need to let the user choose the install location of the wrapper, you have to add it to APPDIR as well. But, in this case, The 32 bit wrapper will also be installed in "c:\Program Files", as APPDIR in mixed package type is always resolved to this value.
To overcome this, you could place the 32 bits files in both "Application Folder" and "Program files" in your "Files and Folders" page. In this way you will have duplicate components. You could condition these components in the following way:
-set the condition
Code: Select all
APPDIR <> "C:\Program Files\Your Company\Your Application"
for components from "Application Folder"
-set condition
Code: Select all
APPDIR = "C:\Program Files\Your Company\Your Application":
for components from "ProgramFiles"
Note: You cand easily go to the corresponding component of a file from "Files and Folders" by pressing F8 shortcut key.
If you configure the project in this way you will achieve the following behaviour:
-If the user doesn't modify APPDIR, the 32 bit files will be installed in "C:\Program Files (86)" and the rest of the files in "C:\Program Files"
-If the user selects for example d:\ as the install location, all the files(including 32 bit ones) will be installed in this location (APPDIR)
Best regards,
Sorin