mIRC Home    About    Download    Register    News    Help

Topic Options
#32552 - 27/06/03 03:23 AM Script Installer
Thray Offline
Vogon poet

Registered: 18/06/03
Posts: 114
I posted this originally as a reply to another post but figured it would get a bit more exposure here:

A mIRC installer that automatically finds the mIRC directory (or maybe lists all directories mIRC is installed in if theres more than one installation? That you can checkmark which to install to and have multiple?), puts whatever files there, and then performs certain mIRC commands to install it (IE automatic script loading)

..kinda like Winamp's installer.
_________________________
-------------
I am the self-appointed God of needlessly complex mIRCscript.

Top
#32553 - 27/06/03 05:35 AM Re: Script Installer
Narusegawa_Naru Offline
Vogon poet

Registered: 16/06/03
Posts: 195
Loc: Earth Prime
im not sure what you mean by this but if its an installer (namely creates a setup.exe) i really only have 2 things to say.

1. This can be done just use installshield developer
and
2. Most people dont trust scripts that come packaged in an exe. Its simply enough for them to just copy the blah.mrc file and /load it.

i support the idea however for large scripts but sadly you cant include mirc with it.

if this isnt what you meant then forgive my arrogance
_________________________
Have Fun smile

Top
#32554 - 27/06/03 06:04 AM Re: Script Installer
Thray Offline
Vogon poet

Registered: 18/06/03
Posts: 114
The fact that you can not legally package mIRC with any scripts is exactly what I mean. This way, you can install a script into mIRC, have the installer load the scripts, etc.

Also, they could make it so that you always know the files contained in the installer are reasonably safe by allowing only inis and mrcs and other script files. Well, actually, probly be easier to just disallow exes. Of course there could be malicious scripts but you take that risk with any script you download..
_________________________
-------------
I am the self-appointed God of needlessly complex mIRCscript.

Top
#32555 - 27/06/03 10:07 PM Re: Script Installer
Raccoon Offline
Hoopy frood

Registered: 18/02/03
Posts: 2541
This is a good idea actually. mIRC *should* list all the directories on your harddrive that contain the "mirc.ini" file, since this filename is hardcoded into mIRC, and always present, unless edited out.

mIRC doesn't seem to store the install directory path anywhere on the harddrive on in the registry. I have mIRC installed at c:\Internet\mirc\ for 4 years, and not a single update has found this path by default. It keeps defaulting to C:\Program Files\mIRC\ which doesn't exist.

Listing all the directories that contain mirc.ini would be useful, and possibly even give the option to have the installer update ALL locations at once... in the event you have multiple installations, or the Asylum or like-trojan installed. grin

- Raccoon
_________________________
At least I won lunch.
Good philosophy, see good in bad, I like!

Top
#32556 - 27/06/03 10:33 PM Re: Script Installer
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
installshield??? Why is it people seem to think "expensive = better" http://www.jrsoftware.org/is4.php feature rich, stable, and FREE.

Top
#32557 - 28/06/03 06:20 PM Re: Script Installer
Techster Offline
Ameglian cow

Registered: 09/12/02
Posts: 21
Quote:

mIRC doesn't seem to store the install directory path anywhere on the harddrive on in the registry. I have mIRC installed at c:\Internet\mirc\ for 4 years, and not a single update has found this path by default. It keeps defaulting to C:\Program Files\mIRC\ which doesn't exist.


Hmm, that's interesting, mine always defaults to c:\mirc\mirc, which is where my plain-jane mIRC is installed. It's gotta be stored somewhere, just don't have the patience to look for it right now.

Top
#32558 - 28/06/03 06:22 PM Re: Script Installer
Techster Offline
Ameglian cow

Registered: 09/12/02
Posts: 21
I have to agree, the free installers work great, though I prefer NSIS myself, may have to check out Inno Setup.

Top
#32559 - 28/06/03 06:56 PM Re: Script Installer
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
NSIS is good, I've never used it personally, but from what I hear, NSIS is a bit difficult to use, Inno Setup trys to make most things pretty simple.

Top
#32560 - 28/06/03 10:01 PM Re: Script Installer
kupotek Offline
Babel fish

Registered: 14/01/03
Posts: 73
Loc: Ohio
NSIS is a pain in the butt to use.
_________________________
KittySafe Ntwrk.

Top
#32561 - 28/06/03 11:31 PM Re: Script Installer
Narusegawa_Naru Offline
Vogon poet

Registered: 16/06/03
Posts: 195
Loc: Earth Prime
i never said it was better however i do like it. i wasnt worried about comaprative shopping.

I like installshield its quite easy to use and powerfull enough to do the job. You can search the drive looking for mirc.ini but i agree mirc should place its install path in the registery.
_________________________
Have Fun smile

Top
#32562 - 28/06/03 11:46 PM Re: Script Installer
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
Well my point was, I have no problem with people saying "this can already be done using method X" however when you tell people "you can already do this, if you go out and spend $200+ on a program to do it" thats kinda going overboard imho. So I was providing a free alternative, not so much for you, if you want to use installshield, that's your choice, I meant for the people who want an installer just for scripts. Maybe it's just me but I wouldn't go out and spend hundreds of dollars just so I could package an mIRC script...

Top
#32563 - 29/06/03 01:14 AM Re: Script Installer
Narusegawa_Naru Offline
Vogon poet

Registered: 16/06/03
Posts: 195
Loc: Earth Prime
ya i agree 100% if all you want to do is write an installler for a couple of plain text files installshield probably isnt the best choice. Theres tons of freeware/shareware insatllers out that might be more suitable for that purpose.

back to the main subject however i also like the idea of a setup for scripts but most people usually complain and some sites wont post them at all. I dont think the problem youll find is in writing it but getting people to follow suit.
_________________________
Have Fun smile

Top
#32564 - 30/06/03 06:03 AM Re: Script Installer
Techster Offline
Ameglian cow

Registered: 09/12/02
Posts: 21
Just a follow-up on one of my previous posts, though it's going off the main topic again.

The mIRC installer looks up the value for the HKLM\SOFTWARE\Mircosoft\Windows|CurrentVersion\Unistall\mIRC\UninstallString key. If this key is preset, it will grab the path info from there, then check to see if that path exists. If it does, it uses this as the defaul install directory, otherwise it defaults to C:\Program Files\mirc

Top
#32565 - 30/06/03 06:04 AM Re: Script Installer
Techster Offline
Ameglian cow

Registered: 09/12/02
Posts: 21
Actually, it's not that bad, though it does have a learning curve. It's not all point and click, it's dependable on scripting, which is why I like it. There isn't much I can't do with...

Top
#32566 - 30/06/03 04:01 PM Re: Script Installer
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
Well InnoSetup has scripting support too. IS uses Pascal scripting which makes it pretty decently powerful.

Top