MSFN Forum: mirc/ad-ware question.. - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

mirc/ad-ware question.. Rate Topic: -----

#1 User is offline   tr4ck 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 17-December 03

Posted 29 January 2005 - 08:40 PM

This is what I have for mirc:
description.10 = MIRC
command.10 = mkdir c:\progra~1\mirc
selected.10 = 1
description.10.0 = MIRC Copy Files
command.10.0 = xcopy.exe /e %SRCDRIVE%\appz\mirc c:\progra~1\mirc
selected.10.0 = 1
hidden.10.0 = 1
description.10.1 = MIRC Register
command.10.1 = regedit.exe /s %SRCDRIVE%\appz\mirc\mirc.reg
selected.10.1 = 1
hidden.10.1 = 1

It always errors on mkdir. What am I doing wrong?

And for ad-aware I have:
description.1 = Ad Aware
command.1 = %SRCDRIVE%\appz\aawsepro.exe /s
selected.1 = 1
command.1.0 = taskkill.exe /IM hh.exe /F
hidden.1.0 = 1
command.1.1 = taskkill.exe /IM Ad-Aware.exe /F
hidden.1.1 = 1

the taskkill doesn't seem to be working as I still got prompted for updates and the help file still loads.

Can someone please help?

Thanks.


#2 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 30 January 2005 - 12:05 AM

For mIRC I would suggest that you WINRAR SFX the file, much easier and less error prone.

As for AdAware, what I personally do is simply make a BAT file that has everything in it, and have WIHU call the BAT file.
If you use CMDOW the file is hidden, and the end user can't tell the difference.


If this isn't what you want, I'm sorry, but its a suggestion. Hopefully you will find an answer that is suitable for you, whether it be mine, or another. Good luck!

EDIT: And I beleive the reason that the taskkill doesn't do anything is because it runs before AdAware and the help file load. You can try adding a sleep command (using sleep.exe, can be found on main site) and see where it goes from there.

#3 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 30 January 2005 - 05:52 AM

There is no such command "mkdir".
I think what you mean is cmd.exe /c mkdir <dir>.
Secondly: Each command will run in batch mode, i.e. it's not possible to run more than one command at the same time (parallel).

Benjamin Kalytta

#4 User is offline   tr4ck 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 17-December 03

Posted 30 January 2005 - 12:44 PM

Thanks for replying tjhart85 and Benjamin. Can you paste your adaware bat file tjhart?


Thanks.

#5 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 31 January 2005 - 08:20 AM

Sure, here ya go...

Ad-Aware Batch
cmdow @ /HID

FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\PRO1.dat SET CDROM=%%d\Install\AdAware\

%CDROM% start /wait %CDROM%aawsepro105.exe /S
taskkill /F /IM Ad-Aware.exe
taskkill /F /IM hh.exe


Ad-Aware as called from WIHU
description.1.0 = Lavasoft AdAware 1.05 SE
command.1.0 = %inidir%\AdAware\install.bat
selected.1.0=1



The FOR loop simply runs through and detects what drive is the CD-ROM and then maps the %CDROM% variable to the directory where Ad-Aware is (for me, you will need to change this most likely).

#6 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 31 January 2005 - 04:26 PM

Why don't you use %SRCDRIVE%? This will always point to installation source drive (cd rom).

Benjamin Kalytta

#7 User is offline   tjhart85 

  • Member
  • PipPip
  • Group: Members
  • Posts: 193
  • Joined: 14-September 04

Posted 01 February 2005 - 02:50 PM

Because I also have all these files on my hard drive, and I don't want to have to load up WIHU when I just want to load a file. I just double click on the batch file and it'll install it for me.

When my unattended DVD isn't in the drive, CDROM is not set to anything and the batch file simply looks in the same directory as the batch and installs the program.

For me, just having WIHU call a batch file is much easier. I'm not implying in any way that what you've implimented into WIHU isn't great, but I just don't always use WIHU (testing, random installs, etc...) and I would rather not force myself to do so.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy