A Kurzweil-Henstock type integral defined on a zero-dimensional compact abelian group is studied and used to obtain a generalization of some results related to the problem of recovering, by generalized Fourier formulae, the coefficients of convergent series with respect to the characters of such a group.