Code Red > VB(A)

How create installer for vba project for AutoCad



Hello all

Unfortunately, I did not find information on the network about creating an installer for the VBA project, for AutoCad.
It is unclear which development environment to use to create the installer (InstallShield, Wise Installation System or others).

The project has a dvb extension. It contains the procedure for creating a toolbar with buttons.

How to add, with the help of the installer, to the AutoCad startup macro that creates a menu?
Thanks in advance for the answer.

The contents of the Acad.lsp file:

--- Code: ---(defun S :: STARTUP ()
(command "_VBALOAD" "MyProject.dvb")
(command "_VBARUN" "MyProject.dvb!ThisDrawing.CreateToolbar")
--- End code ---

1. The VBA plugin installer in the main AutoCad directory should find the Acad.lsp file
2. If it is not, create it. And add the above code to download.
3. If there is, open it. Check for added lines of plugin download code.

The path to the dvb file must be specified "C: \ Users \ name_user \ AppData \ Roaming \ Autodesk \ ApplicationPlugins \"


--- Quote ---In AutoCAD 2014, we introduced Trusted Locations (TRUSTEDPATHS).   “Trusted Paths” are in concept a “white list” of locations that the CAD manager can audit and maintain for add-ins and customizations loaded into AutoCAD.  AutoCAD allows signed files to be loaded from outside of this “whitelist” without SECURELOAD warnings, with the exception that AutoCAD 2016 will check if the publisher of the signed app is in the users trusted publisher certificate store.  The “best practice” is to ensure the “trusted locations” are only writable with Administrator permissions.

Applications utilizing the "autoloader" functionality within AutoCAD have the options to install to the following locations:

%ProgramFiles(x86)%\Autodesk\ApplicationPlugins (In 64-bit OS)

In AutoCAD 2014 & 2015 - %ALLUSERSPROFILE%\Autodesk\ApplicationPlugins and %Appdata%\Autodesk\ApplicationPlugins – are by default trusted paths.

With AutoCAD 2016, only the Program files folder (C:\Program Files\Autodesk\ApplicationPlugins and C:\Program Files (x86)\Autodesk\ApplicationPlugins ) is trusted by default.
This means, when you try to load an unsigned add-in from any location outside of the "trusted locations" you will get a warning message like the one shown below. Note that in AutoCAD 2016 the user can choose to “always trust this app” – if they do, the warning will not be triggered again.
--- End quote ---

Have you looked at using Bundle it self loads runs programs on start up etc loads menus.

It lives in Program files\Autodesk\Application plugins uses a xml to tell it what to load etc.

John Kaul (Se7en):
I used NSIS for many years. Here was a few of my templates I used. I largely used the "silent" installer for company internal stuff (within the trust circle) but a more interactive templates for anything I posted on the internet.


[0] Message Index

Go to full version