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?
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 ?
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...
VimpMedlem sedan juli 20022 537 inlägg 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..
fredrikMedlem sedan dec. 19991 072 inlägg 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.
Tråkigt är bara att det tar 20 Mb större plats än orginalet.