Jump to content

Run a lisp once (add support path)


MastroLube

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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) :D

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...