Change an Autodesk Exchange App installer from Single User to an All Users install

By default all Autodesk Exchange App installers are built to deploy the App bundles to the %APPDATA%\Autodesk\ApplicationPlugin folder. This folder is specifically a Single User install location, which means that if any other user logs onto the machine the App will need to be reinstalled for that user to be available, to that user.

The static install folder design (folders that cannot be changed) was specifically designed to help developers bypass the 2nd stage installer issues that comes with installing plugins, particularly difficult in AutoCAD, for the All User installation scenario. The way this was handled was to include a different static folder designed to support loading apps for the All User installation model, this folder can be found in the %PROGRAMDATA%\Autodesk\ApplicationPlugins folder.

The question is, how do I change an Exchange App Installer from being a Single User to an All User installer…

The answer – It’s all about changing the static folder installation path from the %APPDATA%\Autodesk\ApplicationPlugin (Single User) to %PROGRAMDATA%\Autodesk\ApplicationPlugins (All User). There are two ways that this can be achieved:

1) From a DOS command window:

c:\>msiexec /i MyExhangeApp.msi INSTALLDIR=C:\ProgramData\Autodesk\ApplicationPlugins AUTODESK=C:\ProgramData\Autodesk

2) You can edit the MSI directly using ORCA.exe and change the Directory Table->AUTODESK from AppDataFolder to CommonAppDataFolder


Comments

3 responses to “Change an Autodesk Exchange App installer from Single User to an All Users install”

  1. Dave Plumb Avatar
    Dave Plumb

    I don’t understand how your method #1 is supposed to work.
    Where (or when) do I enter the INSTALLDIR and AUTODESK lines?
    Do I need to run the second and third lines before the msi?
    Are those DOS SET commands?
    When I type in the first line (msiexec /i myapp.msi) it just runs the installer.

  2. That’s all one line.

  3. Dave Plumb Avatar
    Dave Plumb

    Sometimes its the obvious solution.
    That worked perfectly.
    As long as I’m posting, I’ll add something else that’s hopefully useful:
    Add
    /passive
    to the end of the msiexec string to get it to run silently.
    AFTER thorough testing, of course!

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading