Shouldn't this be .Equals("install") ? You have a method for getting UninstallActions and this one for InstallActions.