M
Manivannan2618
Guest
Hi Team,
In our Wix project, we are using Custom Action for installing a VSIX file using Visual Studio 2019 Preview vsixinstaller.exe. That VSIX installs some extensions into Visual Studio 2017 and Visual Studio 2019 Preview. In both Visual Studio 2017 and Visual Studio 2019 Preview installed machine, the VSIX file was successfully installed into both the Visual Studio if we provide the below arguments using Command Prompt (Admin mode).
Arguments for vsixinstaller.exe:
/q /l:"ToolboxInstaller.log" "C:\Program Files (x86)\MyApplication\ToolboxInstaller.vsix" /a
But if we use the .msi file(which has custom action containing the above arguments) to install the same VSIX, it was installed only in Visual Studio 2017. It was not installed in Visual Studio 2019 Preview and we got the below error message.
I googled about this issue and found the below link which says that msi calls vsixinstaller.exe that inturns calls another msi.
Failes on VSIX extentions install by vsixinstaller command from Install Shield. - Developer Community
If this was the case, how it was installed in Visual Studio 2017? Can anyone let me know why the VSIX was not installed in Visual Studio 2019 Preview through msi?
Note:
In Visual Studio 2017 and Visual Studio 2019 alone installed machine, this issue was not occurred. It occurs only in both Visual Studio installed machines.
Error Message:
1/30/2019 5:37:47 PM - System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.Install()
at Microsoft.VisualStudio.ExtensionManager.ExtensionBatchEngine.Execute(List`1 installableExtensions, Version targetVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BatchEngineInstall(List`1 installableExtensions, InstallFlags installFlags, Version targetVsVersion)
at VSIXInstaller.BatchSetupEngineInstaller.Install(SupportedVSSKU sku, List`1 extensionsToInstall, InstallFlags installFlags)
at VSIXInstaller.BatchSetupEngineInstaller.BatchInstall(IReadOnlyList`1 targetSkus, IEnumerable`1 extensionsToInstall)
at VSIXInstaller.App.OnStartup(StartupEventArgs e)
---> (Inner Exception #0) System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---
*******************************************************************
Manifest file:
*****************
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0]" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Enterprise" />
</Installation>
<Dependencies>
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" drojectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
Continue reading...
In our Wix project, we are using Custom Action for installing a VSIX file using Visual Studio 2019 Preview vsixinstaller.exe. That VSIX installs some extensions into Visual Studio 2017 and Visual Studio 2019 Preview. In both Visual Studio 2017 and Visual Studio 2019 Preview installed machine, the VSIX file was successfully installed into both the Visual Studio if we provide the below arguments using Command Prompt (Admin mode).
Arguments for vsixinstaller.exe:
/q /l:"ToolboxInstaller.log" "C:\Program Files (x86)\MyApplication\ToolboxInstaller.vsix" /a
But if we use the .msi file(which has custom action containing the above arguments) to install the same VSIX, it was installed only in Visual Studio 2017. It was not installed in Visual Studio 2019 Preview and we got the below error message.
I googled about this issue and found the below link which says that msi calls vsixinstaller.exe that inturns calls another msi.
Failes on VSIX extentions install by vsixinstaller command from Install Shield. - Developer Community
If this was the case, how it was installed in Visual Studio 2017? Can anyone let me know why the VSIX was not installed in Visual Studio 2019 Preview through msi?
Note:
In Visual Studio 2017 and Visual Studio 2019 alone installed machine, this issue was not occurred. It occurs only in both Visual Studio installed machines.
Error Message:
1/30/2019 5:37:47 PM - System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.Install()
at Microsoft.VisualStudio.ExtensionManager.ExtensionBatchEngine.Execute(List`1 installableExtensions, Version targetVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BatchEngineInstall(List`1 installableExtensions, InstallFlags installFlags, Version targetVsVersion)
at VSIXInstaller.BatchSetupEngineInstaller.Install(SupportedVSSKU sku, List`1 extensionsToInstall, InstallFlags installFlags)
at VSIXInstaller.BatchSetupEngineInstaller.BatchInstall(IReadOnlyList`1 targetSkus, IEnumerable`1 extensionsToInstall)
at VSIXInstaller.App.OnStartup(StartupEventArgs e)
---> (Inner Exception #0) System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties)
at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---
*******************************************************************
Manifest file:
*****************
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0]" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,17.0]" Id="Microsoft.VisualStudio.Enterprise" />
</Installation>
<Dependencies>
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" drojectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
Continue reading...