I see a few problems, maybe just typos while you were typing up your post.
You have a space between your dash/hyphen and the Path switch.
You close your quotes after INSTALLDIR and then try to close again after Autodesk
Your %programfiles% variable is missing the backslash to separate it from Autodesk
To help with keeping quotes straight, I would suggest a couple of things:
Use single quotes whenever possible. Single quotes are used for strings that contain nothing that needs to be resolved, where double quotes are called for when they do. -Path 'Setup.exe' will work because it’s nothing but a string.
But if you include the $dirFiles variable, you’d need double quotes. -Path "$dirFiles\Setup.exe" because the variable needs to be resolved at runtime.
Be careful when copying/pasting quotes. You may end up with ‘smart quotes’ that Powershell no likey.
Assuming your syntax is correct regarding what Revit wants for install switches, this looks better:
O yea, some miss typing there from my end there
You’r examples all seem valid but the installer refuses to actually read the installdir part unless its written exactly like this: /t /qb /language en-us /c RLT: INSTALLDIR="%PROGRAMFILES%\Autodesk"
Also thank you for the explanation on double and single quotes, Very helpfull
I don’t recall details now, but as you can see, Revit’s setup process provided a method to generate an INI file that contained the bulk of my install parameters. The INI file is 1131 lines long and contains almost everything (install path, log path, license details, co-requisites, AddOn install order, etc). Maybe Revit LT provides the same functionality?
For some unknown reason i havent dived into the variable %programfiles% resolved to Program Files(x86)
Got around that by “hardcoding” the install path. Application now installs as it should.