just need to create catalog/cart rules for grouped/configured products from magento backend only.
1- buy product A and get product B for free
product A is a software delivered on a USB card
product B is the same software delivered on a CD
2- X is a grouped product created with 5 simple products
Buy product X at a fixed price