Problem:
How do I FlexApp Visual Studio Community 2019.
Resolution:
The following process was used and only tested with Core Visual Studio 2019. This does not include additional add-ons for VS. These would have to be tested separately and likely would be a new FlexApp with VS 2019 with Add-on captured at the same time in same level.
1. Download VS 2019 -
2. Make sure the Parent image for VDI and the FPC at optimized and have the runtimes as part of the FPC optimization. See: https://docs.liquidware.com/profileunity/en-us/common/microsoft-runtime-installer-flexapp.htm FlexApp Resources section
&
https://community.liquidware.com/discussion/101/how-i-optimize-my-vdi-images
Pre- Capture on FPC
1. In vSphere take a snapshot for testing and ability to revert
2. Login into FPC Machine as a Local or Domain Admin
3. Download and stage VS 2019 Community.
Direct Link to the .exe:
4. Open CMD
5. Use following command (specific to this build of VisualStudio)
vs_community__1756746177.1603216569.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
This will download components needed for install to local c:\vslayout on the FPC. This can take 30+ Mins
Once complete run the next command set in open CMD
6. c:\vslayout\vs_community__525937149.1588106396.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional
After this runs fully it will open a Menu where you can do the actual install. STOP HERE..
Capture on FPC
The next part is the actual capture part for VS 2019 Community. You also need to make sure on local FPC "C" drive you have 16+ GB free for install.
1. Open and Login to the FPC console
2. Create a New FlexApp but don't specify installer path to exe
3. Make sure the vhd size is 20GB or above. This will be thin provisioned.
4. Start Capture and go back to VS 2019 Install Menu (Uncheck "Start after Installation")
5. Choose install in far right bottom corner.
6. Once complete close and Select finish to complete the capture.
Post Capture on FPC
1. Edit the Capture
2. Find and remove any of these keys if they exist.
HKEY_CLASSES_ROOT\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905
HKLM\Software\Classes\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905
3. Choose Edit at top or or Right Click the key and choose delete
3.Then choose "Save" at top right
Adding Post activation script
1. Once editing is complete choose to activate the FlexApp so a Post activation script can be added.
2. Choose Post Activation script from download.
3. The script should be created with following items and saved so it can be selected during this process. In this case I named it VSPost.cmd.
(Command: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\DDConfigCA.exe")
4. Choose to add script similar to screenshot.
Then click OK and then OK again to finalize the addition of the script.
Product: ProfileUnity and FlexApp
Product Version: 6.8.3 R2 & Above
Expires on: 365 days from publish date
Updated: Oct 23, 2020