I wouldn't do it this way.

XXE is extensible by downloading and installing add-ons. Therefore I
suggest to package your custom configuration as an add-on. (More info
http://www.xmlmind.com/xmleditor/contribute.html#package_addon)

Copy this add-on to a public HTTP server. Example:
http://www.umiacs.umd.edu/public/xxe/my_config.xxe_addon pointing to
http://www.umiacs.umd.edu/public/xxe/my_config.zip

[[[XXE is a very nice editor of .xxe_addon files. Do not forget to
install the add-on called "XMLmind XML Editor Configuration Pack" if you
want to give it a try.]]]

Then tell your users to add the
"http://www.umiacs.umd.edu/public/xxe/my_config.xxe_addon"; URL to the
"Download add-ons from these servers" list displayed in
Options|Preferences, "Install Add-ons section". (More info
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#installAddonsOptions)
This step is done once for all.

Then each time you make a modification:
[a] Increase the version number of the add-on by modifying the <version>
element of my_config.xxe_addon.
[b] Optionally document your changes in the <documentation> element of
my_config.xxe_addon.
[c] Refresh the copy located in http://www.umiacs.umd.edu/public/xxe/
[d] Send an announcement by email to your users. (May be one day upgrade
sniffing will be automated by XXE.)

Your users will then select "Options|Install Add-ons" and see in the
Install tab that your add-on has been upgraded. They'll select it, click
OK and then restart XXE.

This is pretty simple to do, very professional and not error prone
neither for you nor for your users.


Mike Maxwell wrote:
> We do some local configuration for our XXE installations--local 
> customize.xxe, a custom .rng that extends DocBook, etc.  These files 
> change more often than I would like...(my fault, I can't stop tweaking).
> 
> For our office use, we have a location visible to all the PCs, and set 
> the relevant environment variable to tell XXE to look there.  So I put 
> the revised config files in that one location, and everyone's XXE 
> automagically finds them.
> 
> For those of us who also have XXE installed on our home computers, it's 
> a bit more complex to install revised config files.  They go in 
> different places on different machines (Windows XP, Windows Vista, 
> Windows 7, Mac), and not everyone finds it easy to unpack the files and 
> put them in the right place.  We occasionally find two versions of the 
> same file in separate subdirectories under the config directory.
> 
> It seems like it should be simple to build a Java script or some such to 
> install our local config files in the right place, depending on the OS. 
>   Has anyone written such a script?



Manuel Collado suggests something well-suited to a ``personal'' custom
configuration. Thanks Manuel!

> The following is more or less what I personally use in Windows (XP,
> Vista; should also work in NT, 2000, Windows7; will not work in Windows 9x):
> 
> - Put your customized files in a dedicated directory, say "XXE-local".
>    Use subdirectories, if you want, to organize the stuff.
> - Put also the following .bat files in this directory, so you will have:
>          ---- XXE-local
>               |-- install.bat
>               |-- uninstall.bat
>               |-- ... your customized files ...
> 
> --- install.bat ---
> cd /D %~dp0
> xcopy /Y /F /I ..\* "%XXE_ADDON%\XXE-local"
> -------------------
> 
> --- uninstall.bat ---
> cd /D %~dp0
> rd /S /Q "%XXE_ADDON%\XXE-local"
> ---------------------
> 
> In the explorer windows, navigate to your XXE-local directory, and just
> double click on "install.bat" or "unistall.bat".
> 
> WARNING: Check that the "XXE-local" directory name is not already used
> for anything else. Chose a different name, if necessary.
> 
> Hope this helps.
> -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado 




Reply via email to