[wpkg-users] Prevent install and uninstall only for certain profiles/applications

Falko Trojahn nospam_ft at smi-softmark.de
Sun Nov 8 18:52:16 CET 2009


Hello,

Kevin Keane --> 05.11.2009 04:54:

> My problem is that I would like to leave some software untouched - 
> similar to what the /noremove switch does globally, but only limited 
> to one particular package in one profile.
> 
> Specifically, my problem is with Microsoft Office. I have to have a package definition
> for Microsoft Office for some of my profiles, but on some computers, a
different version
> Office may already be preinstalled. I don't want to replace that version, and of course I 
> do not want to accidentally uninstall it either.
> 
> What is the best way to accomplish that goal?

if you have a package with all possible versions, e.g.

        <check type="logical" condition="or">
                <check type="uninstall" condition="exists"
path="Microsoft Office Professional Edition 2003" />
                <check type="uninstall" condition="exists"
path="Microsoft Office Standard Edition 2003" />
        </check>

this should do.

Didn't try that, but I think using recent versions of wpkg.js you can
use wildcards, too, like
  path="Microsoft Office.+2003"

HTH
Falko



More information about the wpkg-users mailing list