Re: MSI installation help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Phil Wilson (phil.wilson_at_unisys.spamcom)
Date: 02/03/04


Date: Tue, 3 Feb 2004 15:10:50 -0800

At

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbcondeployinghybridvisualbasic60visualbasicnetapplications.asp

the short topic Add COM Registration for the .NET Component explains that you
can add registration using vsdrpCOM, which extracts into the MSI file the same
entries that regasm would create, so it just works. So you don' need regasm to
register .NET COM interop (I think VS runs regasm to get the registration data
at build time).

Gacutil isn't distributed with the runtime, so you can't rely on it being on a
client system. It was not in the 1.0 redist, but for some reason it showed up in
SP2 to the 1.0 redist, but it is not part of the 1.1 redist. To install
something in the GAC, right-click on File System on Target Machine in VS setup
project File System, and do the Add Special Folder. If you think that you need
to put something ion the GAC for COM interop, you don't need to. Maintaining and
updating new versions of .NET COM interop assemblies in the GAC is tricky. Just
install the assembly into the application folder, and you'll get the equivalent
to a regasm /codebase with no need to use the GAC.

-- 
Phil Wilson [MVP Windows Installer]
----
"Raj" <raj1q2w@yahoo.com> wrote in message
news:973a2213.0402030319.1594c265@posting.google.com...
> I dont have any of the products you mention. I only use VS .NET. I see
> that gacutil and regasm are a part of XP OS even if VS .net is not
> there. I can currently install the application using standard scripts.
> I want to be able to do the same using an MSI. Am I missing something?
>
> Raj
>
> "Phil Wilson" <phil.wilson@unisys.spamcom> wrote in message
news:<#XPLosb6DHA.1664@TK2MSFTNGP11.phx.gbl>...
> > The big question is what you're using to build your setup. Capabilities
differ
> > between VS setup projects and products from InstallShield, Wise, ZeroG, etc
etc.
> > Generally speaking, in MSI setups you don't need gacutil (it's not part of
the
> > framework's runtime and therefore not on client systems anyway) and you
probably
> > don't need regasm either (because the tools extract the corresponding
> > registration into the MSI file).
> > -- 
> > Phil Wilson [MVP Windows Installer]
> > ----
> > "Raj" <raj1q2w@yahoo.com> wrote in message
> > news:973a2213.0402012040.3c0bf3ca@posting.google.com...
> > > Hi,
> > >
> > > I am new to .net and win32 programming in general. I am looking for
> > > some simple documentation on how to package a .net application as an
> > > MSI. Within that MSI I need to perform several gacutil & regasm tasks.
> > > I need this urgently. Could anybody guide me through a simple set of
> > > steps. Most of the documentation I have found is too verbose and much
> > > more information that I need.
> > >
> > > Thanks in advance
> > >
> > > Raj


Relevant Pages

  • Re: installation & ComRegisterFunctionAttribute
    ... A MSI setup won't call your ComRegisterFunctionAttribute methods - they're ... etc, vsdraCOM should work fine. ... version so you register one version but install another. ... > and regasm in order for the toolbar to show up in IE, ...
    (microsoft.public.dotnet.framework.setup)
  • Re: How to make a setup program uninstall an older version?
    ... MSI file using Orca? ... My app in question is a .net class library assembly that referenced by ... for the side-to-side install to happen but just want to see if it's decision ... setup design time, do it during the setup runtime. ...
    (microsoft.public.vsnet.ide)
  • Re: How to make a setup program uninstall an older version?
    ... MSI file using Orca? ... My app in question is a .net class library assembly that referenced by ... for the side-to-side install to happen but just want to see if it's decision ... setup design time, do it during the setup runtime. ...
    (microsoft.public.vsnet.general)
  • Re: How to install the same MSI setup over and over again on the same machine
    ... You'll have to rebuild the MSI file with a different ProductCode, ... you can't hack the registry to let the client run the same MSI file again. ... or the client wants to install it again and can't directly rebuild it. ... In some case, like mine, you need to install the same setup again on ...
    (microsoft.public.dotnet.framework.setup)
  • Re: When were scanf_s functions introduced?
    ... .msi file 400 kb setup.exe 1.9 Mb ... But when I add it to the Setup project, the Detected Dependencies ... one that is a "web install" (checks dependencies and only downloads those that are missing, ...
    (microsoft.public.platformsdk.security)