Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Error execution batch file from 16-bit aplication on Windows 32-bit  (Read 8692 times)

0 Members and 1 Guest are viewing this topic.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Error execution batch file from 16-bit aplication on Windows 32-bit
« Reply #15 on: July 28, 2015, 02:07:20 PM »
Your proposed text batch file was successful.

The image shows that the prompt to type exit is being generated by ufand.exe and that is the problem you are asking about, isn't it?


foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Error execution batch file from 16-bit aplication on Windows 32-bit
« Reply #16 on: July 28, 2015, 02:11:36 PM »
There is a massive language barrier

I'm a little bit amused that the screen shot shows that he changed the code I provided him, thinking he knows better,
but his change will break the exact thing that I fixed. :D

trikolka

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Windows 7
    Re: Error execution batch file from 16-bit aplication on Windows 32-bit
    « Reply #17 on: July 28, 2015, 02:20:36 PM »
    Yes.
    Why, if the installer was running a 16-bit program ends generated batch file error and when the installer is run from Windows will be for the correct execution of the batch file.

    Why the same batch file triggered UFAND.EXE crash in one case and in the latter correctly triggers when the end of the 16-bit installer program checks before it begins to generate a batch file.
    « Last Edit: July 28, 2015, 02:36:51 PM by trikolka »

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: Error execution batch file from 16-bit aplication on Windows 32-bit
    « Reply #18 on: July 28, 2015, 02:45:07 PM »
    If you are asking why the prompt to type exit appears in one case and not on 64 bit windows
    then you would have to test *only* the batch file with UFAND.EXE on 64 bit Windows to confirm that
    the prompt does not appear - to rule out a problem with any other part of the process.

    It is plausible that UFAND.EXE could look for an environment variable or some file to determine if a prompt should be printed.

    trikolka

      Topic Starter


      Rookie

      • Experience: Beginner
      • OS: Windows 7
      Re: Error execution batch file from 16-bit aplication on Windows 32-bit
      « Reply #19 on: July 28, 2015, 03:08:00 PM »
      FAND.EXE / UFAND.EXE is a 16-bit programming language (interpret based Pascal) and 64-bit Windows it can be run only under DOSBox.
      Running the installer from the task running under DOSBox is totally correct as run the installer directly from the Windows 64-bit. In 64-bit Windows generates NullSoft script DOSBox configuration file, rather than a batch file.

      The cause of the different behavior of Windows 32-bit in a different manner launching the installer seeking for several weeks, but now the problem of fibers and environment variables do not understand why seeking help from more experienced.

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Error execution batch file from 16-bit aplication on Windows 32-bit
      « Reply #20 on: July 28, 2015, 09:13:02 PM »
      For what it's worth...
      Thee are ways to find the version of Windows from the command lone without the need to crash the code.
      get windows version in a batch file
      -from stackoverflow.com  :)

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Error execution batch file from 16-bit aplication on Windows 32-bit
      « Reply #21 on: July 28, 2015, 10:48:44 PM »
      You've been a little clearer about what happens in this process, finally, but you've said two contradictory things:

      You said that it only runs in dosbox under 64 bit windows, and then said the installer also runs directly from 64 bit Windows, if I interpret your words correctly

      64-bit Windows it can be run only under DOSBox.

      Quote
      under DOSBox is totally correct as run the installer directly from the Windows 64-bit.

      You have been terribly unclear in this thread about the entire process. 

      It's always a good idea to fully describe the process in the very beginning.

      trikolka

        Topic Starter


        Rookie

        • Experience: Beginner
        • OS: Windows 7
        Re: Error execution batch file from 16-bit aplication on Windows 32-bit
        « Reply #22 on: July 29, 2015, 12:08:08 AM »
        Do you understand me correctly:
        1) NullSoft installer is a 32-bit application that can be run on Windows 64-bit directly. Performs unzip, generates startup files to run UFAND.EXE and the 16-bit runtime and the application starts, but under DOSBox.
        2) Application, from which the user installer calls, is another application for 16-bit runtime UFAND.EXE.

        NullSoft script contains a control type Windows and decide if it must generate a configuration for DOSBox and launch UFAND.EXE under DOSBox or whether it is sufficient to generate a batch file and run the batch file UFAND.EXE.
        « Last Edit: July 29, 2015, 12:52:27 AM by trikolka »

        foxidrive



          Specialist
        • Thanked: 268
        • Experience: Experienced
        • OS: Windows 8
        Re: Error execution batch file from 16-bit aplication on Windows 32-bit
        « Reply #23 on: July 29, 2015, 03:26:06 AM »
        Do you understand me correctly:

        I'm only replying to let you know that I'm bowing out of this thread.



        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Error execution batch file from 16-bit aplication on Windows 32-bit
        « Reply #24 on: July 29, 2015, 01:09:14 PM »
        General information about Null Soft
        https://en.wikipedia.org/wiki/Nullsoft

        General Information about DOSBox
        https://en.wikipedia.org/wiki/DOSBox

        Neither of these programs is the best for a given project. Both have limitations. Mostly the lack of commercial support for business applications.

        This forum is for individuals with private issues. Andy commercial users ought to hire a consultant to find he best solution for a specific problem.

        If you are doing a commercial project in a developing country, you should be able to find consultants and programmers in your country that can offer services at a fair price. Also, other users that make use of the same software  you wish to deploy may have some ideas that will help you.