This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Registering a .Net Assembly with /codebase
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 13, 2008
02:35 PM
Registering a .Net Assembly with /codebase
I'm trying to author an installer that will register a .Net assembly and registration doesn't seem to work. I need the equivalent to 'RegAsm.exe /codebase'. Searching seems to indicate that checking the '.Net Interop' option on the component for that .dll is supposed to do it, but it doesn't... not with this .dll at least. After installing I still need to run RegAsm from the command line. I've tried to make a custom action to register the assembly, but it always throws the error:
Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Reg_IEOMSIS.DLL, location: C:\Program Files\barr\test assembly\, command: C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\RegAsm.exe "C:\Program Files\barr\test assembly\ieomsis.dll" /codebase
MSI (s) (44:90) [15:22:38:037]: Product: test assembly -- Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Reg_IEOMSIS.DLL, location: C:\Program Files\barr\test assembly\, command: C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\RegAsm.exe "C:\Program Files\barr\test assembly\ieomsis.dll" /codebase
Without the CA, I can install the software, and from the command prompt run the exact command (copied directly from the .log from the failed install) and it will work as expected.
How can I find out why this isn't working. The msi log doesn't really give any reason WHY it wouldn't run, just that it wouldn't.
Does anybody know how this is supposed to work?
TIA!
crewsr
Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Reg_IEOMSIS.DLL, location: C:\Program Files\barr\test assembly\, command: C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\RegAsm.exe "C:\Program Files\barr\test assembly\ieomsis.dll" /codebase
MSI (s) (44:90) [15:22:38:037]: Product: test assembly -- Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Reg_IEOMSIS.DLL, location: C:\Program Files\barr\test assembly\, command: C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727\RegAsm.exe "C:\Program Files\barr\test assembly\ieomsis.dll" /codebase
Without the CA, I can install the software, and from the command prompt run the exact command (copied directly from the .log from the failed install) and it will work as expected.
How can I find out why this isn't working. The msi log doesn't really give any reason WHY it wouldn't run, just that it wouldn't.
Does anybody know how this is supposed to work?
TIA!
crewsr
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 13, 2008
05:06 PM
I have gotten this to work by making both the ".NET COM Interop" and "COM Extract at Build" set to YES
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)