Brutal Sponge Posted March 19, 2004 Share Posted March 19, 2004 I'm not sure if this has been discussed or suggested before. I did a quick search and didn't turn up anything.I've found what you could call a solution to the problem of files being read-only when copied off the CD. Instead of using the commandline to set the file attributes (which i had problems with), you can use WinRAR's Unrar.exe cmdline utility.I'll provide an example. This is for the RunOnceEx method, but could probably be adapted for the batch file method.First, get WinRAR installed then navigate to its folder. Copy the 'Unrar.exe' file to '$OEM$\$$\System32' - this will ensure that you can call it from anywhere during the setup.In this example I'll use mIRC. Create a RAR file (not zip!) in your 'install' folder called 'mirc.rar'.Next, open your RunOnceEx.cmd file and add:REG ADD %KEY%\014 /VE /D "mIRC" /fREG ADD %KEY%\014 /V 1 /D "unrar.exe x %systemdrive%\install\mirc C:\PROGRA~1" /fThis will unrar mirc.rar to 'C:\Program Files\mIRC'. You can change where stuff is extracted to by simply altering 'C:\PROGRA~1'. You could also use different commandline switches if required.I've tested this and it works.Anyway, hope this helps! Link to comment Share on other sites More sharing options...
big_gie Posted March 19, 2004 Share Posted March 19, 2004 Just creat an sfx and call it with /s for silent... Link to comment Share on other sites More sharing options...
Brutal Sponge Posted March 19, 2004 Author Share Posted March 19, 2004 Just creat an sfx and call it with /s for silent...True. Never thought of that for some reason. Link to comment Share on other sites More sharing options...
big_gie Posted March 19, 2004 Share Posted March 19, 2004 Or even better creat a sfx from 7zip wich compress much more.But even with the silent switches you get a window telling you its extracting... Link to comment Share on other sites More sharing options...
flattspott Posted March 20, 2004 Share Posted March 20, 2004 For winRAR sfx's Be sure to set the modes to overwrite always and silent and put the extract to path in there as well. Then all you got to do is "somefile.exe". No switches or paths needed. 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