tr4ck Posted January 30, 2005 Posted January 30, 2005 This is what I have for mirc:description.10 = MIRCcommand.10 = mkdir c:\progra~1\mircselected.10 = 1description.10.0 = MIRC Copy Filescommand.10.0 = xcopy.exe /e %SRCDRIVE%\appz\mirc c:\progra~1\mircselected.10.0 = 1hidden.10.0 = 1description.10.1 = MIRC Registercommand.10.1 = regedit.exe /s %SRCDRIVE%\appz\mirc\mirc.regselected.10.1 = 1hidden.10.1 = 1It always errors on mkdir. What am I doing wrong?And for ad-aware I have:description.1 = Ad Awarecommand.1 = %SRCDRIVE%\appz\aawsepro.exe /sselected.1 = 1command.1.0 = taskkill.exe /IM hh.exe /Fhidden.1.0 = 1command.1.1 = taskkill.exe /IM Ad-Aware.exe /Fhidden.1.1 = 1the 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.
tjhart85 Posted January 30, 2005 Posted January 30, 2005 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.
BenjaminKalytta Posted January 30, 2005 Posted January 30, 2005 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
tr4ck Posted January 30, 2005 Author Posted January 30, 2005 Thanks for replying tjhart85 and Benjamin. Can you paste your adaware bat file tjhart?Thanks.
tjhart85 Posted January 31, 2005 Posted January 31, 2005 Sure, here ya go...Ad-Aware Batchcmdow @ /HIDFOR %%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 /Staskkill /F /IM Ad-Aware.exetaskkill /F /IM hh.exeAd-Aware as called from WIHUdescription.1.0 = Lavasoft AdAware 1.05 SEcommand.1.0 = %inidir%\AdAware\install.batselected.1.0=1The 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).
BenjaminKalytta Posted January 31, 2005 Posted January 31, 2005 Why don't you use %SRCDRIVE%? This will always point to installation source drive (cd rom).Benjamin Kalytta
tjhart85 Posted February 1, 2005 Posted February 1, 2005 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now