Dillon Posted December 8, 2005 Share Posted December 8, 2005 OK, this is driving me nuts. I've searched on the forum and have found some posts about it, but none really cover what I want.Here's what I need to do with the SFX:1) Before extracting, merge a REG file into the registry2) After extracting, run the setup file.Part 2 works fine. Part 1 is driving me mad. Here's the code for my SFX:;The comment below contains SFX script commandsSetup=Setup.exe /NOREBOOTPresetup=%WINDIR%\RegEdit.exe /S Regfile.regTempModeSilent=1Overwrite=1The REG file I want to import is on the CD, located within a few dirs - %DVD%\Software\Program\regfile.regThe WinRAR help doesn't really assist much on this, because it doesn't describe what the current directory is in a way that makes sense to me When I call the PreSetup command in this example, where is it looking for the Regfile? Is it: the current directory OR the temporary folder for extraction OR some random default folder OR the %WINDIR% folder (as that's where the regedit program is) ???Finally, is there some way of telling the PreSetup command to look on the CD for the regfile? (I can specify the folder, but the actual drive letter for the DVD-ROM might be different on different machines, hence a variable would be nice)... something like this:PreSetup=%WINDIR%\RegEdit.exe /S %CDROM%\Software\Program\Regfile.regThis is the 2nd to last problem I have on my DVD, so any help would be greatly appreciated! Thanks in advance!! Link to comment Share on other sites More sharing options...
Zoofield Posted December 10, 2005 Share Posted December 10, 2005 Why not do this, Example:;The comment below contains SFX script commandsSetup=PDisk\run.cmdTempModeSilent=1Overwrite=1Title=PerfectDiskand in folder PDisk you rar, run.cmd:@echo offcmdow @ /hidcd PDisk/regedit /s Licence.regSetup.msi Config=1 /quiet /norestartexitThis is an easier solution than trying to predict the working directory. Link to comment Share on other sites More sharing options...
Dillon Posted December 10, 2005 Author Share Posted December 10, 2005 That's something I hadn't really considered before, thanks for the suggestion! 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