When the "/s" (silent) switch is used the installer uses the Setup.iss file in the same directory for the responses.
Visual Studio 2019
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:
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
2 answers
Sort by: Most helpful
-
-
MPN 1 Reputation point
2022-03-05T10:52:19.223+00:00 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