Announcement

Collapse
No announcement yet.

Installing phoenixFd quietly by command line

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

  • Installing phoenixFd quietly by command line

    Hi,

    i would like to know if it's possible to install PhoenixFD quietly by command line. For example I used this command line to install 3ds max sp5 and it was so fast that now i want to install everything that way.

    pushd \\ComputerNam\softwares\3D\3DS MAX\2014\updates
    msiexec /update 3dsMax2014_SP5.msp /quiet /l* update_sp5.log

    Is it possible to add arguments to phoenixFD_adv_21010_max2014_vray_30_x64.exe that will make it install with my prefs and quietly and log the result in a file?

    __________________________________________
    www.strob.net

    Explosion & smoke I did with PhoenixFD
    Little Antman
    See Iron Baby and other of my models on Turbosquid!
    Some RnD involving PhoenixFD

  • #2
    Yup, since we have to install phoenix and vray a thousand times a day, some of us use a bat file for the purpose. The installer also needs a config file with the options:

    install.bat:

    %1 -configFile="config.xml" -quiet=0
    pause

    config.xml:

    <DefValues>
    <Value Name="OPEN_README" DataType="value">0</Value>
    <Value Name="OPEN_CHANGELOG" DataType="value">0</Value>
    <Value Name="VISIT_SPOT3D" DataType="value">0</Value>
    <Value Name="GUI_INSTALL" DataType="value">0</Value>
    <Value Name="INSTALL_WIBU" DataType="value">0</Value>
    <Value Name="REMOTE_LICENSE" DataType="value">1</Value>
    </DefValues>

    So, you drop the exe onto the bat file, and profit! This config works if you are using a license server. If you're using a dongle, reverse INSTALL_WIBU to 1 and REMOTE_LICENSE to 0
    Last edited by Svetlin.Nikolov; 28-03-2014, 08:45 AM.
    Svetlin Nikolov, Ex Lead Phoenix developer

    Comment


    • #3
      To log it to a file, you might create.. another bat file!

      call install.bat:
      install.bat %1 >> install_log.txt

      and you have to remove the "pause" from the first one
      Svetlin Nikolov, Ex Lead Phoenix developer

      Comment


      • #4
        Hi,

        We do not use the Microsoft installer, so you will not be able to use the exact same command line as you used for installing 3DS Max. However our installer application has functionality to achieve the result you want.
        First you need to generate a template configuration file. This is automatically done by running the installer from the command line like this:

        phoenixFD_adv_21010_max2014_vray_30_x64.exe -gui=0

        The installation should start in console mode and you must manually input all the necessary fields (install directory, license method, etc - the installer will ask you for everything important). After the installation is complete a configuration xml file will be generated in the directory of the installer - config.xml. Afterwards you can easily perform the installation again or on another machine (using the same configuration) by the command line:

        phoenixFD_adv_21010_max2014_vray_30_x64.exe -configFile="config.xml"

        This will start the installer with almost no output. If you want the output you can add the argument -quiet=0 to the command. To save it in file you can use the normal command line pipeline, therefore for installation with output to file you need to call the installer with:

        phoenixFD_adv_21010_max2014_vray_30_x64.exe -configFile="config.xml" -quiet=0 > output.txt

        You can append to the file (rather than replacing its contents) by using '>>' instead of '>' for the pipe.
        There is an easier way to install with default settings (default folder, etc) by issuing:

        phoenixFD_adv_21010_max2014_vray_30_x64.exe -gui=0 -auto

        The output can be controlled by -quiet=1/0.
        All this commands are valid for the nightly builds after 21 March 2014. Prior to that date you can use only the method with the configuration file and with the command line:

        phoenixFD_adv_21010_max2014_vray_30_x64.exe -gui=0 -configFile="config.xml" -quiet=1

        P.S.: The config file is easily readable and can be edited on hand if you want.

        I hope this information helps you with your workflow. Don't hesitate to ask more questions if you need more help.
        Deyan Hadzhiev
        Developer
        chaos.com

        Comment


        • #5
          Cool thans I will try that.

          And what's the value for render slave install only?

          I also want to put all this in a single bat that I can run at once on all my computer on my farm. I use deadline where I select all my node and right-click:"remote control"=>"execute command".

          __________________________________________
          www.strob.net

          Explosion & smoke I did with PhoenixFD
          Little Antman
          See Iron Baby and other of my models on Turbosquid!
          Some RnD involving PhoenixFD

          Comment


          • #6
            The render slave installation is achieved by this variable and value in the config.xml:

            <Value Name="INSTALL_TYPE" DataType="value">1</Value>

            For the bat installation you can use something like this:

            %1 -configFile="config.xml" -quiet=0 >> %2

            and this will reduce the installation to:

            <bat_file_name>.bat phoenixFD_adv_21010_max2014_vray_30_x64.exe <output_file>
            provided you have the cofnig.xml file
            Last edited by deyan.hadzhiev; 28-03-2014, 09:33 AM.
            Deyan Hadzhiev
            Developer
            chaos.com

            Comment


            • #7
              Here is my bat file:


              net stop VRayRTSpawner
              net stop "VRaySpawner 2014"
              pushd \\someComputerName\softwares\3D\3DS MAX PLUGZ\@@@2014
              phoenixFD_adv_21010_max2014_vray_30_x64.exe -configFile="\\someComputerName\softwares\3D\3DS MAX PLUGZ\@@@2014\bat pour installer\config.xml"
              "C:\Program Files\Autodesk\3ds Max 2014\vrayspawner2014.exe" -service
              net start VRayRTSpawner
              net start "VRaySpawner 2014"



              the only thing missing is the loggging. "-/l* %computername%update_sp5.log" does not work...

              __________________________________________
              www.strob.net

              Explosion & smoke I did with PhoenixFD
              Little Antman
              See Iron Baby and other of my models on Turbosquid!
              Some RnD involving PhoenixFD

              Comment


              • #8
                ok thank Deyan and Svetlin!

                LOL! I can't believe it! with this bat file and Deadline, I installed phoenix on ten computers in 1 second! I used to take like 30 minutes to do it manually!
                Last edited by jstrob; 28-03-2014, 09:51 AM.

                __________________________________________
                www.strob.net

                Explosion & smoke I did with PhoenixFD
                Little Antman
                See Iron Baby and other of my models on Turbosquid!
                Some RnD involving PhoenixFD

                Comment


                • #9
                  Yay, nice! We gotta put this in the help file
                  Svetlin Nikolov, Ex Lead Phoenix developer

                  Comment


                  • #10
                    Sure! And in the installation pdf.

                    __________________________________________
                    www.strob.net

                    Explosion & smoke I did with PhoenixFD
                    Little Antman
                    See Iron Baby and other of my models on Turbosquid!
                    Some RnD involving PhoenixFD

                    Comment


                    • #11
                      Great tip, thanks
                      Originally posted by jstrob View Post
                      Hi,

                      i would like to know if it's possible to install PhoenixFD quietly by command line. For example I used this command line to install 3ds max sp5 and it was so fast that now i want to install everything that way.

                      pushd \\ComputerNam\softwares\3D\3DS MAX\2014\updates
                      msiexec /update 3dsMax2014_SP5.msp /quiet /l* update_sp5.log

                      Is it possible to add arguments to phoenixFD_adv_21010_max2014_vray_30_x64.exe that will make it install with my prefs and quietly and log the result in a file?

                      Comment

                      Working...
                      X