write registry key only in not portable mode
fixed name