[wpkg-users] Install/Upgrade a package only if this program is installed

Rainer Meier r.meier at wpkg.org
Tue Jan 6 01:14:55 CET 2009


Hi,

Currently there is no such feature because it would mean to follow a
completely different approach. You would need checks to check if a
program is installed and additional checks which verify the installed
version. These checks are not necessarily identical.

In a future version of WPKG I plan a feature which allows the user to
install packages using WPKG and manually added packages are treated the
same way as if they were added by the profile allowing automatic
upgrading even if the package is not part of the profile. Of course this
would require the user to have rights to install the package (but not
necessarily admin rights if the package can be installed properly
without admin rights).

However this still implies that the package has been installed using
WPKG (and not manually).

br,
Rainer


Kamil Maciejewski wrote:
> 
> -- 
> 
> ------------------------------------------------------------------------
> 
>  Hello. I have a question - since there is a group of programs that
> users can install even without admin rights and there are some programs
> that we need to install only on some machines without changing WPKG
> group membership I'd like to ask - is there a possibility to create a
> package in the main default group that would install the latest version
> of the program only if there's an older version.
> 
> Example:
> 
> If there is Winamp installed -> install the latest version (tags
> <install> or <upgrade>
> if no Winamp installed -> do nothing and exit with '0' code.
> 
> I know I can go around and do this with doing something like this:
> 
> <check type="logical" condition="or">
> <check type="uninstall" condition="exists" path="Winamp" />
> <check type="file" condition="exists" path="c:\SOME_FILE.TXT" />
> <install cmd="IF EXIST C:\PROGRAM FILES\WINAMP\WINAMP.EXE THEN
> %SOFTWARE%\WINAMP\SETUP.EXE /S /install=SFQR" ELSE COPY
> %SOFTWARE%\SOME_FILE.TXT C:" />
> 
> So it will always execute the package and install Winamp if there's an
> older version or copy the SOME_FILE.TXT file if there's no winamp at
> all, and then if winamp is installed or the file is present it will
> check the package installation is OK.
> 
> But I would rather like to create a package that would not be run at all
> if there would be no winamp istalled. Is this possible?
> 
> ------------------------------------------------------------------------
> **
> 
> *
> *
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list