Announcement

Collapse
No announcement yet.

Text File Actions on Windows XP Professional

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Text File Actions on Windows XP Professional

    Hello. I have run into a problem which i cannot resolve.

    I have built a little test sf6 project which i can send to anyone wanting to see it. This runs fine on Windows 98, but will not run on Windows XP Pro.

    I am trying to do various file operations in which all fail on XP pro. Counting lines in a text file, reading a line in a text file, even reading the entire file into a variable all fail. Counting lines allways returns 1 even if there are more than one line. Reading a line beyond 0 will fail, and reading the entire file returns only a small amount of high ascii garbage.

    As i said, Win 98 does this just fine. This only seems to fail on XP pro.

    Maybe i have found a bug here of some kind. Would someone at IndigoRose try this out and see if you can reproduce this problem.

    Thanks.


  • #2
    Re: Text File Actions on Windows XP Professional

    I forgot to mention how simple my test project is.

    I made a small plain text file with notepad. And included it as a primer file. Then i added a scrolling text dialog box after the welcome screen which has a startup action to load that file into a var. Then the text box dialog shows the contents on that variable. Simple, and flawless on my 98 and me test boxes, but fails on XP Pro.

    I am hoping it just something wrong with my Windows XP Pro computer thats causing this.

    Comment


    • #3
      Re: Text File Actions on Windows XP Professional

      Hi Deano,

      Could you please e-mail me the sample project? Send it to [email protected]

      Thanks.

      mark.
      MSI Factory The Next Generation Intelligent Setup Builder

      Comment


      • #4
        Re: Text File Actions on Windows XP Professional

        On it's way. No longer works on 98 either. I am going to write another one using a different techneque that will install it to the HD first before opening it.

        Comment


        • #5
          Re: Text File Actions on Windows XP Professional

          Hi,

          I have tried both of the installations that you sent me, with my own "Test.txt", and they both functioned properly.

          I have e-mailed you a test file that I would like you to test your installations with.

          I think that there is either something wrong with your Computer or the text file that you are using, especially if it is no longer working on Windows 98.

          mark.
          MSI Factory The Next Generation Intelligent Setup Builder

          Comment


          • #6
            Re: Text File Actions on Windows XP Professional

            Your test file worked perfectly. I think i may have narrowed things down a bit.

            If i use your test file. It works fine. If i generate a file using this below. It fails. I am trying to get a registry dump so i can parse it.

            regedit /e c:\test.txt "HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts"

            Now. Putting that in a batch file and running it on 98 creates a text file that works. Running the same thing on XP Pro the text file that regedit creates don't work.

            Are you aware of any differences in way the 2 regedits create text files? The problem has to be with that.

            Comment


            • #7
              Re: Text File Actions on Windows XP Professional

              Hi,

              The reason that it is failing is because Windows XP exports from the registry in the Unicode format (more info: http://www.unicode.org/ ), and Windows 98 exports it in the ASCII format.

              Setup Factory 6.0 only supports standard ASCII formatted text, and cannot read in Unicode formatted text.

              So what you will have to do is export the information from the registry in the ACSII format. You can do so using one of the following command line options:

              REGEDIT /e:a filename [regpath1]
              or
              REGEDIT /a filename [regpath1]

              I hope that this help Deano.

              mark.
              MSI Factory The Next Generation Intelligent Setup Builder

              Comment


              • #8
                Re: Text File Actions on Windows XP Professional

                Thanks for your time. Problem is indeed solved. Learned something new too.

                Comment


                • #9
                  Re: Text File Actions on Windows XP Professional

                  So did we, Deano.

                  It all became clear when we loaded the file into UltraEdit and viewed it in hex mode..."Aha! It wrote a unicode file."
                  --[[ Indigo Rose Software Developer ]]

                  Comment

                  Working...
                  X