Solved

Use .dlls from CD

Posted on 2000-03-24
6
167 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
Comment Utility
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
Comment Utility
I don't want to use web pages...
0
 

Accepted Solution

by:
TheMask earned 30 total points
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 14

Expert Comment

by:wsh2
Comment Utility
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
Comment Utility

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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

744 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