func (rs *ResourceSet) WriteToEXE(dst io.Writer, src io.ReadSeeker, opt ...exeOption) error {
	data, reloc := rs.bytes()
	options := exeOptions{}
	for _, o := range opt {
		o(&options)
	}
	return replaceRSRCSection(dst, src, data, reloc, options)
}
// WriteToEXE patches an executable to replace its resources with this ResourceSet.
//
// It reads the original file from src and writes the new file to dst.
//
// src and dst should not point to a same file/buffer.
//
// Options:
//
//  ForceCheckSum()         // Forces updating the checksum even when it was not set in the original file
//  WithAuthenticode(<how>) // Allows updating the .rsrc section despite the file being signed
//
WriteToEXE patches an executable to replace its resources with this ResourceSet.

It reads the original file from src and writes the new file to dst.

src and dst should not point to a same file/buffer.



ForceCheckSum()         // Forces updating the checksum even when it was not set in the original file
WithAuthenticode() // Allows updating the .rsrc section despite the file being signed
// WriteToEXE patches an executable to replace its resources with this ResourceSet . // // It reads the original file from src and writes the new file to dst . // // src and dst should not point to a same file / buffer . // // Options : // // ForceCheckSum () // Forces updating the checksum even when it was not set in the original file // WithAuthenticode ( <how > ) // Allows updating the . rsrc section despite the file being signed //
func (rs *ResourceSet) WriteToEXE(dst io.Writer, src io.ReadSeeker, opt ...exeOption) error {
	data, reloc := rs.bytes()
	options := exeOptions{}
	for _, o := range opt {
		o(&options)
	}
	return replaceRSRCSection(dst, src, data, reloc, options)
}
func ( rs * ResourceSet ) WriteToEXE ( dst io . Writer , src io . ReadSeeker , opt ... exeOption ) error { data , reloc := rs . bytes ( ) options := exeOptions { } for _ , o := range opt { o ( & options ) } return replaceRSRCSection ( dst , src , data , reloc , options ) }
WriteToEXE patches an executable to replace its resources with this ResourceSet.
WriteToEXE patches an executable to replace its resources with this ResourceSet .