Wrong .Net chosen - Advanced Installer Community
oco
Posts: 4
Joined: Wed Jul 01, 2020 4:07 pm

Wrong .Net chosen

Hello, I have created an installer with Advanced Installer for a Word addon. This installer is dedicated to 64 bits environments, it works well except on some systems where it points to the 32 bits version of .Net. Attached is a adxregistrator.log file that has been generated during such a failure; it points to C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll instead of C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll which exists on the machine.
How could I force the usage of the 64 bits version of .Net when the OS is recognized as a 64 bits one?
Thank you very much in advance for your help
Attachments
TW DocBuilder Word AddIn_64bits.aip
(118.39 KiB) Downloaded 260 times
adxregistrator.log
(7.77 KiB) Downloaded 261 times
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong .Net chosen

Hello,

I have answered your forum thread here:

viewtopic.php?f=2&t=45653

However, please ignore that as I did not notice you have attached the .AIP file in another thread.

In order for me to further investigate this, could you please forward me a download link for your setup by e-mail at support at advancedinstaller dot com and a test-case which I can follow in order to replicate the behavior?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oco
Posts: 4
Joined: Wed Jul 01, 2020 4:07 pm

Re: Wrong .Net chosen

Dear Catalin,

Thank you very much for your reply! I have just sent you an email containing a link to our setup.

Kind regards
oco
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong .Net chosen

Hello Oliver,

I've done some testing with the provided setup and it seemed to be working as expected.

There are few things I'd like to point out here:

- you have mentioned that this issue is machine specific:
it works well except on some systems
On a machine where you are able to reproduce this, could you please try to manually register the assembly using the same command line as in Advanced Installer, e.g.:

Code: Select all

adxregistrator.exe /install=“path\AssemblyName.dll“ /privileges=admin
After doing so, please let me know if everything works as expected or if you are still able to reproduce this.

If the above works as expected, then the problem might indeed be with the installation process. If that is the case, I would advise removing the custom action (you are currently using the "Launch installed file" custom action) and replacing it with the "Launch File" custom action. The latter has the "Use 64-bit launcher" option which I believe may be of help in this case.

Once again, this should only be done if you are not able to reproduce this scenario when manually registering the assembly.

- most probably this is not the case, but please also have a look over the following article:

https://www.add-in-express.com/creating ... installer/

Step 2. Build your project

Hope this helps somehow.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oco
Posts: 4
Joined: Wed Jul 01, 2020 4:07 pm

Re: Wrong .Net chosen

Hello Catalin,

Thanks for your answer!
I was able to reproduce the problem with the manual registration, so I have to investigate in the direction you have shown me.

Thanks again for your help.

Kind regards
Olivier
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong .Net chosen

You are always welcome, Oliver!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”