Hi Work Klo,

the syntax of scp2 was simplified some month ago. The new documentation
is available at:

http://installation.openoffice.org/How_to_scp_in_ooo.html

A gid.inc is no longer needed.


Work Klo wrote:
> I am adding my custom program to OpenOffice.  Here is
> what I want to do:
> 1) Add to the installation package so that my program
> will go to the "installation directory\Program".
> 2) Have a shortcut in Start -> Programs -> OpenOffice
> 3) Add a button in the Standard Toolbar so that user
> can click on that button to launch my program.
> 
> For OO1.X, I used to have a manual on how to do all. 
> Now OO is updated to version 2, everything is changed.
> 
> 1) Last time I dealt with only those .zip files...
> a) Last time I add an entry to .\scp\inc\gid.inc
>       #define GID_FILE_BIN_MYPROG  
> gid_File_Bin_MyProg
>    This will identify MyProg.exe to the installatoin
> package.
> 

gid.inc is no longer needed, you only have to define your file in a scp
file and assign it to a module if it shall be deselectable.

> b) Then I add the file description to the installation
> package (scp\source\global\setupzip.scp) so that the
> installer know how to install the file.
>       File GID_FILE_BIN_MYPROG
>          BIN_FILE_BODY;
>          Name = "MyProg.exe";
>          Dir = GCFG_BINARY_DIR;
>       #ifdef WNT
>          Styles = (PACKED, SETUPZIP);
>       #else
>          Styles = (PACKED, SETUPZIP, UNIX_SOFTLINK,
> DONT_DELETE);
>       #endif
>       End
> 
> THIS TIME: I modify scp2\source\ooo\file_ooo.scp and
> scp2\source\module_hidden_ooo.scp.  Looks like these 2
> files already combines the functionality of gid.inc
> and setupzip.scp.  Am I on the right track?  Anyone
> knows?
>

Native installer do not need files from the Office installation.
Therefore a setupzip.scp is no longer required. file_ooo.scp is a good
place to define your new file. You can assign it to a module in
module_hidden_ooo.scp.
Please use gid_Dir_Program instead of GCFG_BINARY_DIR. The macro
GCFG_BINARY_DIR is no longer defined.

> 2) Last time: I add the following to
> .\scp\source\office\files.scp.
> 
>    Shortcut GID_SHORTCUT_MYPROG
>       FileID   = GID_FILE_BIN_MYPROG;
>       Dir      = PREDEFINED_PROGDIR;
>    #ifdef WNT
>       Name     = "MyProg is Good";
>    #else
>       Name     = "MyProg";
>    #endif
> 
> THIS TIME: ???

You want a shortcut in the OpenOffice root directory?
You can define it in shortcut_ooo.scp

> 
> 3) Last time: I have to add some image mask.  I add to
> scp\source\office\files.scp
> 
>    File GID_ZIP_MYIMAGES
>       Dir  = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
>       BIN_FILE_BODY;
>       Styles = (PACKED);
>       Name   = "myimages.bmp";
>    End
> 
>    File GID_ZIP_MYIMAGESMASK
>       Dir  = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
>       BIN_FILE_BODY;
>       Styles = (PACKED);
>       Name   = "myimagesmask.bmp";
>    End
> 
>    File GID_ZIP_MYIMAGE0
>       Dir  = GID_DIR_USER_CONFIG_SOFFICECFG_BITMAPS;
>       BIN_FILE_BODY;
>       Styles = (PACKED);
>       Name   = "myimages0.bmp";
>    End
> 
> Somehow this directory would be created after
> installation: <installation
> directory>\user\config\soffice.cfg\bitmaps
> 

Add this files simply to files_ooo.scp. You only have to take care of
the directory. Any entry you use must be defined in directory_ooo.scp.

Regards

 Ingo

> Please help.  If you think there is another project
> (as a result, another mail list) is a better place for
> this discussion, please let me know.  I REALLY NEED TO
> KNOW.  PLEASE HELP!!!
> 
> __________________________________
> 想即時收到新 email 通知?
> 下載 Yahoo! Messenger
> http://messenger.yahoo.com.hk/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to