?
Solved

Use .dlls from CD

Posted on 2000-03-24
6
Medium Priority
?
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:Don Faulkner
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 90 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

770 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