---
title: "Installation"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/82693-installation"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "clarkbones"
published: "2003-07-24T17:46:57.000Z"
updated: "2003-07-29T10:52:00.000Z"
replies: 5
views: 279
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/82693-installation"
---

# Installation

## #1 — clarkbones, 2003-07-24T17:46Z

Hej!

Jag sitter här och försöker skapa ett installationsprogram. Jag har föga framgång dock.

Ställde denna fråga i en newsgroup utan resultat. Kopierar texten, hoppas ni har överseende med att det är på engelska.

Detta är vad installationsprogrammet skall göra...

\- Check whether .NET framework is installed. If not, install it.
\- Check that Excel is installed and where it is located.
\- Register .NET component and create type library for early binding (when I do this manually, I use the regasm tool of .NET framework), place these
files in same folder as Excel.exe.
\- Copy StockQuotes.xla to appropriate directory: C:\\Program Files\\Microsoft
Office\\Office10\\XLStart.

Now the questions:
\- I know how to check for .NET framework, but how can I bundle it and install it if not installed? One big file is best to my less knowledgable users, I think, I do not want to make them install several components.

\- How do I use the regasm tool in a setup project?

Permalänk: https://www.webforum.nu/p/82693

## #2 — Nickemannen, 2003-07-24T19:43Z

För att kolla om excel finns så får du väl leta upp någon typisk

Excel register nyckel. Finns säkert info i registret någonstans om var det ligger också. Men hur kollade du om .NET var installerat ?

Permalänk: https://www.webforum.nu/p/1120639

## #3 — clarkbones, 2003-07-24T20:30Z

Tja, ett sätt är att skapa ett setup project. Där kan man göra den kontrollen automatiskt genom ett s k launch condition...dock vet jag ej hur jag skall registrera/skapa COM-wrapper per automatik. Manuellt gör man det med Regasm.exe...

Permalänk: https://www.webforum.nu/p/1120672

## #4 — Vimp, 2003-07-25T18:37Z

Det är inte säkert att Excel ligger i just den mappen.. själv kör jag Office 2003 och där heter mappen Office11..

Permalänk: https://www.webforum.nu/p/1121235

## #5 — fredrik, 2003-07-29T06:39Z

Se:
<http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en>

> The purpose of the sample is to demonstrate how to create a single setup program that, when launched, installs the .NET Framework redistributable package Dotnetfx.exe, if necessary, and then installs a .NET Framework application.

Permalänk: https://www.webforum.nu/p/1122875

## #6 — Nickemannen, 2003-07-29T10:52Z

Tråkigt är bara att det tar 20 Mb större plats än orginalet.

Permalänk: https://www.webforum.nu/p/1122972

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/82693-installation
