Register Assembly not working for a .NET assembly
Posted: Thu Jun 07, 2007 2:40 pm
Hi All,
I have a .NET Assembly which is being used by COM Interop, I am running the code below to register this assembly, but it looks like it is not working.
As you can see the Register assembly code is after the Apply Install, but when I try to use the CDRCryptoLib.dll from my application, I am not able to do so, if I manually from a DOS window run the RegAsm.exe command then I am able to use the library.
I have also tried using the following command:
Can anybody tell me what am I doing wrong here?
Thanks!
I have a .NET Assembly which is being used by COM Interop, I am running the code below to register this assembly, but it looks like it is not working.
Code: Select all
if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Set Environment Variable %MAIN_PROJECT_NAME% to ezCallTrack
Create Shortcut $SHORTCUTFOLDER$\\ezCallTrack to $TARGETDIR$\\ezCallTrack.exe
Create Shortcut $DESKTOPDIR$\\ezCall Track to $TARGETDIR$\\ezCallTrack.exe
Create Folder $TARGETDIR$\\VRep
Create Folder $TARGETDIR$\\VRep\\Distribution
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Comment: Run Program $BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\R1.bat (WAIT)
Comment: Try to register the cdrCryptoLib.dll
Register assembly $BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\CDRCryptoLib.dll
Register Library $TARGETDIR$\\ctExplorer.ocx
Register Library $TARGETDIR$\\ctToolBar.ocx
Register Library $TARGETDIR$\\VRep\\Distribution\\ctmonth.ocx
Install Fonts from '$TARGETDIR$\\Fonts\\*.ttf'
Comment: MessageBox: REGISTRATION, $DEV_REGISTERED_OK$
end
end
end
As you can see the Register assembly code is after the Apply Install, but when I try to use the CDRCryptoLib.dll from my application, I am not able to do so, if I manually from a DOS window run the RegAsm.exe command then I am able to use the library.
I have also tried using the following command:
Code: Select all
Run Program $BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\RegAsm.exe $BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\CDRcryptolib.dll" /silent /codebase (WAIT)
Can anybody tell me what am I doing wrong here?
Thanks!