2009-05-25 123 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等價物。