Solved

Setup problem

Posted on 2002-06-26
5
143 Views
Last Modified: 2010-05-02
Hi experts:
 I am making an installation package for my application using package and deployment wizard. But i am facing a problem that i want to read and write to some files which
are installed on the client machine i have done amodule in vb which do this function but when i added this module to the setup1.vbp it always raises an error during the installation process " saying file not found" although i am sure the file is found on the client machine.
Is there a reason  for this error?Does the setup1 don't support the sequentail and binary open file methods?
0
Comment
Question by:nermeen
[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
  • 2
5 Comments
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 7110004
Ill help you isolate the error, do this in every function inside the module add this code at the top:

On Error Goto ErrH:


at the sub/function add this code:

errh:
msgbox "Error rasied in PUT FUNCTION/SUB NAME HERE" & vbcrlf & vbcrlf & err.number & vbcrlf & err.description,16,"error"

what that will do if you specify the function name in the error handling code while the program is runnign NOT IN THE IDE MODE you will be able to debug it.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7110126
You may have a problem with the location of the file. Can you show us your OPEN statement? Are you using APP.Path to retreive the current path?
0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 7110223
he makes a good point...i dident even think about that.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7128887
Any progress?
0
 

Author Comment

by:nermeen
ID: 7161739
Sorry for being late in giving the points.
It was realy a problem in the location of the file so I gave the points for emoreau.
Thanks for help.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
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…

696 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