Hello to all,
until now I've always used ACADINST.exe to realize my self-installing setup packages for my application lisp:
http://www.afralisp.net/archive/lisp/acadinst1.htm
Now there AutoCAD2014 which introduced some variables that affect proper operation completely automatic: TRUSTEDPATHS and SECURELOAD.
How do you?
Is there a way to add search paths, modify variables, load menu, set the automatic start of a *.Lsp or *.Fas, during installation of the application, without opening AutoCAD?
Thanks in advance.
In my opinion you should never add an application folder to the user's support path. Your application installer knows where the application is installed, and it can write that in your application's registry key. Your application's code can use what the installer wrote in the registry to find it's files.
I'm not familiar with ACADINST.exe, but the most robust way to load your application is via registry demand loading. This can also be setup by your installer, but it requires some work to enumerate all installed AutoCAD instances in the registry and setup demand load registry keys for all of them. If your application is only AutoLISP, you can use LspLoad.zip from my Freebies page.
As you mention SECURELOAD in this thread, I'm posting this white paper for you guys to checkout http://adndevblog.typepad.com/autocad/2013/07/all-you-need-to-know-about-autocad-secureload-au.html