2009-05-25 121 views
1

我需要启动具有不同配置的MS Dynamics AX 2009客户端才能连接到不同的AOS。
为了实现这一点,我将客户端配置导出到axc文件中,该文件运行良好。
现在我想为我们网络中的所有客户端共享此文件,但它不适用于某些因为某些有趣的原因,Dynamics AX二进制文件的路径硬编码到客户端配置文件中。 因此,在一台计算机上,AX客户端安装在C:\ Program Files文件(x86)\ Microsoft Dynamics AX \ 50 \ Client \ Bin中,位于C:\ Program Files \ Microsoft Dynamics AX \ 50 \ Client \ Bin中,该文件不起作用,因为axc中的路径与真实路径不同。Dynamics AX 2009客户端配置文件启动路径问题

如何创建一个在每台客户端计算机上工作的axc文件,以便我可以使用共享配置文件?

回答

3

我发现的唯一的解决方法是在一些自定义路径的每台计算机上安装客户端,如c:\斧头,而不是将其安装到的程序文件。

丑。我真的希望微软能够在未来的版本中解决这个问题。

1

只要把两个路径:

directory,Text,C:\Program Files\Microsoft Dynamics AX\50\Client 
directory,Text,C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin 
+0

好主意,但它不起作用 - 它只会启动配置文件中第一个路径。 – Sam 2009-05-25 12:40:44

1

怎么样

C:\ PROGRA〜1 \ Microsoft Dynamics AX的\ 50 \客户

+0

这个黑客行不通,因为在x64系统上,“Program Files(x86)”的路径通常是Progra〜2,而不是Progra〜1 - 它是第二个创建的路径,而不是第一个。 – Sam 2009-05-25 13:27:11

+0

请忽略这个 progra〜1分指向“程序文件”而不是“程序文件(x86)” – 2009-05-25 13:28:10

2

如果你成功地部署注册表项,以客户,那么解决方案是这样的:

  1. 导出(通常它们可以在HKCU \ Software \ Microsoft \ Dynamics \ 5.0 \ Configuration中找到),将其导入到目标计算机上(在域登录期间等等)
  2. 创建一个lnk到Ax32应用,并提供命令行参数:-regconfig = <typeTheConfigNameHere>
    例如:Ax32.exe -regconfig = LIVE


现在我键入此,我意识到这个解决方案的另外的问题,这又是那些路径......然而,创建和维护lnk文件的两个版本很容易(一个用于32位,另一个用于64位环境)...并且注册表是sa我。 希望它有帮助!

2

我正在使用我的开发环境设置的以下结构,我想这就是你要找的。

下面是例子。


服务器名:SRV01 在该服务器为前创建文件夹。 AX5并共享该文件夹。 文件夹结构:

AX5 
--Application 
----Appl 
------Application_1 <- here is your *.aod file(-s) 
------Application_2 <- here is your *.aod file(-s) 

--AXC 
------Application_1 
-------- usr.axc configuration file <- save your configuration here 
-------- cus.axc configuration file <- save your configuration here 
------Application_2 
-------- *.axc configuration file <- save your configuration here 

--Client <- here is your Ax32.exe. 
--Server <- here is your Ax32Serv.exe 
--StartUp 
------Application_1 
-------- usr.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\usr.axc 
-------- cus.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\cus.axc 
------Application_2 
-------- *.bat with one line. In this case this would be \\SRV01\AX5\Client\Bin\Ax32.exe \\SRV01\AX5\AXC\Application_1\*.axc 

这里是例子* .axc文件

Configuration export file for Dynamics 
Formatversion: 1 
Configuration: usr.axc 
    logdir,Text,C:\Users\Public\Microsoft\Dynamics Ax\Log\ <------------- change this but it's up to you 
    company,Text, 
    startupcmd,Text, 
    extracmdline,Text, 
    startupmsg,Text, 
    aos2,Text,[email protected]:2712 <------------- change this 
    aosencryption,Text,1 
    xppdebug,Text,1 
    globalbreakpoints,Int,1 
    aol,Text,usr 
    aolcode,Text, 
    traceeventsenabled,Text,1 
    tracestart,Int,0 
    tracexppmethodcalldepth,Text,3 
    client,Text,thin 
    _clientmode,Int,0 
    sql,Int,1 
    native,Int,0 
    hassqlpwd,Int,0 
    localappldoc,Int,0 
    localsysdoc,Int,0 
    applshare,Int,1 
    applexclusive,Int,0 
    hascompwd,Int,0 
    hasserveridletimeout,Int,0 
    allowunauth,Int,0 
    windowsauth,Text,1 
    sqloraclefirstrowsfix,Text,0 
    hasocipwd,Int,0 
    dbunicodeenabled,Text,1 
    cachesynctime,Text, 
    caslevel,Text,enable 
    language,Text, 
    _clientadname,Text, 
    aos,Text, 
    application,Text, 
    bindir,Text,\\SRV01\AX5\Client\Bin <------------- change this 
    broadcast,Text, 
    compwd,Text, 
    connectionidletimeout,Text, 
    createdsn,Text, 
    database,Text,AXDB <------------- change this 
    datadir,Text,\\SRV01\AX5\Client\Data <------------- change this 
    dbcli,Text,odbc 
    dbserver,Text,SRV01 <------------- change this 
    directory,Text,\\SRV01\AX5\Client <------------- change this 
    dsn,Text, 
    exposeserverprinters,Int,0 
    fetchahead,Text, 
    haswarnings,Int,0 
    hint,Text, 
    ignoredatasourceindex,Text,0 
    installationlanguage,Text,EN-US 
    internet,Text,SRV01 
    log,Text, 
    newconnectionretrycount,Text, 
    newconnectionretrydelayms,Text, 
    ociconnectservice,Text,1 
    ocidbid,Text, 
    ocihost,Text, 
    ociservice,Text, 
    ocitcpipport,Text,1521 
    opencursors,Text, 
    port,Text, 
    preloadthresholdmsec,Text, 
    preloadthresholdrecords,Text, 
    querytimelimit,Text, 
    retry,Text, 
    serveridletimeout,Text, 
    servermask,Text,2712 <------------- change this 
    sqlbuffer,Text, 
    sqlcomplexliterals,Text,1 
    sqlformliterals,Text,1 
    sqlpwd,Text, 
    sqltrace,Text,0 
    sqluser,Text, 
    user,Text, 
    warnings,Text, 
    tracemaxfilesize,Text,10000 
    tracebuffersize,Text,1024 
    tracemaxbuffers,Text,120 
    traceminbuffers,Text,30 
    traceallowclient,Int,0 

重要提示:每个客户端PC上安装AX 2009客户端。在安装过程中,您会被要求声明一个AOS--声明任何值。这是本地安装的AX 2009客户端所需的,因为它使用了几个不在GAC中的其他程序集。

最后 - 如何启动AX?只需运行一个* .bat文件。 希望我很清楚,真希望我明白你要找的))

3

您可以使用NTFS中的联结点将32位客户端上的“Program Files(x86)”指向“Program Files”。联结点基本上是UNIX符号链接的Windows等价物。