Announcement

Collapse
No announcement yet.

Returning data from a setup to another

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Returning data from a setup to another

    Hi,
    I need to run a setup.exe file (let's call it setup2.exe file) from another setup file (let's call it setup.exefile) during the "before installalling". Both the exe come from Setup Factory.
    Usually i do this using File.Run() with the "WaitForReturn"=true, but this time i need to be able to pass information collected by setup2.exe intoller, to the setup.exe.
    Which is the best practice to do this?
    Thanks in advance.
    Filippo

  • #2
    You mention that you normally use File.Run(), and this would be the proper way here as well. You can pass any command line arguments to the program to be executed. Example:

    Code:
    myprogram.exe /s "my secret argument" /qb
    Code:
    File.Run("myprogram.exe", "/s " .. \""my secret argument\"" .. " /qb", "", SW_SHOWNORMAL, true);
    or

    Code:
    File.Run("myprogram.exe", "/s \"my secret argument\" /qb", "", SW_SHOWNORMAL, true);
    Ulrich

    Comment


    • #3
      Thanks for the answer Ulrich, but i want to know which is the best way to do the contrary. That is: my setup.exe file can run myprogram.exe as you suggested using File.Run. In my case the myprogram.exe is another setup created with setup factory. Myprogram.exe will collect some information from the user and i need to return the info collected by myprogram,exe to the setup.exe which runned the myprogram.exe.
      I wonder which is the best way to do this.
      Thanks in advance

      Comment


      • #4
        On the top of my head, I found three methods to share information between processes. There might be other ways.

        Build and run these installers and test how they work. They won't install anything, nor will there be entries in the Control Panel. Call the "parent.exe", and see the source code.

        Ulrich
        Attached Files

        Comment


        • #5
          Thank you very much!

          Comment

          Working...
          X