Section 25. A sale of the property of a minor for the purpose of investment may be made upon the petition of the guardian or any friend of the minor, and the court may authorize the guardian or another person to sell and convey the property. The provisions of this chapter relative to licenses and sales upon the petitions of guardians shall, except as provided in the following section, apply to licenses and sales under this section.