28 December 2012

AppSense - How to configure an AutoCAD 2013 profile on first launch with Environment Manager

Hi,

I am currently working on a project on with AutoCAD 2013 to automatically preconfigure it on the first launch for a user. So here are the steps how to achieve that with EM.

  1. On an admin workstation start up AutoCAD 2013 and configure all the things you want to have for your users on first launch.
  2. When you are done stop the application and copy the following things to a network share:
    1. %APPDATA%\Autodesk
    2. %LOCALAPPDATA%\Autodesk
    3. HKEY_CURRENT_USER\Software\Autodesk (-> export this key as a .reg file)
  3. Now we are starting with the first time configuration. The first thing is that I am using an If/Else condition to check if there are already configuration settings on a network share for the user. If this is true I am copying back in this settings but if this condition is false then I am firing up the first time configuration settings which are the following.
  4. I am creating an Process started trigger for the AutoCAD 2013 application and configuring the following settings:
                            
    As a short explanation: I am creating the folders under %APPDATA% und %LOCALAPPDATA% and then copying back the folders from the network share where we saved the pre-configured settings from number 2. With the registry we have to do some AppSense "magic" because there is the username of pre-configured session hard-coded into the REG-file, so I am copying the reg-file to a temporary location on the disk, then do a textfile update where I am searching for the false username and replace it with the acutal username with the variable %username% and the end I am doing a reg import to import the changed registry-file for the user.
  5. When you have done that you are able to pre-configure your AutoCAD for all of your users on their first launch.


Grettings

michael.obernberger