473,379 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

DLL created in .NET cannot use? (Inno Setup)

Jon
Hi,

I have created a DLL in VB.NET.

I try to use it in my Installer program which is written in pascal (inno
setup), however unsuccessfully..

Does that means any DLL created in .NET can only use within the .NET
platform??

Thanks
Aug 22 '06 #1
4 6681
"Jon" <Jo*@discussions.microsoft.comschrieb:
I have created a DLL in VB.NET.

I try to use it in my Installer program which is written in pascal (inno
setup), however unsuccessfully..

Does that means any DLL created in .NET can only use within the .NET
platform??
Yes, the DLL will require the .NET Framework to be installed on the
destination machine in order to run.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Aug 22 '06 #2
Jon wrote:
I have created a DLL in VB.NET.

I try to use it in my Installer program which is written in pascal (inno
setup), however unsuccessfully..
You can make the DLL accessible via COM, by registering it for InterOp
and referencing the generated TLB from your Pascal installer.

Every DLL written in .Net requires the .Net Framework on the target
machine before it will run.

Regards,
Phill W.
Aug 22 '06 #3

"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:ec**********@south.jnrs.ja.net...
Jon wrote:
>I have created a DLL in VB.NET. I try to use it in my Installer program
which is written in pascal (inno setup), however unsuccessfully..

You can make the DLL accessible via COM, by registering it for InterOp and
referencing the generated TLB from your Pascal installer.

Every DLL written in .Net requires the .Net Framework on the target
machine before it will run.

Regards,
Phill W.
There is also the option to compile the .Net assembly with references into a
static, assembly that requires no framework installation....

There is software out there that does this (or at least did in 2002 when I
needed it)...

But for InnoSetup and PascalScript, you can ensure that the user has the
..Net Framework installed using a check in InitializeSetup() and then either
include the framework installer (check EULA to make sure you are allowed to
do this) or prompt the user to install the framework and point to
Microsoft's download site. Make sure it's installed before continuing :)

Something that stinks and you should be aware of, you really can't install
items into the GAC using InnoSetup. This is because to do this with inno
you will need to run gacutil to install. GacUtil is not part of the
redistributable for the .Net framework and you are not allowed to distribute
it. You can write your own gac installer using the framework classes
though, but there is no guarantee it will work, and no exceptions will be
thrown if an assembly couldn't be installed. There is also PInvoke you
could use, along with SHFusion.dll (in the .Net framework directory) ...

HTH,
Mythran
Aug 22 '06 #4
Jon
Thanks for all the reply.

Could you please tell me more about how to set it as a COM?
Because at the moment when I try to IMPORT into InnoSetup, it said the DLL
is not a proper DLL...?

Any help is appreciated!

Many thanks,
Jon
Aug 23 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Giles Brown | last post by:
I'm feeling quite dumb this morning. I'm trying to build a COM server DLL using py2exe and it ain't working. Here's what ain't working... setup_dll.py based on py2exe sample: """from...
2
by: Anthony Baxter | last post by:
I'm trying to use py2exe and Inno Setup to build an installer for shtoom, which uses tkinter. If I take the py2exe generated directory, and run the executable from there, it works fine. If I...
3
by: dcrespo | last post by:
Any comments?
1
by: Martin | last post by:
Hi I would like to place a message in an uninstaller window which will inform the user that some folders haven't been deleted. Is that possible using Inno Setup? -- Thanks in advance Martin
2
by: Henrik Dahl | last post by:
Hello! I've made a WebService which has the name MyWebService. Now I make a setup project for it. The name of the setup project is MyWebServiceInstaller. The default name for the virtual...
0
by: Jerry Spence1 | last post by:
I'm trying to use the Inno Setup installer for my VB.Net project and I need a list of all the files that my project needs. In VB6 I could use the packaging and Deployment Wizard to produce a .DEP...
0
by: syamlalz | last post by:
HI..Does anyone know about controlling the "Browse button" in Inno setup?? When cliking it,it should show only the drive names...not the folders... Please help me.
0
by: Deemar | last post by:
I read somewhere that the Delphi/Pascal used in this application is similar to Python, sorry if I got it in the wrong forum here. I have a setup program made with Inno Setup and there's a premade...
6
by: Apostle | last post by:
I don't know where to post it inBytes, but since I'm used to Python forum, I hope someone will help me here. Advices of as to where I should post this are valid! I have made a project, compiled it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.