Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
QuestionHow to get the time from a computer Pin
Stuggo13-Jul-04 4:11
Stuggo13-Jul-04 4:11 
AnswerRe: How to get the time from a computer Pin
Heath Stewart13-Jul-04 4:20
protectorHeath Stewart13-Jul-04 4:20 
GeneralResponse.Redirect is not working.. a peculiar problem..One solution found !! Pin
PhaniKatakam13-Jul-04 2:07
PhaniKatakam13-Jul-04 2:07 
GeneralRe: Response.Redirect is not working.. a peculiar problem..One solution found !! Pin
Heath Stewart13-Jul-04 4:13
protectorHeath Stewart13-Jul-04 4:13 
GeneralAccessing HTML control Pin
Padmavathi13-Jul-04 1:26
Padmavathi13-Jul-04 1:26 
GeneralRe: Accessing HTML control Pin
Heath Stewart13-Jul-04 4:07
protectorHeath Stewart13-Jul-04 4:07 
GeneralProblem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 1:23
Axonn Echysttas13-Jul-04 1:23 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 3:56
protectorHeath Stewart13-Jul-04 3:56 
MSI is not a magic bullet that will solve your problems. Obviously, something is missing. If all you use MSI for is copying those assemblies into a folder, then something as simple as COPY or XCOPY or just zipping it up will do fine.

The difference between Interop.something.dll and AxInterop.something.dll is, by default, that the Interop assembly contains the typelib wrapper (RCW, or Runtime Callable Wrapper) and the AxInterop assembly contains the control(s) that extend AxHost, a Control which wraps ActiveX controls.

Distributing those assemblies isn't enough, however. Since they are only wrappers, you need to distribute the WinSock COM control that you're wrapping. All those assemblies do is make the COM control and typelib useable in .NET (through the RCW).

This is where MSI would be handy. COM controls need to be registered on the system and MSI can do that easily. You can add the file to the File System editor and in the file's properties (in the PropertyGrid), set the registration to SelfReg (something like that).

You don't need to do this, though. If you don't plan on mass-deploying this, just direct users to download the WinSock COM control and install it it, if it has it's own installer.

If you do want to distribute this to anyone, though, I'd recommend using an MSI package. VS.NET's Windows Installer projects are very simple to learn, but are by no means complete (for our installs, I use Wise for Windows Installer, which is a full-blown authoring package for MSIs and MSMs from Wise[^]). The VS.NET is simple to use and you should explore it a little.

For example, in the File System editor you can add folders to whatever pre-defined folder you want, then add your project outputs (handy when you want to maintain version compatibility within a solution). Just right click in the folders and seld Add File, choose Project, browse to the project you want and select Build Ouput. Now when you build the MSI project it will make sure the other projects are up-to-date and automatically grab the build outputs (the assemblies) from the projects' target directories.

Also add the COM control if the VS.NET Windows Installer project doesn't do it already (it often will). Make sure that it's set to register itself as I mentioned above.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 5:19
Axonn Echysttas13-Jul-04 5:19 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 5:24
protectorHeath Stewart13-Jul-04 5:24 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Echysttas13-Jul-04 5:49
Axonn Echysttas13-Jul-04 5:49 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Heath Stewart13-Jul-04 6:09
protectorHeath Stewart13-Jul-04 6:09 
GeneralRe: Problem when Distributing A C#.Net Application Pin
Axonn Ech.13-Jul-04 10:50
sussAxonn Ech.13-Jul-04 10:50 
Generalhowto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 0:47
Stephan Wright13-Jul-04 0:47 
GeneralRe: howto to implement SOAP in C# Pin
Roman Rodov13-Jul-04 1:18
Roman Rodov13-Jul-04 1:18 
GeneralRe: howto to implement SOAP in C# Pin
Stephan Wright13-Jul-04 1:36
Stephan Wright13-Jul-04 1:36 
Generalproblems with importing Outlook contacts Pin
Stephan Wright12-Jul-04 23:58
Stephan Wright12-Jul-04 23:58 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart13-Jul-04 4:26
protectorHeath Stewart13-Jul-04 4:26 
GeneralRe: problems with importing Outlook contacts Pin
Stephan Wright13-Jul-04 22:38
Stephan Wright13-Jul-04 22:38 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart14-Jul-04 3:13
protectorHeath Stewart14-Jul-04 3:13 
GeneralSNTP Class Pin
don7cry12-Jul-04 21:46
don7cry12-Jul-04 21:46 
GeneralRe: SNTP Class Pin
Heath Stewart13-Jul-04 5:13
protectorHeath Stewart13-Jul-04 5:13 
GeneralCreate Undo functionnality. Pin
HAHAHA_NEXT12-Jul-04 19:56
HAHAHA_NEXT12-Jul-04 19:56 
GeneralRe: Create Undo functionnality. Pin
Roman Rodov13-Jul-04 1:25
Roman Rodov13-Jul-04 1:25 
GeneralWindow Message Pin
sachinkalse12-Jul-04 19:15
sachinkalse12-Jul-04 19:15 

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.