prepare package file operation function, prepare for moving into msvc[ci skip]