Draft:Documenting file differences


 * Back to Draft:Windows build FAQ

This page provides instructions on how to perform file differences between two different builds. This can be helpful for finding files that are added or removed between the builds.

Instructions
get-childitem * | foreach-object { Write-Host "|-" Write-Host ("|" + $_.Name) Write-Host ("|" + [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileDescription) Write-Host ("|" + [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion) } Repeat for the "added" folder. Copy the output of the PowerShell commands (should list the output as a table format). Create a page called, then implement it as a table using the following format below: 
 * 1) Install WinMerge (https://winmerge.org/?lang=en).
 * 2) If you are planning to install a build in VirtualBox or QEMU, you should use a VMDK disk to make it easier to mount the disk in Windows.
 * 3) Install the two builds you want to compare. They should be available builds that are adjoining each other. Try to use the same VM configuration on both builds.
 * 4) Allow the host computer to access the files of the builds:
 * 5) * If you are using a VMDK file, use VMware Workstation or OSFMount to mount the drives.
 * 6) * If you are using an IMG file, create two working directories; one for each build you are comparing. You will then need to open the drive in WinImage and manually copy all the files to the directory. Transfer the files of each build to their own working directory.
 * 7) If you have transferred the files to two working directories, you must move all the subfolder files to the root folder by searching   and cutting all files and pasting them to the root folder of the working directory of that build. Delete the subfolders when the moving is done.
 * 8) Open WinMerge and press the Open button in the toolbar (or go to File > Open...).
 * 9) Enter the two drives/directories to be compared and press Compare.
 * 10) After the drives/directories are fully scanned, use the View menu bar option to disable "Show Identical Items" and "Show Different Items". Enable "Show Left Unique Items".
 * 11) If there are subdirectories, expand all of them (ignore the ,  , and   folders). Select all of the files except the subdirectories themselves and copy the files to a separate "removed" folder.
 * 12) Repeat steps 8 and 9, this time disabling "Show Left Unique Items" and enabling "Show Right Unique Items", copying to a different "added" folder.
 * 13) If there are subfolders in the "removed" or "added" folders, perform step 5 to move them to the root folder and delete the subdirectories.
 * 14) Open PowerShell, change the current directory to the "removed" folder, and run the following command (if it errors out, you didn't delete all of the subdirectories):