Hello ,
Thanks a lot for your guidance. I have been doing as you
suggested. Written one
script using NSIS. But still unable to install my oxt
through following script. Pls have
a look if I am doing something wrong?
# code for to print Open office Installation path
OutFile "Your OpenOfiicePlugIn.exe"
Name "Your ComputerName"
Caption "OpenOfiicePlugIn"
XPStyle "on"
!define PLUGIN "xyz.oxt"
!define COMMAND "\unopkg add xyz.oxt"
!define EXE "unopkg.exe"
Function .onInit
ReadRegStr $0 HKLM "Software\OpenOffice.org\UNO\InstallPath" "" ---here
finding open offices installation path from registry
StrCmp $0 "" win9x
StrCpy $1 $0 4 3
StrCpy $2 '$0'
StrCpy $0 '$2${COMMAND}'
MessageBox MB_OK "OpenOffice Installation Path : $0" --here it prints
whole path as C:\\progamfiles\\..\\program\\unopkg add xyz.oxt
!execute $0 ---here I am executing whole command
Goto done
win9x:
StrCpy $1 $0 4 3
MessageBox MB_OK "Your ComputerName : $0"
done:
Quit ; placed here so we quit the installer; we dont need the other pages
for this example.
FunctionEnd
Section "-boo"
SectionEnd
On Thu, May 29, 2008 at 12:56 PM, Juergen Schmidt <[EMAIL PROTECTED]>
wrote:
> Dinesh Chothe wrote:
>
>> Hello,
>> I have developed one extension using java,neatbeans,open
>> office sdk.
>> By this got one .oxt created through neatbeans. Also if double
>> clicking on
>> this oxt it gets properly installed in open office and works
>> fine.
>> Now I wanted to create one .exe by which oxt should get installed
>> in open office
>> and one other supported files directory would get copied to
>> specific location.
>> How do I achieve this?
>> I also tried by creating one exe which copies other supported
>> directory to specific
>> location but not installs oxt into open office.
>> Can anybody guide me how do I solve this problem?
>>
>> oxt files will be always installed into the office (share or user layer),
> no way to use it from somewhere else.
>
> use "<officprogrampath>/unopkg add bla.oxt" to install the oxt in the user
> layer.
>
> What ever you want to install additionally to the oxt is up to you and has
> nothing to do with he office or oxt files.
>
> Juergen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks and Regards,
Dinesh P. Chothe
Software Developer
Binyas Information Technologies
Kataria Chambers, 128/6
Sane Wadi, SBI Building,
Aundh, Pune-40.
Phone :- +91-20-410420001
Mobile:- +91-9881471876
E-mail:- [EMAIL PROTECTED]