Unable to inslall dotnet using nested msi

I have an  installer msi which will install the selected msi files from it's screens.
One of the sub msi is installing dotnetfx45.exe as a prerequisite.
It is installing correctly if I run the internal msi directly but not with the initial external main msi.

The issue occurs when the internal msi is running a custom action the below command 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe  /tlb:erwinSpy_AddIn.NET.x86.tlb "C:\Program Files (x86)\erwin\Data Modeler r9\BackupFiles\Samples\erwin API\erwinSpy.NET\bin\erwinSpy_AddIn.NET.x86.dll" /codebase "C:\Program Files (x86)\erwin\Data Modeler r9\BackupFiles\Samples\erwin API\erwinSpy.NET\bin\erwinSpy_AddIn.NET.x86.dll" 

The above comand is giving below error.

How to fix this.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: techsurfer 4 years ago
Senior White Belt
What if you try to run this command directly in the script before running the msi?

Try to remove the custom action and run it manually. Since it is a pre-req, you can run the regasm command manually. This is just a tip.

  • but the regasm will work only after the dotnet4.5 installs.Moreover we are delivering the exe to end users, I mean it comes under release of the product to end users as a download in our website.But not repackaging to deploy it through SCCM. - ur00361883 4 years ago
Posted by: anonymous_9363 4 years ago
Red Belt
Nested MSIs have always been a Monumentally Bad Idea, mostly because of issues with repair/self-healing and upgrades. Just...don't. Find another way. As you seem to be using an EXE wrapper already, use that to encapsulate each installer and run them step-by-step. Obviously, you'd need to include error-checking so that install 'B' doesn't happen unless install 'A' completes successfully.

  • Just saw the previous version where they are running the above commadn in a batch file with asynchrnous no wait custom action... But to hide the commadn prompt I am running the batch file in a vbscript.And this vbscript custom action don't have option to keep asynchronous,only synchronous is there in installshield.

    Even I checked the ignore exit code this prompt is coming.How to suppress this error then.In the previous version this error is hidden. - ur00361883 4 years ago
Posted by: anonymous_9363 4 years ago
Red Belt
If you want to persist with this Monumentally Bad Idea, then to hide the console window that opens, you need to change the CA to run START.EXE first, passing it the argument to not display the console, '/B'. So:

START /B C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe [blah, blah, blah]

  • i am calling a batch file which contains these series of commands written by thirdparty team.

    cmd /c "path to batch file" 64

    can you help me how to run the above batch file with arguments using start. - ur00361883 4 years ago
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