Tischnoetentoet Posted April 15, 2004 Share Posted April 15, 2004 Hi all,In my installation, I need to copy a file:I do this with the next line, but it doesn't work copy %systemdrive%\install\Winrar\Rarreg.reg %ProgramFiles%\WinRAR\Rarreg.regI hope you know what the problem is!Thanks Link to comment Share on other sites More sharing options...
Jono Posted April 15, 2004 Share Posted April 15, 2004 trycopy "%systemdrive%\install\Winrar\Rarreg.reg %ProgramFiles%\WinRAR\Rarreg.reg" Link to comment Share on other sites More sharing options...
ZoSTeR Posted April 15, 2004 Share Posted April 15, 2004 or evencopy "%systemdrive%\install\Winrar\Rarreg.reg" "%ProgramFiles%\WinRAR\Rarreg.reg" Link to comment Share on other sites More sharing options...
jondercik Posted April 15, 2004 Share Posted April 15, 2004 or you could just put in in your $OEM$\$1\install\winrar directory. It will automatically be copied over that way. Link to comment Share on other sites More sharing options...
Blyster Posted April 15, 2004 Share Posted April 15, 2004 or you could just put in in your $OEM$\$1\install\winrar directory. It will automatically be copied over that way.This statement could be a litte misleading. Simply placing the file within the $OEM$ folder structure does not garauntee that the file will be copied over to the systemdrive. This would only happen if OEMPreinstall=Yes in the winnt.sif/unattended.txt file. Link to comment Share on other sites More sharing options...
Tischnoetentoet Posted April 15, 2004 Author Share Posted April 15, 2004 I already put it in the install directory, but then it is copied to the install directory on the harddisk, but I want it to copy to program files directory!I'll try the one with "" "" around the pathsThanks Link to comment Share on other sites More sharing options...
eirogge Posted April 15, 2004 Share Posted April 15, 2004 try to use $OEM$\$Progs$\ for that. details in the unattended guide. Link to comment Share on other sites More sharing options...
Tischnoetentoet Posted April 15, 2004 Author Share Posted April 15, 2004 well, that's ok when you want to copy a file at the beginning of the installation, but I want to copy this file after an install, and the install is runned at GUIRunOnce.cmdSo, I don't think it helps if I put the file in the $Progs folder...But maybe I'm wrong....Thanks for replying anyway! Link to comment Share on other sites More sharing options...
Aaron Posted April 15, 2004 Share Posted April 15, 2004 %PROGRAMFILES% has to be surrounded in quotes as suggested earlier in this thread even though it doesn't have spaces. But, the environment variable resolves into X:\Program Files, which does have spaces. 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