|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Runtime error 53Hello. 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. 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. > > 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. >> >> > > "Jim Richards" <JWRicha***@satx.rr.com>'s wild thoughts were released on Tue, 31 May 2005 13:17:24 GMT bearing thefollowing fruit: >Thank you Joe. You said: "Make sure you (PDW) installed the files in the You get to set the destination of your files at some stage>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. 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 Jan Hyde (VB MVP)>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. >>> >>> >> >> > -- Condescending: A prisoner escaping down the wall using a rope. (Archives) [Abolish the TV Licence - http://www.tvlicensing.biz/] "Jim Richards" <JWRicha***@satx.rr.com> wrote in message Ignore the Support folder. It has nothing to do with this. It's just there 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. 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 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 > > "Jim Richards" <JWRicha***@satx.rr.com> wrote in message PDW doesn't examine your code. It has no idea that you open and read this 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. 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.
Using "Include" Approach for Repetitive Code...
Setting Label zorder above picture control Common dialog control Search box at bottom of screen Control with previous focus Duplicate forms help with passing values from an aspx page? loop Windows Media Player 9 or 10 Playlist in visual basic 6 displaying an image on a vb form from a database |
|||||||||||||||||||||||