Actually I have successfully created the deb file using dpkg.
The problem is many directories are not writable.
The best writable directory is home/USER but I won't know what is the user's directory name.
The user's directory name(install-dir) is determined by yourself, and you can also do anything you want to do during installing process by script,including with user interaction etc
The user's directory name(install-dir) is determined by yourself, and you can also do anything you want to do during installing process by script,including with user interaction etc