Solved

How to make VB setup Program

Posted on 1998-08-31
2
507 Views
Last Modified: 2012-05-04
I have one VB application with crystal reports. I want to make a setup file so that I can run this file on different machines by doubleclicking the setup file.

I want my application (which calls Crystal Reports) to be independent of path. I would like following steps for the setup file :
1) On doubleclicking, setup program must ask the path where the application is to be stored
2) copy VBapplicationexe file (say 'Myappl.exe') and crystal report files ( say '*.rpt')
3) update Autoexec.bat and append path with the Path from step 1.

I will appreciate an early reply
Thanks


0
Comment
Question by:rolee
2 Comments
 

Expert Comment

by:rikonigsberg
ID: 1432083
Why do you want to append the path with your app? What do you expect to achieve by doing that?

RK

0
 
LVL 1

Accepted Solution

by:
jf26028 earned 40 total points
ID: 1432084
1)  The easiest way to allow the users to enter the path of the executeable is to give them a standard Drive/Folder/File menu and let them browse for the path.  

2) Use the following code to copy the files if the install files are in the same path location as the executeable.

    FileCopy app.path & \Myapp1.exe", PathFromForm1 & "\Myapp1.exe"
   
You can use this code to copy all of your reports files, but it doesnt accept wildcards (*.*).

3) Use this code...

Open "c:\autoexec.bat" for append as #1
print #1, "path = %path%;" & PathFromForm1
close #1

This will update the path to include your app path.
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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
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…

862 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

23 Experts available now in Live!

Get 1:1 Help Now