Click here to Skip to main content
15,887,886 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralNative DLL Pin
dibaer16-Nov-04 21:27
dibaer16-Nov-04 21:27 
GeneralRe: Native DLL Pin
sreejith ss nair21-Nov-04 18:34
sreejith ss nair21-Nov-04 18:34 
GeneralHelp needed to start developing an InHouse Application Pin
Sardarindianpunjabi16-Nov-04 8:58
Sardarindianpunjabi16-Nov-04 8:58 
GeneralRe: Help needed to start developing an InHouse Application Pin
benjymous18-Nov-04 22:41
benjymous18-Nov-04 22:41 
GeneralRe: Help needed to start developing an InHouse Application Pin
Sardarindianpunjabi19-Nov-04 7:33
Sardarindianpunjabi19-Nov-04 7:33 
GeneralRe: Help needed to start developing an InHouse Application Pin
The Man from U.N.C.L.E.2-Dec-04 4:49
The Man from U.N.C.L.E.2-Dec-04 4:49 
GeneralDeployment of COM Interop Pin
skrishnasarma15-Nov-04 21:48
skrishnasarma15-Nov-04 21:48 
GeneralRe: Deployment of COM Interop Pin
CodeWell17-Nov-04 20:12
CodeWell17-Nov-04 20:12 
I just did the same thing (but with a VB.Net assembly).
You have to create an installer class in the assembly and make the installer call it. This is pretty easily done if you create a .net setup project, not sure how you do it in Installshield (last I used it was way back in version 5.5 Smile | :) )

I actually got the information from the web (but can't remember the location now). In any case, the main thing is to override two functions in the installer class. Here is the VB.NET code:




Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
MyBase.Install(stateSaver)

Try
Dim regSrv As System.Runtime.InteropServices.RegistrationServices

' Register the assembly
regSrv = New System.Runtime.InteropServices.RegistrationServices
If Not regSrv.RegisterAssembly(Me.GetType().Assembly, Runtime.InteropServices.AssemblyRegistrationFlags.SetCodeBase) Then
Throw New System.Configuration.Install.InstallException("Failed to register componenet for COM interop")
End If

' Add System Resource Category Key

' Microsoft.Win32.Registry.ClassesRoot.CreateSubKey()
'("CLSID\\{6fa89f84-721a-4c79-bff4-62291fd56940}
'\\Implemented Categories\\{4FCF59B1-AE57-11d3-B9A3-
'00104BD14AB6}")

Catch ex As System.ExecutionEngineException
MsgBox(ex.ToString)
End Try

End Sub

Public Overrides Sub Uninstall(ByVal savedState As System.Collections.IDictionary)
MyBase.Uninstall(savedState)

Try
Dim regSrv As System.Runtime.InteropServices.RegistrationServices

' Unregister the assembly
regSrv = New System.Runtime.InteropServices.RegistrationServices
If Not regSrv.UnregisterAssembly(Me.GetType.Assembly) Then
Throw New System.Configuration.Install.InstallException("Failed to unregister componenet for COM interop")
End If

' Remove System Resource Category Key

' Microsoft.Win32.Registry.ClassesRoot.DeleteSubKey()
'("CLSID\\{6fa89f84-721a-4c79-bff4-62291fd56940}
'\\Implemented Categories\\{4FCF59B1-AE57-11d3-B9A3-
'00104BD14AB6}")

Catch ex As System.ExecutionEngineException
MsgBox(ex.ToString)
End Try


End Sub



I don't remember what the registry key bits were for but I remember that for most assemblies you could just comment them out (so I did).

Sorry if my reply is a little 'air headed' but I only spent about 3 hours on it. I did a search on the web, copied, pasted, it worked, I moved on to writing some more code! Smile | :)
GeneralRe: Deployment of COM Interop Pin
tvkrao23-Nov-04 22:49
tvkrao23-Nov-04 22:49 
GeneralEmbedding WMP9 - InvalidActiveXStateException Pin
Michael Rosati15-Nov-04 10:13
Michael Rosati15-Nov-04 10:13 
GeneralRemoting that doesn't work on SP2 Pin
lordavenger15-Nov-04 7:15
lordavenger15-Nov-04 7:15 
GeneralAutomated Builds Pin
Alberto Bar-Noy15-Nov-04 3:28
Alberto Bar-Noy15-Nov-04 3:28 
GeneralRe: Automated Builds Pin
Steven Campbell15-Nov-04 7:46
Steven Campbell15-Nov-04 7:46 
GeneralDeploying 1.1 app on 1.0 framework Pin
slaars13-Nov-04 14:17
slaars13-Nov-04 14:17 
GeneralRe: Deploying 1.1 app on 1.0 framework Pin
Charlie Williams13-Nov-04 14:27
Charlie Williams13-Nov-04 14:27 
GeneralClipboard Pin
Matthias Glemser13-Nov-04 4:38
Matthias Glemser13-Nov-04 4:38 
GeneralRe: Clipboard Pin
Matthias Glemser15-Nov-04 8:17
Matthias Glemser15-Nov-04 8:17 
GeneralCOM+ : exporting to type library(com+ to com) Pin
Sendilkumar.M11-Nov-04 23:30
Sendilkumar.M11-Nov-04 23:30 
GeneralRe: COM+ : exporting to type library(com+ to com) Pin
CodeWell17-Nov-04 20:16
CodeWell17-Nov-04 20:16 
GeneralBinding Collection to DataGrid Pin
Derec Roofie11-Nov-04 1:24
Derec Roofie11-Nov-04 1:24 
GeneralRe: Binding Collection to DataGrid Pin
Steven Campbell11-Nov-04 15:01
Steven Campbell11-Nov-04 15:01 
GeneralRe: Binding Collection to DataGrid Pin
satya chhikara22-Nov-04 23:30
satya chhikara22-Nov-04 23:30 
QuestionHow to determine parent class Pin
Derec Roofie11-Nov-04 1:17
Derec Roofie11-Nov-04 1:17 
AnswerRe: How to determine parent class Pin
Colin Angus Mackay12-Nov-04 9:39
Colin Angus Mackay12-Nov-04 9:39 
QuestionHow to we add C++ code to .NET Application? Pin
pubududilena10-Nov-04 22:00
pubududilena10-Nov-04 22:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.