Solved

How to make VB setup Program

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

717 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