Visual Studio 2019

MPN 1 Reputation point
2022-03-04T15:20:08.293+00:00

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

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Developer technologies | Visual Studio | Setup
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2022-03-04T15:46:43.407+00:00

    When the "/s" (silent) switch is used the installer uses the Setup.iss file in the same directory for the responses.

    InstallShield

    0 comments No comments

  2. MPN 1 Reputation point
    2022-03-05T10:52:19.223+00:00

    180158-image.png

    180159-visual-installer.png

    Hi,

    thanks for your answer but many of those line commands I already know but as you see by the image file it does not solve the issue. The link I have attache in my first question all those I have tried but dos'nt help me. If I run the "SW_ELECTRONIC_Visual_Studio_Pro_2019_MultiLang_MLF_X22-02265" from a command prompt with --help at the end I will see which switches are use for this application. But that still dos'nt help me. If I run the application onsite there is no problem but this is purpose because all my appbundles are craetes in PS Script for MDT

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.