Announcement

Collapse
No announcement yet.

Automated install troubles

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

    Automated install troubles

    I am trying to script the whole install process, and running into some issues that maybe someone has an answer to. This may be one for the Factory, in fact. Anyway, in the RFO script I successfully "Ran" Revit and waited for the journal to finish using WshShell.Run with the Wait flag at the end set to true. But when running the Revit installer the script just keeps right on going.
    The code I am using is
    Code:
    WshShell.Run "\\psf\Installs\Windows\Revit\2012\Deployment\AdminImage\setup.exe /qb /I \\psf\Installs\Windows\Revit\2012\Deployment\AdminImage\RAC.ini /language en-us", ,True
    For other installers the Wait flag (the True at the end) has worked fine. Anyone gotten this to work with 2012 and have a secret to offer?

    EDIT: some google fu has turned up the fact that even a BAT file using the /WAIT flag doesn't work with the Revit installer, and hasn't at least since 2008. Bummer, cause saving time is SO not overrated. So I am now playing with some goofy loop that will wait until the RAC shortcut lands on the desktop, then proceed. Talk about a kludge.

    Thanks!
    Gordon
    Pragmatic Praxis

    #2
    G,
    Did you ever get this working? I have a fix for ya if you haven't.
    bim cad tech com

    Comment


      #3
      Well, I ended up using a loop to simply monitor the install.exe process every 10 seconds. Once the process ended, I could trust the install had ended. Working so far, but a more graceful solution is always welcome!

      Gordon
      Pragmatic Praxis

      Comment


        #4
        Cool .. this gives me a chance to "show off" as dzatto accused me of last time and to actually be of assistance, .. this is an installer I put together in VB6 (to avoid .net requirements) on assorted machines. It allows the user to select the NAS (by site and response time), then triggers the batch files for the selected product.



        The portions for deployment which may be of interest to you are
        * Ini modification to make the installs portable and
        * The command line to PAUSE a BATCH FILE while the command is running.

        Modify the .ini files created by the deployment and comment out "ADMIN_IMAGE_LOCATION" so the install is now portable, it will run from any server you copy the files to.

        Code:
        [SIZE="2"][INDENT]#==================== Global MSI Properties
        [B]#[/B]ADMIN_IMAGE_LOCATION=\\NAS-PHI\RAC2012_64NW[/INDENT][/SIZE]
        The following command line is called from inside of a batch file, you will notice it is for the most part the same as the "Target" box in the shortcut created by the deployment. The one character you have to add is the "/W" as shown below. The "/W" is a trigger to tell the Autodesk product you are installing to wait to pass control back to the script until it is finished.

        Code:
        [SIZE="2"][INDENT]START "InstRAC201264" /WAIT \\%NASsrv%\RAC2012_64NW\AdminImage\Setup.exe /qb /I [B]/W [/B]\\%NASsrv%\RAC2012_64NW\AdminImage\RAC2012_64NW.ini
        [/INDENT][/SIZE]
        I have every intention of putting up a blog post about putting this whole thing together .. just not sure when .. time is not on my side. Let me know if that helps .. works for us.
        Last edited by joseguia; May 5, 2011, 01:03 AM.
        bim cad tech com

        Comment


          #5
          Gordon, did that help you at all?
          bim cad tech com

          Comment


            #6
            Jose, it did indeed. You should have some rep to that effect as well.
            I have given up on making inifile.xml work in 2012, and am going back to a fully Script based install. I plan to post a discussion here, hopefully by the weekend.

            Thanks!
            Gordon
            Pragmatic Praxis

            Comment


              #7
              Gimme gimme gimme! =)
              Aaron "selfish AND petulant" Maller |P A R A L L A X T E A M | Practice Technology Implementation
              @Web | @Twitter | @LinkedIn | @Email

              Comment


                #8
                Does anyone know how to get a customized KeyboardShortcuts.xml file into a Deployment?
                Preferably without a customized VBS script?
                Seems like there should be a folder in the AdminImage, that eventually gets copied to the User's folder, but I can't find it.
                ..\AdminImage\x64\RAC2012\Program Files\Autodesk\Root\Program\UserDataCache
                would be my best guess.
                Last edited by DaveP; May 16, 2011, 07:17 PM.
                Dave Plumb
                BWBR Architects; St Paul, MN

                CADsplaining: When a BIM rookie tells you how you should have done something.

                Comment


                  #9
                  There is, at
                  ...AdminImage\x64\RAC2012\Program Files\Autodesk\Root\Program\UserDataCache

                  And it contains OmniClassTaxonomy.txt, shxfontmap.txt & UniformatClassifications.txt. And if you modify one of those files, the modified version does indeed get copied to C:\Program Files\Autodesk\Revit Architecture 2012\Program\UserDataCache. HOWEVER, any other files you add to the folder get ignored. It seems that the installer is too stupid to copy the contents, instead the three files are hard coded to be copied from this location. The other proof of that is that if you watch the local folder, these three files get copied at very different times.
                  So yeah, it's there, it's useless. Color me unsurprised.

                  Just to be sure I tested this at home on a non Domain machine with UAC turned off, and still nothing but the three OOTB files get copied on install. I am finding some interesting problems with UAC and Revit install, like not being able to use a script to populate UserDataCache, but the fact that files in the UDC in the deployment don't copy isn't one of them. maybe in 2013 eh?

                  Gordon
                  Pragmatic Praxis

                  Comment


                    #10
                    Revit 2012 Deployment Utility from Autodesk

                    There's a new post up at the Revit Clinic
                    Revit 2012 Network Deployment Utility: Custom Revit.ini Settings and Content Supression
                    http://revitclinic.typepad.com/my_we...t-utility.html

                    Looks like Autodesk has developed a program that will build the inifile.xml for you !
                    Here's the direct download from Autodesk:
                    Revit 2012 Deployment Utility
                    http://usa.autodesk.com/adsk/servlet...linkID=9273944
                    Dave Plumb
                    BWBR Architects; St Paul, MN

                    CADsplaining: When a BIM rookie tells you how you should have done something.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X