Solved

exe file

Posted on 2000-02-29
11
222 Views
Last Modified: 2010-05-18
how to make installer?
if i make exe file
when i open thru the other pc , since the destination is not the same, it cannot open the programme
what should i do?
somemore my report writer is crystal rpt
is that everybody used this programme must have visual basic and crystal report?
pls help
how
0
Comment
Question by:keithtbe
  • 5
  • 5
11 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 2569397
VB gives you an installer application.

If you use VB5, its name is Setup Wizard.

If you use VB6, its name is Package & deployment wizard.

Both does the same: collect all files requested by your application (except CR reports) and create an installation kit which you install on user's PC.
0
 

Expert Comment

by:Bebeirken
ID: 2569401
You can use the tool that vb ships with it's installation. It is the Package & Deployment Wizard.
It will do all the work for you. Just make sure that in your program you don't have any paths hardcoded, because they might not exist on the other pc.

If you use app.path instead and put all your data and reports under the same directory as your forms, it sure work fine.

This way you can install the program on another computer without having problems with paths and stuff.
0
 

Author Comment

by:keithtbe
ID: 2571323
thanks alot
but u mean the crystal report cannot work thru the package & deployment wizard
that mean my programme also cannot been open in the other pc . so what should i do?
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2572439
The CR DLL required by your application will be included and installed with your application.

The .rpt will not automatically be recognized. You have to manually add them. During the packaging, there is an option for this.
0
 

Author Comment

by:keithtbe
ID: 2630475
emoreau
what u mean by i have to add the rpt manually
?
i have try to install the program and use the program in the other pc and find out that the rpt was not found
so what should i do?
it is urgent
pls help me
can u pls explain to me what u mean by add manually ?
explain in detail pls
thanks u
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2630550
Copy all the .rpt files (which are your reports) with the application.

There is a step, if you want to, in the PDW that allow you to add any files (like .rpt) to the package so that these files will be installed at the same time that the application will be.
0
 

Author Comment

by:keithtbe
ID: 2631196
u mean that i have to copy the crystal rpt file
like monthly.rpt
yearly.rpt into the file
and what u mean by the application?
where to get?u mean crystal rpt software?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2631236
«u mean that i have to copy the crystal rpt file
like monthly.rpt
yearly.rpt into the file »
These files are not compiled into the application!

«and what u mean by the application? »
YOUR application. Didn't you compile a .exe?

What did you use to build your setup package? In that tool, you have a step to manually add .rpt files.
0
 

Author Comment

by:keithtbe
ID: 2633064
oic
i know what u mean
of course use the package and deployment wizard to make my setup package
ok
u mean i have to add all the month.rpt, yearltly.rpt which is the design to the desired report format of crystal rpt
u mean i have to add that is it?
ok
i will try and see whether it can run or not
0
 

Author Comment

by:keithtbe
ID: 2634546
i try already
i try to add the .rpt file in the package and deploy wizard
but still cannot
so what is the real problem?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2637451
When you call your report from your VB application, how do you call it? You should set your report file name to app.path & "\monthly.rpt"
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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