Jump to content

Recommended Posts

Posted (edited)

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-Zip

3 - Remove the file Task.txt

4 - 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.exe

The 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.

post-23163-0-59719500-1350653557_thumb.g

Edited by myselfidem
Posted

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... ;)

Posted (edited)

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 by myselfidem
Posted

Hello myselfidem

I 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.

Posted (edited)

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 Retriever

Enjoy!

Edited by myselfidem
Posted (edited)

Another example converting Add-on to sfx file.

Reapers.Gimp.2.8.2.x86.Windows7.or.8.AddOn.WA

Do the same process explained on the first post
Create 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 by myselfidem
  • 2 months later...
Posted (edited)

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 by myselfidem
Posted

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: Everything

File: Everything.inf

File: Everything_Schedule.bat

Cheers :)

Posted

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

Posted (edited)

Tip given by Geej for Everything.exe 1.3.0.632b works fine!

I haven't read carefully. Thanks Geej

 

*Edit: post updated

Edited by myselfidem
Posted

Hello myselfidem

 

The sfx is run on first boot (or after), so

RunProgram="\"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
Posted (edited)

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 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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...