Solved

How to make VB setup Program

Posted on 1998-08-31
2
505 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

758 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