Is there a way to work around this issue ?
of course
there is no need to format the hard drive
tell your friend that he can use a registry spy (classified*)
it will show what values your app is writing to the registry
then he can simply delete them
i hope i've understood your question correctly