Announcement

Collapse
No announcement yet.

run setup file

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

  • run setup file

    friends;
    if i have some setup file like report viewer or .net frame work 4.6 how can i run this file automatically in hidden mode and at the end of installation message box appear tell me all file installed succuffly

  • #2
    You would include these installers as Primer Files in your package, and execute them with proper command line arguments to run silently, if needed. This means, you should not run the installer for .NET Framework 4.6 if this or a newer release is already installed, for example. Should the package needed to be deployed, then you need to check the exit code of said installer and see if it with or without an error. Display the result to the user accordingly.

    Ulrich

    Comment


    • #3
      execute them with proper command line arguments to run silently

      what is command to run installers file silently
      and what code tell me setup is finished good

      thank you very much

      Comment


      • #4
        please answer my question it is important

        Comment


        • #5
          You need to consult the documentation of the installers you wish to run, and see the proper command line arguments required to execute in the manner you want / need. The command line switches depend on the installer, for a passive install, it may be /u, /silent, /qb, /passive or anything else. It may help to run the file with /? as a command line argument, many installers show the allowed options.

          Ulrich

          Comment


          • #6
            thank you for your help and answer done
            i find this command
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\SQLSysClrTypes.msi"), "open", "/quiet", "", SW_SHOWNORMAL);
            excellent

            my question is:
            how do i know the setup is finied to begin another setup

            example if i run this three command
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\SQLSysClrTypes.msi"), "open", "/quiet", "", SW_SHOWNORMAL);
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\sdfsadf.exe"), "open", "/quiet", "", SW_SHOWNORMAL);
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\sadfasdf.exe"), "open", "/quiet", "", SW_SHOWNORMAL);


            how tell the application to wait or execute when first setup is finished

            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\SQLSysClrTypes.msi"), "open", "/quiet", "", SW_SHOWNORMAL);

            wait or when is finished run this
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\sdfsadf.exe"), "open", "/quiet", "", SW_SHOWNORMAL);

            wait or when is finished run this
            Shell.Execute(SessionVar.Expand("%AppFolder%\\Apps \\sdfsadf.exe"), "open", "/quiet", "", SW_SHOWNORMAL);
            ​​​​​​​

            Comment


            • #7
              I strongly suggest that you consult the product documentation for the actions you use in your scripts. Shell.Execute() has a boolean parameter named WaitForReturn, which will halt the script until the program finishes working. Once the process ended, you can check the exit code, and assert that the program ran successfully or not, then proceed accordingly.

              Ulrich

              Comment

              Working...
              X