Sangi Posted June 1, 2006 Posted June 1, 2006 Hi,I wonder if anyone can help me:I have a general question : How can I copy a file, say into C:\Windows\system32, overriding a pre-existing one?Here is a sample case:When I install ZoneAlarm Pro, it automatically installs a trial license file zllictbl.dat into C:\Windows\system32, but I'd like to replace it with my licensed zllictbl.dat so that the licensed version is unattendedly installed.How can I do this? PLEASE HELP!
Scubar Posted June 1, 2006 Posted June 1, 2006 you could do this by using runonce and get it to call a batch file to copy your licensed file over into the system32 dir, overwriting the original.
Sangi Posted June 1, 2006 Author Posted June 1, 2006 Hi ScubaSteve,Thanks for your swift reply, but unfortunately I don't know enough about computers to be able to follow your instructions You wrote:you could do this by using runonce and get it to call a batch file to copy your licensed file over into the system32 dir, overwriting the original. 1.What should the batch file contain, that is, what syntax? 2.What should be it's extension? .Cmd?3.Where should it be placed? In the same folder as the application in point, i.e. in this case, in the ZAP folder alonside the programme itself?4.How do I call it on my Runonce? This is what I have now (with no batch file):REG ADD %KEY%\059 /VE /D "ZoneAlarm PRO" /fREG ADD %KEY%\059 /V 1 /D "%PP%\ZAP\ZAP.exe /s /i /noreboot" /fI know that asking for the syntax is probably too much, but if you can point me to a place where I can get instructions, I'd be more than happy!Thanks again,Sangi
T D Posted June 1, 2006 Posted June 1, 2006 (edited) Yes, it is cmd.The easier way: under REG ADD %KEY%\059 /V 1 /D "%PP%\ZAP\ZAP.exe /s /i /noreboot" /fputREG ADD %KEY%\059 /V 2 /D "copy %PP%\ZAP\zllictbl.dat %systemroot%\system32" /fIf the serial is in zllictbl.dat, and that's why you are copying it, then you can use this switch for ZAP.EXE instead:REG ADD %KEY%\059 /V 1 /D "%PP%\ZAP\ZAP.exe /s /i /lickey whatever_your_serial_is_without_dashes /noreboot" /fe.g. /lickey 475y3t78hrg78gr98w7y4w4bwiny5bw78785w7Hope this helped Edited June 1, 2006 by T D
Sangi Posted June 1, 2006 Author Posted June 1, 2006 Thanks again, I'll try that and get back to to you as soon as possible.
Sangi Posted June 2, 2006 Author Posted June 2, 2006 Hi TD,I still haven't been able to test your recommendations: I'm going to try both, because if copying the file also overrides the preexisting one, the syntax will be useful for me in other programmes!About getting bold within a quote, well there is an order as to what should be added first:1. bold, italic, etc..2. colour;3. size;4. quote!
T D Posted June 3, 2006 Posted June 3, 2006 (edited) How do you add the bold to the quote if the bold tags are around the quote tags?Test textIt never worked like this before... Edited June 3, 2006 by T D
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