I Googled "icing using pudding" and found various recipes. All used Cool Whip and package pudding cooked or instant. Here is the link to one.
http://www.kraftrecipes.com/recipes/...ing-57256.aspx The cakes or cupcakes had to be refrigerated after icing.