Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 No, after SFX installation. Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 25, 2010 Share Posted February 25, 2010 Please explain what you mean by "SFX installation". Link to comment Share on other sites More sharing options...
MrJinje Posted February 25, 2010 Share Posted February 25, 2010 No, after SFX installation.Paste the regedit command after all the other commands in whatever batch file you are using to automate your SFX installation. It might look something liek this.Install.cmdsomeapp.exe /S /V/QNregedit /s myreg.reg Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 25, 2010 Share Posted February 25, 2010 If Mr. Jinje is right, you want to install a .reg file and the programs ORinstall programs and then a .reg file?Yes, you can do this, just tell us which option and we will help you out.Cheers Link to comment Share on other sites More sharing options...
Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 (edited) I want to make a SFX archive from entire content of a folder and i want to include & execute this .reg file to register my software automatically. Edited February 25, 2010 by Nic303 Link to comment Share on other sites More sharing options...
MrJinje Posted February 25, 2010 Share Posted February 25, 2010 What app are you trying to install.What command are you using to install it. Link to comment Share on other sites More sharing options...
Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 (edited) Just want to run a .reg file after sfx extraction.Someone can explain step by step? if not please close this thread. Edited February 25, 2010 by Nic303 Link to comment Share on other sites More sharing options...
Yzöwl Posted February 25, 2010 Share Posted February 25, 2010 (edited) We cannot help because you are unwilling to provide the information required for us to do so.Therefore as requested, Topic Closed.Topic has been reopened, (at least for now). Edited February 25, 2010 by Yzöwl Topic reopened and merged with continuation topic Link to comment Share on other sites More sharing options...
Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 I've managed to resolve my problem, (thanks to MrJinje and Sp0iLedBrAt)Now i want to automatically delete this file after installation.I've tried to add path in "advanced -> files to delete in destination folder" in WinRar, but the file is not deleted.I have to modify or add something in this?;The comment below contains SFX script commandsSetup=regedit /s test.regTempModeSilent=1Overwrite=1 Link to comment Share on other sites More sharing options...
Yzöwl Posted February 25, 2010 Share Posted February 25, 2010 There is nothing in that comment file which contains commands for file deletion.Could you please fully explain the file structure and locations (with names) of what you are doing.As stated earlier you need to provide sufficient information for us to work with in order for us to help you. Link to comment Share on other sites More sharing options...
Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 I have a SFX archive which contain one game (installed) and one .reg file (game serial)After SFX installation in Program Files i have a game folder --> Stars (game from Abandonia) From this folder i want automatically delete .reg file after SFX extraction. Link to comment Share on other sites More sharing options...
MrJinje Posted February 25, 2010 Share Posted February 25, 2010 After installation what is the path to the registry file you want deleted. If it is "Program Files\Stars\Test.reg" here is the command.DEL /F "C:\Program Files\Stars\Test.reg"Otherwise, go here and adjust as needed.Instead of calling the TEST>REG directly from your SFX, you will need to create a .cmd file and include both commands. Be sure to put the registry command before the delete command, otherwise it won't work. Then repackage your SFX with the .cmd file and you are all set. Link to comment Share on other sites More sharing options...
Nic303 Posted February 25, 2010 Author Share Posted February 25, 2010 After installation what is the path to the registry file you want deleted. If it is "Program Files\Stars\Test.reg" here is the command.DEL /F "C:\Program Files\Stars\Test.reg"This is the path.But how to add this command? Link to comment Share on other sites More sharing options...
MrJinje Posted February 25, 2010 Share Posted February 25, 2010 My mistake I assumed you already knew that a batch file (.cmd extension) is just a .txt (text file) that has been renamed to install.cmd. That will not happen again. Please use notepad.exe to create your batch file. Then call "install.cmd" from the same place while creating your SFX instead of the regedit command.If I was you I would re-read/combine the good parts from post #18 + #27 until you figure it out. Everything you need to know has already been discussed in this thread. If you need a step by step.1) Open Notepad2) Paste Regedit command3) Hit Enter4) Paste delete reg file command5) Save file as "Install.cmd" (use quotes or it gets named Install.cmd.txt and you will have to manually rename the file)6) Remake your SFX including the "Install.cmd". Link to comment Share on other sites More sharing options...
Tripredacus Posted February 26, 2010 Share Posted February 26, 2010 1) Open Notepad2) Paste Regedit command3) Hit Enter4) Paste delete reg file command5) Save file as "Install.cmd" (use quotes or it gets named Install.cmd.txt and you will have to manually rename the file)6) Remake your SFX including the "Install.cmd".Adding clarification to #5. In Notepad, you need to change the "Save As Type" option for TXT File to All Files, or else you'll have a .txt extension. 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