Store path based on installation method