MastroLube Posted April 15, 2015 Share Posted April 15, 2015 Hello everyone! I've developed a little program for autocad and compiled an installer with innosetup. I need to add a custom support path for make it works but i don't know how to do it in the right way. I just found this addremovesupportpaths from Lee Mac, but how to run it ONCE? Thanks guys, Dennis Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 15, 2015 Share Posted April 15, 2015 Sorry, what do you mean by 'run it ONCE'? Unless you are evaluating the function within a loop or automatically on startup, it should already only be evaluated once. However, note that the new security features of AutoCAD 2014 onwards will prevent any code from running outside of a trusted support path, hence, the user would need to load the program from a trusted support path before the program could modify the list of support paths - which seems to defeat the purpose of your task. Lee Quote Link to comment Share on other sites More sharing options...
MastroLube Posted April 15, 2015 Author Share Posted April 15, 2015 oh didn't know :/ end user will _appload my lisp and add a trusted path manually, right? That is a bad news Ps. for once I intended only a time and not every time i run the lisp (something that expired when i run it for the first time) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 16, 2015 Share Posted April 16, 2015 Run something once you need to write something somewhere say a Registry entry and check it if exist dont do again. Or just write to a file "Installed" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.