Posted October 18, 201212 yr It would be sometimes interesting to use inf files with programs to uninstall this ones, if we want make a silent installation or uninstallation after Windows is loaded or installing with some others programs like WPI.The deal is to use the files included inside wa files to create an SFX file with silent switches.How to:1 - Download the program: "Reapers.Notepad2.v4.2.25.735.x86.Windows7.or.8.AddOn.WA" (Add-on example)2 - Unpack the folder using 7-Zip3 - Remove the file Task.txt4 - Inside "Notepad2" folder, move the Notepad2.reg and Notepad2.inf and all files included inside "Notepad2"5 - Create an archive 7z for the folder "Notepad2"6 - Create and UTF-8 txt file:Notepad2.txt;!@Install@!UTF-8!GUIMode="2"MiscFlags="4"InstallPath="%PROGRAMFILES%\\Notepad2"RunProgram="hidcon:cmd /c copy Notepad2.inf \"%windir%\\INF\\\" /y"RunProgram="\"regedit\" /S Notepad2.reg";!@InstallEnd@!7 - Create your exe file with the command:config.bat@copy /b /y 7zsd.sfx + Notepad2.txt + Notepad2.7z Notepad2.exeThe program will be added inside: "Add/Remove programs" and we can remove this one.Tested with many programs and works fine (example: Everything Search Engine).HTH*Edit: Notepad2.txt (config.txt file example) updated. Edited October 19, 201212 yr by myselfidem
October 18, 201212 yr Vote for sticky!!! I'm going to try this on my usual 4 addons in the weekend, and come back with feedback. Thank you very much, myselfidem!
October 18, 201212 yr Thanks, friend... but, it's your code correct...?RunProgram="hidcon:cmd /c copy Notepad2.inf %windir%\INF /y"RunProgram="\"regedit\" /S Notepad2.reg"I think so: :g:RunProgram="hidcon:cmd /c copy Notepad2.inf \"%windir%\\INF\\\" /y"RunProgram="REGEDIT /S Notepad2.reg"RunProgram="hidcon:cmd /c copy Notepad2.inf \"%windir%\\INF\\\" /y" I think it's ok... or not...???RunProgram="REGEDIT /S regfile.reg" works for me with sfx v1.6.0 b2496, I'm not saying it's wrong...Regards...
October 18, 201212 yr Author Yes, the code is correct and works fine.Tested with Notepad2.exe and EvethingSearch.exe using sfx modified module!Try it and let us know! *Edit: but to write with correct coding using sfx modified module, it seems also to me that is better to use the example you gave:RunProgram="hidcon:cmd /c copy Notepad2.inf \"%windir%\\INF\\\" /y"About regedit: the two codes work fine and are correct.Thanks alfreire. First post updated Edited October 19, 201212 yr by myselfidem
October 19, 201212 yr Hello myselfidemI created a few SFX files, then tested them, they have all installed silently as it should. I am using Windows 7.Then I did their integration using WinToolkit "140-76" to create a new Windows 7 DVD. I went to "All in one integrator" then to "Advanced" then to "Silent installs + SFX" to integrate them to my new DVD. Once finished I checked everything, my apps went to a new folder in my DVD called Apps there I found all my SFX files inside new folders called by the same names of the applications inside. I saw no errors during the whole integration of both drivers and SFX files. Then formatted my PC everything went as it should. But there was no installation of my SFX files. I wonder how can I discover where I did any mistake. Thanks in advance for any hints.
October 19, 201212 yr Author This issue is solved with the new release Win Toolkit v1.4.0.77 :Changelog•*1.4.0.77^FIX: Fixed SFX integrator•*1.4.0.77^FIX: Fixed addons, wallpapers and some other stuff being 'WinToolkit_Temp' folder•*1.4.0.77^FIX: Code improvements and optimizations•*1.4.0.77^Icon changes to Update RetrieverEnjoy! Edited October 19, 201212 yr by myselfidem
October 23, 201212 yr Author Another example converting Add-on to sfx file.Reapers.Gimp.2.8.2.x86.Windows7.or.8.AddOn.WADo the same process explained on the first postCreate your config.txt (remember to save the file as UTF-8)Gimp282.txt;!@Install@!UTF-8!GUIMode="2"MiscFlags="4";Version: GIMP-2.8.2 x86;Description=GIMP is a multi-platform photo manipulation tool.;GIMP is an acronym for GNU Image Manipulation Program.;The GIMP is suitable for a variety of image manipulation tasks, ;including photo retouching,;image composition, and image construction;Website=http://www.gimp.org/InstallPath="%PROGRAMFILES%\\GIMP 2"RunProgram="\"regedit\" /S Gimp86.reg"RunProgram="hidcon:cmd /c copy \"GIMP 2.lnk\" \"%ProgramData%\\Microsoft\\Windows\\Start Menu\\Programs\\\" /y"Delete="%PROGRAMFILES%\\GIMP 2\\GIMP 2.lnk"Delete="%PROGRAMFILES%\\GIMP 2\\Gimp86.reg";!@InstallEnd@!Create your exe file. Done Edited January 30, 201312 yr by myselfidem
January 22, 201312 yr Author Another example with Everything search engine; Version=1.3.0.632b x86 1 - Read at first post the process to extract file .wa addon. 2 - We can read inside Task.txt what we need to create the UTF-8 file text for SFX file. 3 - Move to Everything folder: Everything.inf , Everything_Schedule.bat and ROEverything.reg 4 - Create an archive Everything.7z with 7-Zip 5 - Create the config.txt (save the file Everything.txt as UTF-8) ;!@Install@!UTF-8!GUIMode="2"MiscFlags="4";Version=1.3.0.632b x86 ;Website=http://www.voidtools.comInstallPath="%PROGRAMFILES%\\Everything"RunProgram="hidcon:cmd /c copy Everything.inf \"%windir%\\INF\\\" /y"RunProgram="hidcon:cmd /c Everything_Schedule.bat"RunProgram="\"regedit\" /S ROEveryThing.reg"Delete="%PROGRAMFILES%\\Everything\\Everything_Schedule.bat"Delete="%PROGRAMFILES%\\Everything\\ROEveryThing.reg";!@InstallEnd@!Enjoy! Edited January 22, 201312 yr by myselfidem
January 23, 201312 yr You can try this shorter alternative config for Everything 1.3;!@Install@!UTF-8!GUIMode="2"OverwriteMode="0"RunProgram="rundll32 advpack.dll,LaunchINFSection Everything.inf,LiveInstall,3";!@InstallEnd@!Note:Archived sfx should contain 3 items:-Folder: EverythingFile: Everything.infFile: Everything_Schedule.batCheers
January 23, 201312 yr Author Many thanks Geej!But for a clean install we need to copy first the folder. However we can use the config.txt like this:;!@Install@!UTF-8!GUIMode="2"OverwriteMode="0"InstallPath="%PROGRAMFILES%\\Everything"RunProgram="hidcon:cmd /c copy Everything.inf \"%windir%\\INF\\\" /y"RunProgram="hidcon:cmd /c Everything_Schedule.bat"RunProgram="\"regedit\" /S ROEveryThing.reg"RunProgram="rundll32 advpack.dll,LaunchINFSection Everything.inf,LiveInstall,3";!@InstallEnd@!A restart is needed and all works fine. Regards
January 27, 201312 yr Author Tip given by Geej for Everything.exe 1.3.0.632b works fine!I haven't read carefully. Thanks Geej *Edit: post updated Edited February 1, 201312 yr by myselfidem
January 31, 201312 yr Hello myselfidem The sfx is run on first boot (or after), soRunProgram="\"regedit\" /S ROEveryThing.reg" is not really needed, you can add RunProgram="rundll32 advpack.dll,LaunchINFSection %windir%\\inf\\Everything.inf,Install" to the sfx config and delete the reg file from the 7zip archive.i have made a sfx file with some modifications if someone want to check it here is the file (it is localized in French)http://www.mediafire.com/?fcmy41p8n8yb9pf
February 1, 201312 yr Author Thanks mooms! Now the trouble is solved using as test an SFX file made by Geej. Everything.inf is improved for "Everything Search Engine 1.3.0.632b" and to create the SFX file we must use a different method. Everything_Schedule.bat and Everything.inf must be outside of the folder Everything. And we must create an 7-Zip archive with the three (3) files. And create the config.txt. EverythingSearchEngine_1.3.0.txt (example). Given by Geej (post #9);!@Install@!UTF-8!GUIMode="2"OverwriteMode="0"RunProgram="rundll32 advpack.dll,LaunchINFSection Everything.inf,LiveInstall,3";!@InstallEnd@!And create the SFX exe file. All works fine! Regards Edited February 1, 201312 yr by myselfidem
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.