[Rd] In creating a Windows binary package (zip), how do I make the installation configurable
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jul 12 19:26:11 CEST 2007
On Thu, 12 Jul 2007, rick.jones at sungard.com wrote:
> I would like to create a binary package for Windows which when
> installed will give the user an option of whether to install
> one version or another.
>
> Here is the problem, I have a package 'FAME' that can run
> in two different modes on Windows. An old mode that uses
> R to connect to a remote linux machine and a new way that
> uses a locally installed database.
>
> I would allow this decision to be made at run time, but
> the DLL in the later case depends upon the database's DLL
> being on the Windows machine. A runtime solution would
> require at least one extra level of dynamic loading.
>
> So I would like something like this to happen:
> the zip file contains fame-local.dll and fame-remote.dll
> when the user selects 'install packages from a zip file'
> the user should be given the option of which DLL
> should be renamed to 'fame.dll'.
>
> Is this possible??
No. You can use your own installer, though, just as we do for R itself.
> If not, then are there an recommendations for a solution?
Why not look for the in-FAME DLL in your .onLoad function, and load the
appropriate DLL at that time? Or even put up a dialog box to ask the user
(if there is: think about non-interactive use) at that point.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list