Solved

checking VBASIC on the system before launch

Posted on 1998-08-20
6
195 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
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: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

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

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

867 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

16 Experts available now in Live!

Get 1:1 Help Now