Solved

Use .dlls from CD

Posted on 2000-03-24
6
171 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: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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

724 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