How to get the path of the RoleTailored Client

sebastian_thies
Member Posts: 3
Hi i know it's easy to get the path of the Classic Client with APPLICATIONPATH. But if you use this with RTC it returns the path of the Service-Tier. So how to get the path of the client?
0
Comments
-
You need the installation path of your rtc client?
Maybe .net interop helps: http://msdn.microsoft.com/en-us/library/aa457089.aspx
Be sure to set Property RunOnClient of your DotNet variable "Assembly" to True.GetClientPath() : Text EXIT(Path.GetDirectoryName( Assembly.GetExecutingAssembly().GetName().CodeBase ));
Variables:
Name DataType Subtype Length
Assembly DotNet System.Reflection.Assembly.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Path DotNet System.IO.Path.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'0 -
Thanks for your reply, that works well.
I was thinking about it a while and then I found my own working solution:
Variables
Name____DataType___Subtype_______Length
WSH_____Automation_'Windows Script Host Object Model'.WshShell
RegValues___Text____________________1024
CodeCREATE(WSH,FALSE,TRUE); //create automation on client RegValue := WSH.RegRead('HKEY_CLASSES_ROOT\DYNAMICSNAV\Shell\Open\Command\'); //find registrykey for navisionlink RegValue := COPYSTR(RegValue,1,STRLEN(RegValue)-5); // delete "%1" from text Exit(RegValue); // return path of the exe-file
0 -
[Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
deV.ch - Very clever, I will steal that. =D>
Thanks a lot!!Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions