AI can't detect dll platform availability - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

AI can't detect dll platform availability

I found that Advanced Installer can't detect a dll architecture automatically. Here's what I mean
  1. Set the Install Parameters->Package Type to "Mixed 32/64 bit matching the platform", next all the way through the wizard without making changes.
  2. Put a .Net dll into the AppFolder directory.
  3. Go to Project Definition->Organization, the .Net dll is not necessarily being put under MainFeature, instead it may end up in 32-bit folder. By right Advanced Installer should be able to detect that the.Net is cross-platform.
Do consider enhance this, or else we have to manually set which platform a dll belongs to every time a new assembly is added. This will bring a lot of inconvenience for us.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AI can't detect dll platform availability

Hi,

We will consider adding this improvement into a future version of Advanced Installer. Thank you for your suggestion.
Until then, the solution is to run the "Mixed 32/64 bit matching the platform" wizard after you add the assemblies. Note that next to the "Package Type" combo box there is a "..." button which will run the wizard again.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: AI can't detect dll platform availability

Hi, I found that sometimes, the AI can't even detect the correct platform for some merge modules. To see what I mean, do the following steps:
  1. download the zip file, extract it, there is a merge module named comcat.msm. This is a 32 bit merge module
  2. create anew AI project, attach this comcat.msm in the merge modules section.
  3. Now go to Install Parameter->Package Type, set to "Mixed 32/64-bit matching the platform", click on the ellipsis, next all the way until you can specify the platforms for merge modules
  4. Comcat.msm will be there for you to set the installation platform. There is only one option available, namely "only on 64-bit platforms". But comcat.msm is a 32 bit merge module.
This is a bug :twisted:
Attachments
COMCAT.zip
(11.53 KiB) Downloaded 594 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AI can't detect dll platform availability

Hi,

Yes, this is a bug in Advanced Installer and it will be fixed in the next version. Thank you for bringing this to our attention.
I made a small modification in the Summary Information of the merge module and it is now recognized correctly (it is attached to this post).

Regards,
Cosmin
Attachments
COMCAT.zip
(21.32 KiB) Downloaded 391 times
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: AI can't detect dll platform availability

Hi, Cosmin,

one can select the platform for the new comcat.msm you attached in your post. But still, I have a lot of merge modules that have such a problem. I think it would be good if you can release a version that
  1. Fix this problem
  2. Auto detect the merge modules and all the dll component's platform suitability and set their platform respective to that automatically. This means that if the component ( dll or merge modules) work in both 64 and 32 bit, then it should be installed on both platform; if it only works on 32 bit, then it should be installed on 32 bit platform. There are just too many components for us to set the platform individually.
Just one additional question, in my appFolder, there is a 64 bit folder that hosts 64 bit dll, with the 32 bit dll appears in appFolder. So how I am going to configure the Advanced Installer so that in 32 bit platform, the 32 bit dll will be installed on appFolder but on 64 bit platform, the dll inside the 64 bit folder will be installed on appFolder. For example, I have a Test.dll, so I put the 32 bit version of the Test.dll into appFolder directly, and put the 64 bit version of the Test.dll into the 64 bit folder which is inside the appFolder. How can I configure the Advanced Installer so that on 32 bit platform, the 32 bit Test.dll will go into the application folder, and on 64 bit platform, the 64 bit Test.dll will also go into the application folder ? The 64 bit Test.dll should not reside in the 64 bit folder in the application folder, though.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AI can't detect dll platform availability

Hi,
Fix this problem
We already implemented a fix and it will be available in the next version.
if the component ( dll or merge modules) work in both 64 and 32 bit, then it should be installed on both platform; if it only works on 32 bit, then it should be installed on 32 bit platform.
Please note that this is done automatically by the "Mixed 32/64-bit matching the platform" wizard.
So how I am going to configure the Advanced Installer so that in 32 bit platform, the 32 bit dll will be installed on appFolder but on 64 bit platform, the dll inside the 64 bit folder will be installed on appFolder.
For this you can use the Install folder content into the parent folder option in the Properties tab of the "Edit Folder" dialog. Since the 32-bit and 64-bit files are mutually exclusive, the files for both platforms can be installed correctly in the application folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: AI can't detect dll platform availability

cosmin wrote:Hi,

