Link to home
Start Free TrialLog in
Avatar of nermeen
nermeen

asked on

Setup problem

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?
Avatar of BrianGEFF719
BrianGEFF719
Flag of United States of America image

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.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
he makes a good point...i dident even think about that.
Any progress?
Avatar of nermeen
nermeen

ASKER

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.