My applications can't find the files on the path written by me!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiseitai2
    New Member
    • Jul 2007
    • 93

    My applications can't find the files on the path written by me!

    Hi everyone. I'm having a litle trouble lately with my applications. The main problem right now is that my applications can find the files on the path given by me, however, after publishing and installing in other computers it can't display the file on the path (example: the source file are in c:\bugfixes.txt , after install on another computer the object that is suppose to display or make use of this file says "page cannot be displayed" or a window appears saying "Unhandled error" (something of that nature). I've also found something strange. If I install the program on the same computer as the source files, the application tells me the size of the program (same as the directory containing the source files) in the add and remove list, however, if installed on the other computers it neither doesn't tell the size nor there appear to be a directory on C:\ where the source files are on my computer and where I would like the application to be installed.

    To get to the point, I need to know if I can make the application to install to the location I want, and if not, I need to know where the application installs to in the other computers so I can move the source files to that location, start debugging from there, and change all paths (quite a bit) to that location.

    My language is Visual Basic 2005 Express Edition.
    My operating system is Windows XP Professional

    I hope you understand what my question is.
  • pureenhanoi
    New Member
    • Mar 2007
    • 175

    #2
    Originally posted by kiseitai2
    Hi everyone. I'm having a litle trouble lately with my applications. The main problem right now is that my applications can find the files on the path given by me, however, after publishing and installing in other computers it can't display the file on the path (example: the source file are in c:\bugfixes.txt , after install on another computer the object that is suppose to display or make use of this file says "page cannot be displayed" or a window appears saying "Unhandled error" (something of that nature). I've also found something strange. If I install the program on the same computer as the source files, the application tells me the size of the program (same as the directory containing the source files) in the add and remove list, however, if installed on the other computers it neither doesn't tell the size nor there appear to be a directory on C:\ where the source files are on my computer and where I would like the application to be installed.

    To get to the point, I need to know if I can make the application to install to the location I want, and if not, I need to know where the application installs to in the other computers so I can move the source files to that location, start debugging from there, and change all paths (quite a bit) to that location.

    My language is Visual Basic 2005 Express Edition.
    My operating system is Windows XP Professional

    I hope you understand what my question is.
    End users install the application to any-where they want. Althrougth, nearly all computers runing Microsoft Windows have C: driver, but some computer have not. To make sure the path always exist, try using relative-path. The application always known where it be installed. The varriable App.Path always return the location where the Exe file was place. Move all your extend-files to the folder: App.Path (or sub-folder of App.Path). It always work well

    Comment

    • kinnu
      New Member
      • Nov 2006
      • 30

      #3
      The working of the application depends on the OS that you are installing and the Setup installer you are using. As the application works fine on your computer its clear that other computers does not have the minimum/required/supported files which is required to run your application. Even they have to be installed on the other computer while you are installing your software. Check for the objects and components that you have used in your computer and make sure that they are available in other computer too.

      Even APP.PATH may also not work if you do not install the required files on the other computer with your application EXE.

      Comment

      • Martin2007
        New Member
        • Jul 2007
        • 21

        #4
        Originally posted by kinnu
        The working of the application depends on the OS that you are installing and the Setup installer you are using. As the application works fine on your computer its clear that other computers does not have the minimum/required/supported files which is required to run your application. Even they have to be installed on the other computer while you are installing your software. Check for the objects and components that you have used in your computer and make sure that they are available in other computer too.

        Even APP.PATH may also not work if you do not install the required files on the other computer with your application EXE.
        If you use the publish option in VB express 2005 you can package the file exe with all it's dependencies, so i do not think that this is the issue, if the setup installed properly (didnt throw an error saying that dependencies could not be found) then the pc you have installed on will have the pre-requisits...

        Maybe it is something to do with windows hiding file extensions (i've had that problem before) i.e. you save as text.txt but XP saves it as text.txt.txt etc...

        Comment

        • kiseitai2
          New Member
          • Jul 2007
          • 93

          #5
          Thanks guys, but I solved the problem by forcing the first form on my project to download the required files from my website (at least for this project makes sense since it's a web browser I was developing beyond a book's scope, so the user must have internet access).

          However, there's another issue really hard to solve by me right now. It is the "403: Forbidden" messages I'm receiving when my project tries to download the updates I made. What's strange is, before the error started to happen, my project did download the updates without trouble (all updates were in .zip format). So, to try to solve this error I changed the compression from .zip to a self-extracted format (.exe). Still, the problem continues and I don't have enough background as to understand how this problem behaves. What I mean is I can't diagnose the situation and think of a way to avoid the error. And yet, the project can stilldownload simple text files.

          My language is Visual Basic 2005 Express Edition
          I'm running Windows XP SP2

          Comment

          Working...