Frank Lee schrieb: >> How about introducing special types of packages? > > How about introducing a special type of *check*: > > <check type='external' condition='0' path='\\server\share\discfree.bat' > value='%SystemDrive% 1GB' /> > > i.e. run an external command specified by 'path' with arguments > specified by 'value' and consider the return code. If the return code > matches the 'condition', the check is successful. (I hypothesize that > discfree.bat takes two arguments, a drive and a size, and returns zero > if the drive contains at least that amount of free space.) Other goodie would be checking if a given process is not running already. For example, if there is a "some_program.exe" process, don't attempt to upgrade/install "Some Program" (as it can potentially fail, installer can stop a running process without asking the user -> data loss etc.). -- Tomasz Chmielewski http://wpkg.org |