If your application supports windows 7, package the application on Win 7 VM.
If it supports only XP and not windows 7, package on XP VM and deploy on Win 7
If your application supports windows 7, package the application on Win 7 VM.
If it supports only XP and not windows 7, package on XP VM and deploy on Win 7