generate sofficerc for instdir

Change-Id: I06ddbc89c58384ce757ac809788f9d978677cb9c
(cherry picked from commit 9ce3e2ae14ecd2a0acd9e63818c1bd82c7a3fc52)
generate setuprc for instdir

Change-Id: I70418c4911aab0c24b5b198566fa69fdad0f1da2
(cherry picked from commit 3cac074a55a5872182fb9b3b7120093f4d2dcf82)