Solved

Use .dlls from CD

Posted on 2000-03-24
6
168 Views
Last Modified: 2010-07-27
Hi ppl!!
I have a question for you... I'm making a CD with all the programs I had
downloaded in my life and I'm making a small program that is like a list of
the progs., so u can select one prog. and install it. Here is my problem... I
don't want to make a installation package for that small program, I only
want to have a .exe that will be that prog. and when you put the CD in the
CD-ROM a autorun.ini file will load that .exe, but here is the problem, is
there some way that the file use the .dll it need directly from the CD? Or I
have to make something to copy that .dlls to the HD? Any suggestion or
idea??
 THANKS for your time!

0
Comment
Question by:atramb
6 Comments
 
LVL 1

Expert Comment

by:cheryldon
ID: 2655961
Why not make a html page with links to the software?
I did just that on my companys repair cd and it seems to work fine for us.

I just added the file name to autorun and also changed the icon to the store icon.
0
 

Author Comment

by:atramb
ID: 2656064
I don't want to use web pages...
0
 

Accepted Solution

by:
TheMask earned 30 total points
ID: 2657161
You need this dll for certain functions
in your setup programs, thus you must have declared those function as follows:

Private Declare Function MyFunction Lib "My.DLL" () As Long

instead of "My.DLL" use the full path
for example if your CD-Rom drive is G:
then use "G:\My.DLL"

I think this will work fine
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:wsh2
ID: 2657785
To be honest I liked.. Cheryldon's solution.. kewl idea.. <smile>.

Anyhow.. long story short.. you have to use Setup with VB or find another language to get your interface written in.. <sigh>.
0
 

Expert Comment

by:AHadiA
ID: 2657861

if u want to running your small! program  without a setup , your program must be a stand-alone exe file.

if you write program with a language that make stand-alone exe ( like Delphi)  you can do it , otherwise (like Visual Basic) you must make  setup and use it.


The Proposed Answer (TheMask's Answer)
 will not work because while you run your program , CD Drive Letter may be D:
, E:, G: ,....

i had same problem. i wrote an autorun program with VB then i write it with Delphi again and it work fine now.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2659185
Atramb.. wish I could tell you that there is a VB solution to your dilemna.. but I can't.. <sigh>. Your only way to do this efficiently is via  another programming language, such as C++ or Delphi. One other solution would be to search the 3rd party market. Very possibly there is a freeware / shareware solution already available that you could employ without any programming.. <smile>.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now