Skip to main content
Known Participant
January 22, 2014
Question

Finding Illustrator install path

  • January 22, 2014
  • 1 reply
  • 5506 views

I want to create an setup app for user to install AI plugin.

For Windows and MAC, how do I find the Illustrator's installation path?

If there are more than one AI versions stalled what then?

I use Microsoft Visual Studio and XCode

Please help

This topic has been closed for replies.

1 reply

January 23, 2014

Application.path - The file path to the Illustrator.

Known Participant
January 23, 2014

I can't find any useful doc. on Application.path

GetFullPathName seem to be the solution for now anyway

Thanks

Known Participant
January 27, 2014

No, appeal to the COM interface does not necessarily activate illustrator.

About using AutoWrap and other accessing to Illustratot methods and properties from C++ see the link in post #9


I found this link which can be compiled and run, but you have to add L to all text strings in MessageBox and cast (LPCWSTR)buf in the second argument for it to compile under MVS 8. The function AutoWrap is not in a library! it is provided in the example.

http://support.microsoft.com/kb/216686/en-us

But this example will open Exel application and I have not try to suppress Exel from displaying itself on the screen.

Also, what if user has multiple version of Illustrator, how do we resolve it?

I want to target an AI version, for example CS5, find the folder where AI executable is so I can place a few files there, then find the Plugin folder and place my plugin there.

Thank you, but I am still learning all this, it would be good if you can provide sample code that will complile under MVS environment, AutoWrap need an include file which I can't find or is it too much to ask?

This forum is dead quiet, Mr. Patterson must be on vacation, otherwise he would have copy and paste complete compliabled code here, or that he has a better solution and don't want to share because his boss is too competive and don't want to give out a single line of code