You would need to use the -portable switch in the command line at run time. In your mIRC folder, you could create a shortcut to your mirc executable and add the -portable switch. Then use the shortcut to start mIRC instead of running the exe file directly.

/help command line