Home All Groups Group Topic Archive Search About
Author
31 May 2005 12:04 PM
Jim Richards
Hello. I run the PDW and get the dependency list of files needed. Then I run
the PDW and create the Package. I then install the program on my PC but when
I run it I get error #53, File Not Found. When I check the "Support Folder"
in the Package, all the files are there that were called for by the
dependency list. Am I overlooking something? TIA, Jim.

Author
31 May 2005 12:34 PM
JoeO
Make sure you (PDW) installed the files in the same path (where) your app is
looking for them. Another issue is make sure you referenced the path
correctly. Using app.path is much better since a minor typo in coding long
file path name will generate an error.




Show quoteHide quote
"Jim Richards" <JWRicha***@satx.rr.com> wrote in message
news:ToYme.8613$PR6.442@tornado.texas.rr.com...
> Hello. I run the PDW and get the dependency list of files needed. Then I
run
> the PDW and create the Package. I then install the program on my PC but
when
> I run it I get error #53, File Not Found. When I check the "Support
Folder"
> in the Package, all the files are there that were called for by the
> dependency list. Am I overlooking something? TIA, Jim.
>
>
Author
31 May 2005 1:17 PM
Jim Richards
Thank you Joe. You said: "Make sure you (PDW) installed the files in the
same path (where) your app is looking for them."  Just how do you do this, I
didn't know that I had any control where the files are installed? In my
application dirtectory, I have a sub-directory titled "Images" but I noticed
that PDW installed all the files in the support folder TIA, Jim.

Show quoteHide quote
"JoeO" <jp3bless_NoSpam@hotmail.com> wrote in message
news:uqFtj0dZFHA.1412@TK2MSFTNGP12.phx.gbl...
> Make sure you (PDW) installed the files in the same path (where) your app
> is
> looking for them. Another issue is make sure you referenced the path
> correctly. Using app.path is much better since a minor typo in coding long
> file path name will generate an error.
>
>
>
>
> "Jim Richards" <JWRicha***@satx.rr.com> wrote in message
> news:ToYme.8613$PR6.442@tornado.texas.rr.com...
>> Hello. I run the PDW and get the dependency list of files needed. Then I
> run
>> the PDW and create the Package. I then install the program on my PC but
> when
>> I run it I get error #53, File Not Found. When I check the "Support
> Folder"
>> in the Package, all the files are there that were called for by the
>> dependency list. Am I overlooking something? TIA, Jim.
>>
>>
>
>
Author
31 May 2005 1:39 PM
Jan Hyde
"Jim Richards" <JWRicha***@satx.rr.com>'s wild thoughts were
released on Tue, 31 May 2005 13:17:24 GMT bearing the
following fruit:

>Thank you Joe. You said: "Make sure you (PDW) installed the files in the
>same path (where) your app is looking for them."  Just how do you do this, I
>didn't know that I had any control where the files are installed? In my
>application dirtectory, I have a sub-directory titled "Images" but I noticed
>that PDW installed all the files in the support folder TIA, Jim.

You get to set the destination of your files at some stage
during the wizard.

Or you can adjust the paths manually by editing the
setup.lst

Btw the package and deployment doesn't install anythng to
the support folder. This folder is used for generating the
setup program and it will use the files in that directory

J

Show quoteHide quote
>"JoeO" <jp3bless_NoSpam@hotmail.com> wrote in message
>news:uqFtj0dZFHA.1412@TK2MSFTNGP12.phx.gbl...
>> Make sure you (PDW) installed the files in the same path (where) your app
>> is
>> looking for them. Another issue is make sure you referenced the path
>> correctly. Using app.path is much better since a minor typo in coding long
>> file path name will generate an error.
>>
>>
>>
>>
>> "Jim Richards" <JWRicha***@satx.rr.com> wrote in message
>> news:ToYme.8613$PR6.442@tornado.texas.rr.com...
>>> Hello. I run the PDW and get the dependency list of files needed. Then I
>> run
>>> the PDW and create the Package. I then install the program on my PC but
>> when
>>> I run it I get error #53, File Not Found. When I check the "Support
>> Folder"
>>> in the Package, all the files are there that were called for by the
>>> dependency list. Am I overlooking something? TIA, Jim.
>>>
>>>
>>
>>
>


Jan Hyde (VB MVP)

--
Condescending: A prisoner escaping down the wall using a rope. (Archives)