if the component ( dll or merge modules) work in both 64 and 32 bit, then it should be installed on both platform; if it only works on 32 bit, then it should be installed on 32 bit platform.
Please note that this is done automatically by the "Mixed 32/64-bit matching the platform" wizard.

Regards,
Cosmin
Hi, are you saying that AI can auto-detect the platform compatibility of a component? But so far as I know, not only AI can't detect the merge module's platform correctly, but it can't detect the dll's platform correctly as well. To see what I mean, do the following steps:
  1. Download the zip file int your hard drive, extract it
  2. Create a new AI project, set the files and folders to synchronize with the debug folder.
  3. At the files and folders->package type, choose "Mixed 32/64- bit matching the platform", next all the way until you are at the 32-bit executables and libraries", regardless of whether you choose the "Install these files on 64-bit platforms" or not, the file WindowsFormApplication3.exe will still only be installed to the 32 bit system, but not 64 bit.
  4. You can verify this by going to Organization, there are three categories, the WindowsFormApplication3.exe is located on the 32-bit category, instead of locating at the MainFeature or common directory, because this exe is a .net 2.0 exe and and should be able to run as it is on both 32 bit and 64 bit OS.
Attachments
Debug.zip
(13.14 KiB) Downloaded 411 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AI can't detect dll platform availability

Hi,
regardless of whether you choose the "Install these files on 64-bit platforms" or not, the file WindowsFormApplication3.exe will still only be installed to the 32 bit system, but not 64 bit.
Actually, this is not true. Here is how the "Install these files on 64-bit platforms" option works:
- if it is not checked, the 32-bit feature will be installed only on 32-bit systems (it has the Conditional Install level set to "VersionNT64 0")
- if it is checked, the 32-bit feature will be installed on both 32-bit and 64-bit systems (it has the Conditional Install level set to "VersionNT64 1")

The Common feature is used for the files which will always be installed on both systems (files which don't have a platform specified). But the 32-bit files may not be installed on a 64-bit system, therefore they are placed in the 32-bit feature.
the WindowsFormApplication3.exe is located on the 32-bit category, instead of locating at the MainFeature or common directory, because this exe is a .net 2.0 exe and and should be able to run as it is on both 32 bit and 64 bit OS.
Please note that this is a 32-bit file, therefore it is added to the 32-bit feature. Also, all 32-bit files are supported by a 64-bit system (as stated by Microsoft). If you want to customize which 32-bit files are installed on a 64-bit system, you can move the components the way you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: AI can't detect dll platform availability

cosmin wrote:Hi,
regardless of whether you choose the "Install these files on 64-bit platforms" or not, the file WindowsFormApplication3.exe will still only be installed to the 32 bit system, but not 64 bit.
Actually, this is not true. Here is how the "Install these files on 64-bit platforms" option works:
- if it is not checked, the 32-bit feature will be installed only on 32-bit systems (it has the Conditional Install level set to "VersionNT64 0")
- if it is checked, the 32-bit feature will be installed on both 32-bit and 64-bit systems (it has the Conditional Install level set to "VersionNT64 1")

The Common feature is used for the files which will always be installed on both systems (files which don't have a platform specified). But the 32-bit files may not be installed on a 64-bit system, therefore they are placed in the 32-bit feature.
the WindowsFormApplication3.exe is located on the 32-bit category, instead of locating at the MainFeature or common directory, because this exe is a .net 2.0 exe and and should be able to run as it is on both 32 bit and 64 bit OS.
Please note that this is a 32-bit file, therefore it is added to the 32-bit feature. Also, all 32-bit files are supported by a 64-bit system (as stated by Microsoft). If you want to customize which 32-bit files are installed on a 64-bit system, you can move the components the way you need.

Regards,
Cosmin
Hi, thanks for your explaination.

But let's say in the appFolder, there are some dlls that must be installed on both 32 and 64 bit platform, and some dlls that must only be installed on 32 bit platform, how am I going to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AI can't detect dll platform availability

Hi,
there are some dlls that must be installed on both 32 and 64 bit platform
These files can be added manually to the Common feature.
some dlls that must only be installed on 32 bit platform
These files should be added to the 32-bit feature. Also, the "Install these files on 64-bit platforms" should not be checked.

Note that when you add files in the "Files and Folders" page, you can select the current feature through the "Feature" combo on the toolbar. For example, if Common is the current feature, then all the files you add to the project will be placed in this feature (the existing files will remain in their original location).

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

Return to “Common Problems”