'How to deploy chromium from source with the master_preferences?

I have tried following this Bundle a file in Chromium but the file was not present alongside the .exe after the installation, it was added in the version directory. I also read this Where do I put the master_preferences file for a Chromium build on Windows? but it wasn't clear about which C++ files I need to edit.

I want to make a mini_installer.exe which creates a master_preferences file in the same folder as the .exe file. I am basically trying to open the welcome page on the first run by the user.



Solution 1:[1]

The reason I recommended to put master_preferences in VersionDir in that answer is to make it compatible with incremental updates.

Anyways, in your case you can modify chrome.release file and put master_preferences in the same directory where chrome.exe exists:

master_preferences: %(ChromeDir)s\

Then build the mini_installer again to reflect the changes.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Asesh