[wpkg-users] uninstall program not installed by wpkg

Falko Trojahn nospam_ft at smi-softmark.de
Fri Jun 5 16:15:56 CEST 2009


Tomasz Chmielewski schrieb:
> Andrea Zagli wrote:
>> is there a way to uninstall with wpkg a program not installed with wpkg?
>>
>> i would like to remove the msoffice demo (and others demo) from new pcs
>
> You can create a "msoffice-demov-removal" package, where you would
> have removal instructions (with execute="once")?
>
>
meaning: put the removal instructions within install tags.

You can use execute="once", or  you need a check with "not".

Example:

     <package
        id="nojournalviewer"
        name="Journal Viewer remover"
        revision="1"
        reboot="false"
        priority="99">
        <check type="logical" condition="not" >
                <check type="uninstall" condition="exists"
path="Microsoft Windows-Journal-Viewer" />
        </check>
         <install cmd='%SOFTWARE%\updates\journalviewer\deu\setup.exe /q
/c:"msiexec /l* %SystemDrive%\netinst\logs\journalviewer.txt /x
""Microsoft Windows Journal Viewer.msi"" /qn"' />
    </package>

Regards,
Falko



More information about the wpkg-users mailing list