Determining whether a package is being directly installed or being installed as a dependency from within init.ps1/install.ps1

Topics: General
May 29, 2013 at 11:02 AM
I like the help page that Glimpse opens inside VS when it is installed, and I'd like to do something similar with my NuGet package, but I don't want it to open when it is installed as a dependency of another package.

My question is is it possible to determine whether a package is being directly installed or being installed as a dependency of another package from within install.ps1/init.ps1?