Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: set addins using dxl
Topic Summary:
Created On: 19-Mar-2008 11:32
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Gordon Woods, on Wednesday, March 19, 2008 2:20 PM

Answer:
Both Addins and ProjectAddins are Registry settings.

HKEY_LOCAL_MACHINE -> SOFTWARE -> Telelogic -> DOORS -> 8.1 -> Config

You can use
string setRegistry(string keyName,
string valueName,
{string|int} value)
i.e
string keyName = "HKEY_LOCAL_MACHINE \\SOFTWARE\\Telelogic\\DOORS\\8.1\\Config"
string valueName = "Addins"
string value = " your location of the addins directory as C:\\..."

see dxl manual/help for usage

note that the addins can be multiple use a ";" to separate the lists in the value string.

You will need to do some serious error checking and I also suggest reading back the values using getRegistry to check that the operation was successful.

I have only changed the registry manually so good luck !

-------------
Gordon Woods
BAE Systems (Operations) Ltd
gordon.woods@incose.org
 19-Mar-2008 11:32
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

Hi,
does anybody know if it is possible to set the environment variable 'addins' with dxl?
thanks
Karl
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 13:19
User is offline View Users Profile Print this message


Gordon Woods

Posts: 35
Joined: 2-Mar-2007

Answer Answer
Both Addins and ProjectAddins are Registry settings.

HKEY_LOCAL_MACHINE -> SOFTWARE -> Telelogic -> DOORS -> 8.1 -> Config

You can use
string setRegistry(string keyName,
string valueName,
{string|int} value)
i.e
string keyName = "HKEY_LOCAL_MACHINE \\SOFTWARE\\Telelogic\\DOORS\\8.1\\Config"
string valueName = "Addins"
string value = " your location of the addins directory as C:\\..."

see dxl manual/help for usage

note that the addins can be multiple use a ";" to separate the lists in the value string.

You will need to do some serious error checking and I also suggest reading back the values using getRegistry to check that the operation was successful.

I have only changed the registry manually so good luck !

-------------
Gordon Woods
BAE Systems (Operations) Ltd
gordon.woods@incose.org
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 14:20
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

Thanks Gordon.
Works great.
only, why did I not find this in the manual myself ..
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 17:28
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I had a slightely different approach, setting environment variables 'addins', which sets the corresponding value in the registry's HKEY_CURRENT_USER area (for the current user only), rather than the HKEY_LOCAL_MACHINE area (for all users of the client). That's now about manditory since modern evil IT departments are removing rights to modify the later area.

setting 'addins' and 'project' should change it for the next instance of DOORS. 'DOORSADDINS' and "DOORSPROJECTADDINS' sets it for the current instance. The next time you open a module you'll see it, but changing DOORSPROJECTADDINS won't have an actual effect on the current DOORS.

Note that DOORSADDINS and DOORSPROJECTADDINS must be in upper case.

Notice the attached script works for all versions of DOORS since it doesn't know about the 'v8.1' area in the registry. If you change versions you'll need to re-run the script.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.