Solved

checking VBASIC on the system before launch

Posted on 1998-08-20
6
198 Views
Last Modified: 2013-11-14
I have prepared a program in VBASIC 5.0 and I want to distribute it worldwide on CD-ROM. Despite my written warning, I am not sure that the target PC has properly installed the VBASIC RUN TIME.
I want to  authomatically check the installation before launching my program and eventually executing the VBASIC setup before.

(Obviously I can't use a VB program because I've no runtime installed)

Solutions?
claudio
0
Comment
Question by:heart
  • 3
  • 2
6 Comments
 

Author Comment

by:heart
ID: 1430035
Edited text of question
0
 
LVL 14

Accepted Solution

by:
waty earned 50 total points
ID: 1430036
You should use the Wise setup program or the installshield setup program. They both can install VB5 runtime and check if the possible installed runtime are newer or not that the one you want to install.
0
 

Author Comment

by:heart
ID: 1430037
I want that the final user launch always the same program name and I don't want to loose time to load the setup installation only to known that the runtime is already on.

I have in maind somethings like autoexec.bat that could test the existence of valid runtime and launch the setup or my program (a little C program with no runtime, coudn't be?).

And all should be as fast as possible because my program itself is a little bit slow to come up!

Could be that I wasn't enougth clear, eh...  :-)
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 14

Expert Comment

by:waty
ID: 1430038
Once the runtime DLL are installed they should never be deleted.

You should create a list of the needed DLL for your application and write a little C application verifying the existance of those files.

short int ExistFile(szPrintFile)
char szPrintFile[];
{
   DIR *dirp;
   struct dirent *dp;

   dirp = opendir( szPressPrint );
   if readdir (dirp) == NULL
      return 0;
   else
      return 1;
 
   closedir(dirp);

}
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1430039
DOS:

IF EXIST {filespec} {yourprogram}

Your program only fires if the {filespec} is found. Most VB5 can be launched inside a batch.

0
 

Author Comment

by:heart
ID: 1430040
ciao,waty
it's your a very good idea but you made 29 do 30..  :-)
I don't known C language and I don't want to start learning it because I am in a hurry with my application's development.
Could you expand the little code you have provided?
A program that: checks for the existence of a particular .DLL ( I will choose it later), if DLL doesn't exists, it fires a windows program (Microsoft setup one's is good enought) could be very nice.

Thanks you

ps. if you give to me a little explanation to how compile end link to prepare an executable program you gain a 50 point increase eh. eh. eh....

ciao
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you don't know how to downgrade, my instructions below should be helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

821 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