First, we need to install nodejs. Go to https://nodejs.org/en/ and download and install the latest version.
Next, we need git. Download and install git from https://gitforwindows.org and install it.
Now, open command prompt as administrator and run the following command:
$ npm install --global --production windows-build-tools
$ git clone https://github.com/trufflesuite/ganache.git
$ cd ganache
$ npm install
This will install ganache on your system.