[Abolish the TV Licence - http://www.tvlicensing.biz/]
Author
31 May 2005 2:04 PM
MikeD
"Jim Richards" <JWRicha***@satx.rr.com> wrote in message
news:EtZme.27661$6g3.10470@tornado.texas.rr.com...
> Thank you Joe. You said: "Make sure you (PDW) installed the files in the
> same path (where) your app is looking for them."  Just how do you do this,
> I didn't know that I had any control where the files are installed? In my
> application dirtectory, I have a sub-directory titled "Images" but I
> noticed that PDW installed all the files in the support folder TIA, Jim.

Ignore the Support folder. It has nothing to do with this.  It's just there
so that you can easily create a new .cab file if you need to.  It's not part
of, or has anything else to do with, your distribution package in any way.

Most likely, you are hard-coding one or more paths in your app.  Joe is
suggesting that you use App.Path to get whatever directory your EXE file is
in, and then append "\Images" to that. For example:

If Right$(App.Path) <> "\" Then
    sImageFolder = App.Path & "\Images"
Else
    sImageFolder = App.Path & "Images"
End If

Note that you should make it a habit of always checking if App.Path already
includes a trailing backslash because sometimes it will (if the folder is a
root folder).

Furthermore, when creating your Setup package with PDW, are you changing the
Install Location of these files so that they are installed to an Images
subfolder of whatever folder your app gets installed to?  You have to do
that as well.  This is done at the Install Locations step.  Change the
Install Location for each file to '$(AppPath)\Images'.

--
Mike
Microsoft MVP Visual Basic
Author
31 May 2005 8:13 PM
Jim Richards
I thank you all so much for the help. I found the file that the Error # 53
was referring to. It is  ROE.txt and it contains the 355 records (each with
12 fields) that is loaded at start up. Why PDW overlooked this main file in
both the Dependencey List and Package I don't know. Anyway, I added that
file and put it in the App.Path directory. I changed my code to check if the
program is being run from a root directory or not as you suggested   I also
changed all the locations of the icons so that an Images subdirectory would
be created and installed all the .ico file into it. It works just fine now
and, again, I do appreciate the help. Jim.

Show quoteHide quote
"MikeD" <nob***@nowhere.edu> wrote in message
news:OuzIcmeZFHA.1384@TK2MSFTNGP09.phx.gbl...
>
> "Jim Richards" <JWRicha***@satx.rr.com> wrote in message
> news:EtZme.27661$6g3.10470@tornado.texas.rr.com...
>> Thank you Joe. You said: "Make sure you (PDW) installed the files in the
>> same path (where) your app is looking for them."  Just how do you do
>> this, I didn't know that I had any control where the files are installed?
>> In my application dirtectory, I have a sub-directory titled "Images" but
>> I noticed that PDW installed all the files in the support folder TIA,
>> Jim.
>
> Ignore the Support folder. It has nothing to do with this.  It's just
> there so that you can easily create a new .cab file if you need to.  It's
> not part of, or has anything else to do with, your distribution package in
> any way.
>
> Most likely, you are hard-coding one or more paths in your app.  Joe is
> suggesting that you use App.Path to get whatever directory your EXE file
> is in, and then append "\Images" to that. For example:
>
> If Right$(App.Path) <> "\" Then
>    sImageFolder = App.Path & "\Images"
> Else
>    sImageFolder = App.Path & "Images"
> End If
>
> Note that you should make it a habit of always checking if App.Path
> already includes a trailing backslash because sometimes it will (if the
> folder is a root folder).
>
> Furthermore, when creating your Setup package with PDW, are you changing
> the Install Location of these files so that they are installed to an
> Images subfolder of whatever folder your app gets installed to?  You have
> to do that as well.  This is done at the Install Locations step.  Change
> the Install Location for each file to '$(AppPath)\Images'.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
Author
31 May 2005 8:59 PM
Jeff Johnson [MVP: VB]
"Jim Richards" <JWRicha***@satx.rr.com> wrote in message
news:4A3ne.15185$j51.4664@tornado.texas.rr.com...

>I thank you all so much for the help. I found the file that the Error # 53
>was referring to. It is  ROE.txt and it contains the 355 records (each with
>12 fields) that is loaded at start up. Why PDW overlooked this main file in
>both the Dependencey List and Package I don't know.

PDW doesn't examine your code. It has no idea that you open and read this
file. All it checks are the references and components that are part of your
project (think DLLs and OCXs). Text files will never get automatically
included by PDW, nor will bitmaps, AVIs, PDFs, etc. You have to do so
manually.