I'm installing SQL Server Data Tools (among other things) with a PowerShell script.
The relevant part is a simple:
& "\\mynetworkpath\installer.exe"
or
Start-Process "\\mynetworkpath\installer.exe"
if I feel like getting fancy with install arguments.
The problem is the first thing that pops up says "Choose Directory For Extracted Files"
When I run my script it picks an install location,
C:\Windows\SysWOW64\SSDTBI_x86_ENU\x86\setup\
What I want is for it to generate an install location like during a manual install. If I just right click the installer and run as admin it generates:
E:\e369a6f811046fa831f81e12\
That directory name is different every time I install though.