Solved

How to make VB setup Program

Posted on 1998-08-31
2
515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

739 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