mIRC Homepage
Posted By: techgeek Vista Settings Question - 04/04/09 01:17 AM
Hey Everyone-

I've got a quick question. I'm running mIRC for myself on Windows Vista. Now I know it stores your settings in your user directory (like C:\Users\Ryan\AppData\Roaming\mIRC), but is there a way to install two copies and have them use different directories for settings? I want to also use a bot alongside mine.
Posted By: Horstl Re: Vista Settings Question - 04/04/09 07:58 PM
Yepp:
1) Open the program directory of your "second" mIRC installation (the one you want to use as a bot). It's the directory that contains the "mirc.exe" you want to start to run your bot.
2) Create a blank new file called "mirc.ini" in this directory.

From now on, your "second" mIRC installation will use this directory instead of the "roaming" directory for all it's settings and as it's "home" directory (...just ensure your windows account has write access at this directory).

You don't have to, but you may use a copy of the mirc.ini of your "first" installation instead of creating a blank new mirc.ini file - to copy all the settings of the "first" installation to the "second" (and now independent) mIRC installation.
And you may copy other files to this directory as well, like servers.ini = your server list etc. But, as stated: everything except the mirc.ini is optional, and mIRC will create blank new files if necessarry for all the files you don't copy there.
smile
Posted By: techgeek Re: Vista Settings Question - 05/04/09 12:14 AM
Thanks much Horstl smile
Posted By: AntP Re: Vista Settings Question - 29/04/09 12:59 PM
I try to do that but fail. The second mirc still use the mirc.ini from the first.
Could give me more instructions ?
Posted By: 5618 Re: Vista Settings Question - 29/04/09 01:27 PM
Originally Posted By: AntP
I try to do that but fail. The second mirc still use the mirc.ini from the first.
Could give me more instructions ?

Do you have two separate folders, both with a mirc.exe in them?
Posted By: AntP Re: Vista Settings Question - 29/04/09 01:57 PM
Yes, i have too different folder one for the bot and one for my own at C:\Program Files.
I have tried to copy the mirc.ini and make a new blank mirc.ini but the second mirc still read the mirc.ini from the first (which is located at AppData/Roaming/mirc).
Posted By: Horstl Re: Vista Settings Question - 29/04/09 02:05 PM
The second mIRC has it's mirc.ini (the one you created/copied) in the very folder of it's mirc.exe? Did you restart this mIRC since you created/copied the .ini there?

To see which inifile is used by some mIRC instance, type in any window of this mIRC:
//echo -a $mircexe uses $mircini
Posted By: AntP Re: Vista Settings Question - 29/04/09 04:17 PM
Yes, the second mirc has the mirc.ini in the folder of it's mirc.exe.
I have restarted it still read the mirc.ini from the AppData.
Here are the result of the command:

C:\Program Files\BotScript\mirc.exe uses C:\Users\ΑΝΤΩΝΙΟΣ\AppData\Roaming\mIRC\mirc.ini

I have put the mirc.ini into C:\Program Files\BotScript\mirc.exe
Posted By: 5618 Re: Vista Settings Question - 29/04/09 04:47 PM
And where is the result from inside the second mirc.exe?
Posted By: AntP Re: Vista Settings Question - 29/04/09 05:54 PM
Both mircs have the same result
Posted By: argv0 Re: Vista Settings Question - 29/04/09 06:28 PM
You cannot use the program files directory to store user data under Vista. You'll run into tons of problems. This is why data is now stored in %APPDATA%\mIRC.

Also I should point out that you said you put it "in C:\Program Files\BotScript\mirc.exe" -- you cannot "put" an ini file inside of an exe. You need to place it in the same *directory*, not drag it onto the exe file, if that's what you're trying to do.
Posted By: AntP Re: Vista Settings Question - 29/04/09 08:12 PM
With "put" i mean i placed the mirc.ini in the same directory with the mirc.exe.
So the problem is on programm files ?
If i store the data to another folder on C:\ the second mirc will be independented from the mirc.ini on AppData ??
Posted By: argv0 Re: Vista Settings Question - 29/04/09 09:28 PM
Yes.

Originally Posted By: versions.txt
20.For Vista compatibility, new installations of mIRC now save all
settings in the User's "Application Data\mIRC" folder by default.

However, if the installer or mIRC find mirc.ini in the same folder
as mirc.exe they will use the mirc.exe folder for all settings.
Users installing over an old version of mIRC should therefore see
no change in behaviour.
© mIRC Discussion Forums