Here is how:
- Install FastStone Image Viewer and run it, clicking through whatever intro screens appear.
Choose the menu item Settings->Settings
On the bottom of the Viewer tab, there is a button labelled Create Portable Application
Click this button, click Yes, then choose the folder where you want to install the portable app.