fourte3n Posted September 10, 2004 Share Posted September 10, 2004 I am overwriting a file after installation and want to know how to do this silently so that I'm not asked if it's ok.Here is an example of what I have in my 'cleanup.cmd'COPY "%systemdrive%\install\emule\server.met" "%systemdrive%\Program Files\emule\"What else is needed? Link to comment Share on other sites More sharing options...
Alanoll Posted September 10, 2004 Share Posted September 10, 2004 did you even try to open up a command prompt and typing COPY /?if you did, you would have gottenCopies one or more files to another location.COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination [/A | /B]] source Specifies the file or files to be copied. /A Indicates an ASCII text file. /B Indicates a binary file. /D Allow the destination file to be created decrypted destination Specifies the directory and/or filename for the new file(s). /V Verifies that new files are written correctly. /N Uses short filename, if available, when copying a file with a non-8dot3 name. /Y Suppresses prompting to confirm you want to overwrite an existing destination file. /-Y Causes prompting to confirm you want to overwrite an existing destination file. /Z Copies networked files in restartable mode.The switch /Y may be preset in the COPYCMD environment variable.This may be overridden with /-Y on the command line. Default isto prompt on overwrites unless COPY command is being executed fromwithin a batch script.To append files, specify a single file for destination, but multiple filesfor source (using wildcards or file1+file2+file3 format). Link to comment Share on other sites More sharing options...
Astalavista Posted September 10, 2004 Share Posted September 10, 2004 first you take your server.metyou winrar itafter you winrar ityou go back to winrar and u create a SFX (self extracting file)go to advance options, select the location you want the file to extract tospecify silent install, over write filesrename the file to servermet.exein your runonceex.cmdafter you install Emule Plus or Emule doesn't really matteryou put the servermet.exe like so.reg add %Key%\002 /V 5 /D "%CDROM%\Software\Emule\Servermet..exe" /fsince i see your are using %systemdrive% method all u need to is replace my "%CDROM%\Software\to %systemdrive%\install\ Link to comment Share on other sites More sharing options...
Astalavista Posted September 10, 2004 Share Posted September 10, 2004 woh double post... what happen?miss read his request. I though he wanted to install his custom server.met. Link to comment Share on other sites More sharing options...
battleangel3222 Posted September 10, 2004 Share Posted September 10, 2004 alanoll is saying though, the command to silently overide a file is /Y simple as that. Link to comment Share on other sites More sharing options...
fourte3n Posted September 10, 2004 Author Share Posted September 10, 2004 thankyou battleangel for explaining it without out being rude like other people. Alanoll sometimes people simply don know that you can DO these things... so try writing in a less sarcastic manner./y it is!!and Astalavista... the server.met was an example not what i am actually doing. Thankyou for your help thou. Link to comment Share on other sites More sharing options...
jaclaz Posted September 10, 2004 Share Posted September 10, 2004 @AlanollAn image is worth 1000 words:@fourte3ntake it easy, mate, Alanoll is one of the most helping guys I EVER saw on ANY board.jaclaz Link to comment Share on other sites More sharing options...
Alanoll Posted September 10, 2004 Share Posted September 10, 2004 Alanoll sometimes people simply don know that you can DO these things... so try writing in a less sarcastic manner.Sorry, but assuming you read anything on unattended.msfn.org which I'm sure you have atleast once....Difficulty: Requires an intermediate experience of Microsoft Windows XP and a basic knowledge of how batch commands function.to me, Basic knowledge includes a simple /? or /help or various other switches. It's like knowing /qb and /qn goes to WIndows Installer Files to make them silent.But...I shall try better next time at 11:38pm after being up for over 24 hours to not be sarcastic Link to comment Share on other sites More sharing options...
Astalavista Posted September 10, 2004 Share Posted September 10, 2004 lolthe reason why i suggested winrar sfx. is it will make your files smallerand extract to the folder you specify. I think that is a very simple methodto use in your runonceEx.cmd Link to comment Share on other sites More sharing options...
Thauzar Posted September 10, 2004 Share Posted September 10, 2004 @allanoll I didn't know what /qb and /qn did and I really tried hard on google to find what it did and it's not an easy task. I finally found it after about 1 hour of searching, maybe a "basic dos knowledge" page should be added to the unattended guide, I still don't even know what's the difference between /y and -y, sometimes I have to use /others - sometimes it does not matter... But I really don't think you were rude and I was still able to complete my unattended (well can it sometime be complete? adding 7zip, updating softwares or virus defs..)@fourte3n Jaclaz is right and allanoll is one of the most helping and kind guy on this forum (in other forums they don't even bother to answer you...) and I think that if you are trying to do your own unattended cd you must learn to try things, and trying /help or /? is the basic. When this does not work, and you looked on google and could not find any helpful sites, then you can post something here and people (well some of them) will be glad to help you out WHILE teaching you at the same time, you must be receptive Link to comment Share on other sites More sharing options...
Thauzar Posted September 10, 2004 Share Posted September 10, 2004 good ones, why /qb and /qb- ???difference between /qb /qn (it's the progress bar) and /qr ?why sometime put the switches at the beggining and sometimes at the end?why sometime use - instead of / and why combine those 2? what about \ then?This may be ABC to programmers and scripters but lots of people here are also geeks without any formations, more guides should be created so the forum could breathe a little more Link to comment Share on other sites More sharing options...
Alanoll Posted September 10, 2004 Share Posted September 10, 2004 well, I personally have read the tech articles of Windows installer...../qb is with progress bar/qn is without.It really shouldn't matter the order in the command line as long as /qb or /qn is AFTER the MSI.If you want to go further, there is also /qb- /qn- /qb! /qn! on and on Link to comment Share on other sites More sharing options...
Thauzar Posted September 10, 2004 Share Posted September 10, 2004 And what about /qr? anyway, i want to learn so if you could link to those article it would be nice, during that time i'll try to google the answer but as I told before, looking for switches on the net is not an easy task. I'm really curious what those switches do, what's the difference, and why -p"-s /v\"/qn\""why - instead of , why \ why the " WHY WHY WHY??? Gotta find those tech articles see ya Link to comment Share on other sites More sharing options...
Alanoll Posted September 11, 2004 Share Posted September 11, 2004 the -p -s /v are all because of InstallShield. http://msdn.microsoft.com/library/default....s_installer.asp Link to comment Share on other sites More sharing options...
Astalavista Posted September 11, 2004 Share Posted September 11, 2004 how do i find out what installer was use to compile a program like for example hypersnap? i have tried /s -s /q /qn /qsis there a utility that will tell me what kind of installer it is? Link to comment Share on other sites More sharing options...
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