workklo General User


Joined: 13 Oct 2004 Posts: 36
|
Posted: Sun Mar 06, 2005 7:34 pm Post subject: Modify Default Installation Path Programtically. |
|
|
I am modifing the source code of OpenOffice.org 1.9.80 (in Windows). Here is what I need to do:
- Modify the product name to be MyOffice.
- Modify the company name (from Sun) to MyCompany.
I have already modified instsetoo_native\util\openoffice.lst. After recompilation of instsetoo_native, I run the installer. I get the product name changed to MyOffice. When I click on Custom Setup, I see
C:\Program Files\Sun\MyOffice
instead of
C:\Program Files\MyCompany\MyOffice
I would like to ask how to change the default installation path. Which source file do I have to modify?
I have found out that this in the log
DEFAULTDESTPATH=<winprogpath>\%PRODUCTNAME%PRODUCTVERSION
Somehow <winprogpath> is translated to be C:\Program Files concated with the company name... I know that I could just hard-code it, but is there a better way?
Work |
|