Hi,
I use Microsoft Deployment Tool for my Citric environment. I have a challenge deploying Visual Studio 2019 "SW_ELECTRONIC_Visual_Studio_Pro_2019_MultiLang_MLF_X22-02265"
when i use the powerShell command as I do always for this purpose i get the install shield "Visual Studio Installer - Before you get started......."by using this line command:
Below the script iI use for deployment:
$Vendor = "Microsoft"
$Product = "Visual Studio 2019"
PowerShell Wrapper for MDT, Standalone and Chocolatey Installation - (C)2015 xenappblog.com
Example 1: Start-Process "XenDesktopServerSetup.exe" -ArgumentList $unattendedArgs -Wait -Passthru
Example 2 Powershell: Start-Process powershell.exe -ExecutionPolicy bypass -file $Destination
Example 3 EXE (Always use ' '):
$UnattendedArgs='/qn'
(Start-Process "$PackageName.$InstallerType" $UnattendedArgs -Wait -Passthru).ExitCode
Example 4 MSI (Always use " "):
$UnattendedArgs = "/i $PackageName.$InstallerType ALLUSERS=1 /qn /liewa $LogApp"
(Start-Process msiexec.exe -ArgumentList $UnattendedArgs -Wait -Passthru).ExitCode
Write-Verbose "Setting Arguments" -Verbose
$StartDTM = (Get-Date)
$Vendor="Microsoft"
$Product="Visal Studio 2019"
$PackageName= "SW_ELECTRONIC_Visual_Studio_Pro_2019_MultiLang_MLF_X22-02265"
$InstallerType="exe"
$Version="02265"
$LogPS = "${env:SystemRoot}" + "\Temp\$Vendor $Product $Version PS Wrapper.log"
$LogApp = "${env:SystemRoot}" + "\Temp\$PackageName.log"
$Destination = "${env:ChocoRepository}" + "\$Vendor\$Product\$Version\$packageName.$installerType"
$UnattendedArgs='/s/q'
Start-Transcript $LogPS
CD Files
Write-Verbose "Starting Installation of $Vendor $Product $Version" -Verbose
(Start-Process "$PackageName.$InstallerType" $UnattendedArgs -Wait -Passthru).ExitCode
Write-Verbose "Customization" -Verbose
Write-Verbose "Stop logging" -Verbose
$EndDTM = (Get-Date)
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalSeconds) Seconds" -Verbose
Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalMinutes) Minutes" -Verbose
Stop-Transcript
I have tried many diffrent switches but every time I get the install shield with the answer "before you get started"
Is there anybody who knows solving theis issue??
I have used lot of sites ans help commands but non of them help me:
https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022
https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2019
C:\Users\administrator.FG\AppData\Local\Temp\72373373-eaed-4776-a788-449c357b312c\help.html
I know that the install shiled prove the configuration but it must be possible to do it silient instead of using "continue" button which is not menaning using MDT
Regards
MPN