So, I am tasked with installing an ancient piece of software called Microsoft Dynamics AX 2012 (the client). I can successfully install with a batch file, but I am really hoping to be able to convert this old thing into something that I can run with PSADT v4.
The batch script line in question goes like this:
"\\onpremservername\Dynamics AX\2012 R2\Setup Files\setup.exe" parmfile="\\onpremservername\Dynamics AX\2012 R2\FWM Defaults x64.txt"
So, I figure it would be easy to get rid of the parmfile altogether and just put those parameters into the ArgumentList, but I am running into issues where PSADT doesnât seem to like the parameters.
I successfully installed it without the parmfile in an admin command prompt window with, just to make sure that it took everything:
setup.exe AcceptLicenseTerms="1" RunMode="custom" ConfigurePrerequisites="1" HideUI="1" OptInCEIP="0" UseMicrosoftUpdate="1" InstallClientUI="1" ClientLanguage="en-US" ClientConfig="1" ClientInstallType="0" ClientConfigFile="C:\Temp\AX PROD - USR.axc" CreateClientDesktopShortcut="1" InstallOfficeAddins="1"
For movng over to PSADT, I threw the AX PROD - USR.axc file into the SupportFiles, and am hoping to just grab it from there, and am using the following with no luck, but I feel like I am formatting something incorrectly:
Start-ADTProcess -FilePath 'setup.exe' -ArgumentList "AcceptLicenseTerms='1' RunMode='custom' ConfigurePrerequisites='1' HideUI='1' OptInCEIP='0' UseMicrosoftUpdate='1' InstallClientUI='1' ClientLanguage='en-US' ClientConfig='1' ClientInstallType='0' ClientConfigFile='$($adtSession.DirSupportFiles)\AX PROD - USR.axc' CreateClientDesktopShortcut='1' InstallOfficeAddins='1'"
Iâve tried a few different combinations so far with no luck, but I am sure it is user error here. For the parmfile that the original batch file points at, it looks like this:
AcceptLicenseTerms = 1
RunMode = custom
ConfigurePrerequisites = 1
HideUI = 1
OptInCEIP = 1
UseMicrosoftUpdate = 1
InstallClientUI = 1
ClientLanguage = en-US
ClientConfig = 1
ClientInstallType = 0
ClientConfigFile= \\onpremserver\AX_Configs\x64\AX PROD - USR.axc
CreateClientDesktopShortcut = 1
InstallOfficeAddins = 1
This installs just fine, but I was reading the Installation Guide, and they state to put the parameters in a format like this:
ClientConfigFile="%Drive%:\<name of configuration file>.axc"
But, I am guessing there is something I am just not wrapping my head around with the arguments, or if I should just use the parmfile somehow.