<@U06V253M4> In commandbox is there a way to see i...
# box-products
d
@User In commandbox is there a way to see if another system level module is already installed? Say i want to check if hostupdater is already installed. This isn't to use hostupdate, but because there could be conflicting actions occurring if both modules are installed.
b
From the cli or just in your custom module's cfml code?
d
From the module, mainly looking for a way to warn a user if a conflicting module may already be installed or may cause incompatibilities.
b
The simplest way would to check if the cf mapping exists
Something like DirectoryExists( expandPath( "/commandbox-host-updater" ) )
Otherwise, inject the package service and get the list of packages for the system folder. Basically what "package list --system" does internally.