Problem: FlexApp packaging Visual Studio 2013-2022
Disclaimer:
Microsoft stance on Visual Studio on VDI
https://learn.microsoft.com/en-us/visualstudio/releases/2022/system-requirements#supported-operating-systems
The following are not supported:
- 32-bit and ARM32 operating systems.
- Windows 11 Home in S mode, Windows Enterprise IoT, Windows 10 IoT Core, Windows 10 Enterprise LTSC edition, Windows 10 S, and Windows 10 Team Edition. You may use Visual Studio 2022 to build apps that run on these editions of Windows.
- Server IoT and Minimal Server Interface options for Windows Server.
- Windows containers, except for the Visual Studio Build Tools.
- Running in virtual machine environment without a full Windows operating system.
- Application virtualization solutions such as such as Microsoft App-V or MSIX for Windows, or third-party app virtualization technologies.
- Multiple simultaneous users using the software on the same machine, including shared virtual desktop infrastructure machines or a pooled Windows Virtual Desktop hostpool.
Licensing:
Please refer to the following MS article regarding licensing for Visual Studio:
Automatically apply product keys when deploying Visual Studio
Capture Process:
- Start capture in High Compatibility mode and installation of Visual Studio
- Within the Visual Studio installer, uncheck 'Start after installation'
- Uncheck 'Keep download cache after the installation' under 'Installation locations' as well.
- Once the installation finishes, close the installer and save the package
- Playback the package and create a post-activation script depending on the version of Visual Studio
Note: Substitute {version} in the file path with year of Visual Studio being packaged.
Community Edition (32-bit):"C:\Program Files (x86)\Microsoft Visual Studio\{version}\Community\Common7\IDE\DDConfigCA.exe"
Community Edition (64-bit):"C:\Program Files\Microsoft Visual Studio\{version}\Community\Common7\IDE\DDConfigCA.exe"
Enterprise Edition:"C:\Program Files\Microsoft Visual Studio\{version}\Enterprise\Common7\IDE\StorePID.exe" AAAAA-BBBBB-CCCCC-DDDDD-EEEEE #####
Note: Substitute AAAAA-BBBBB-CCCCC-DDDDD-EEEEE with the license number and ##### with the MPC number referenced in the table below:
Visual Studio Edition MPC Professional 2013 06177 Premium 2013 06191 Ultimate 2013 06181 Professional 2015 07062 Professional 2017 07060 Enterprise 2017 08862 Professional 2019 08860 Enterprise 2019 09260 Enterprise 2022 09660 Professional 2022 09662 - Save the package, revert the FlexApp Packaging Console, and test package playback.
Product: FlexApp
Product Version: 6.8.4 R2+