MSI installation help

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

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
 
Hi Raj,

If you have Visual.studio.net it is a function called setup and deployment
projects. Do you use that?

Cor
 
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).
 
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 said:
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 said:
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
 
At

http://msdn.microsoft.com/library/d...idvisualbasic60visualbasicnetapplications.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 said:
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" <[email protected]> wrote in message
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 said:
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
 
Back
Top