Showing results for PowerShell Archives - Visual Studio Setup

Mar 11, 2017
0
0

vswhere now searches older versions of Visual Studio

Heath Stewart
Heath Stewart

One of the top requests I kept hearing for vswhere was to also search older versions of Visual Studio. You can now do that starting with the latest release. Even if you don't have Visual Studio 2017 or newer installed - which means the query API is not even registered - you can use vswhere to find the installation root directory for Visual Studi...

Visual StudioVS2017VS2012
Jan 25, 2017
0
0

Visual Studio Setup PowerShell Module Available

Heath Stewart
Heath Stewart

To make the new setup configuration APIs more accessible to developers, we have published the "VSSetup" PowerShell module on powershellgallery.com, making it quick and easy to install. If you have Windows Management Framework (WMF) 5.0 or newer - installed with Windows 10 - or PowerShellGet for PowerShell 3.0 or 4.0, you can run the following from...

Visual StudioDevelopmentVS2017
Dec 18, 2015
0
0

Get the Windows Installer PowerShell Module easier with WMF 5.0

Heath Stewart
Heath Stewart

Many years ago when PowerShell was first in beta, I saw an opportunity to write cmdlets that I could string together in different ways rather than writing and maintaining a bunch of one-off Windows scripts for various day-to-day tasks and customer diagnostics. I created the Windows Installer PowerShell Module to fill that role. These cmdlets are no...

InstallationPowerShellpsmsi
Feb 11, 2014
0
0

How to relocate the Package Cache

Heath Stewart
Heath Stewart

Visual Studio can require a lot of space on the system drive. Based on years of data collected from customers’ installations from the Customer Experience Improvement Program, we took advantage of this feature in Burn – the Windows Installer XML (WiX) chainer – to eliminate most errors during repair, servicing, and even uninstall. This was not a pop...

InstallationVisual StudioWiX
Jul 3, 2013
0
0

Windows Installer PowerShell Module 2.2.1 Released

Heath Stewart
Heath Stewart

Yesterday I released servicing update 2.2.1, which updates 2.2.0 to fix a few bugs and add a few cool new features: Version-specific documentation has been added, but the most significant change to the documentation is the complete overhaul of the examples. Apart from removing some old examples using deprecated functionality, I organized the...

InstallationDevelopment64-bit
Apr 7, 2008
0
0

Functional Testing of Cmdlets

Heath Stewart
Heath Stewart

While developing unit and functional tests for Windows Installer PowerShell Extensions, I needed a way to invoke cmdlets without requiring elevation on Vista. That is, of course, because running elevated has always been a bad idea unless it is required. In order to load a PowerShell snap-in, however, one must write to HKEY_LOCAL_MACHINE which requi...

Visual StudioDevelopment.NET
Mar 15, 2008
0
0

Group by Different Properties for Format-Table

Heath Stewart
Heath Stewart

For my Windows Installer PowerShell Extensions, I've been simplifying some of the use cases and adding additional formats. One thing I wanted to do was display source list information in a table and group either by the attached ProductCode or PatchCode properties. The format-table cmdlet doesn't support multiple properties and doesn't appear to all...

PowerShellTip
Feb 8, 2008
0
0

Get Binder Variables for Assemblies without Installing into the GAC

Heath Stewart
Heath Stewart

Binder variables in WiX are variables that are resolved, coincidentally, at bind time. This is when the linker, light.exe, collects file information, assigns auto-GUIDs, and generates the output packages among other things. There are binder variables for all versioned binaries, and binder variables specific to both managed and native assemblies or ...

InstallationWiX.NET
May 18, 2007
0
0

WiX Extension for PowerShell Snap-ins

Heath Stewart
Heath Stewart

To write an installer for your PowerShell snap-in, the PowerShell documentation instructs you to extend the PSSnapIn or CustomPSSnapIn class. When you add your snap-in assembly to the Custom Action view in a Windows Installer Project in Visual Studio, the InstallerClass property should be set to True and your installer class will be run when the Wi...

InstallationWiXPowerShell
Apr 10, 2007
0
0

Windows Installer PowerShell Extensions 1.0 Beta Released

Heath Stewart
Heath Stewart

I have released Windows Installer PowerShell Extensions 1.0 beta, complete with an installer package. I have also added a couple of cmdlets, and format and type configurations for a good out-of-the-box experience when using the cmdlets Get-MSIProductInfo, Get-MSIPatchInfo, and Get-MSIRelatedProductInfo. When I introduced PSMSI, you had to manually ...

InstallationNewsPowerShell