February 12, 200521 yr Download and install the latest version of 7-Zip.Make a folder to copy all of the installation files to. If you are using a .msi include Msistub.exe in the folder. Make sure the installer name is under 8 character and has no spaces.Select all of them and right click on any file.Select "Add to archive...", which is under the select option.You can make the archive name to whatever you want it to be. Set the compression level to Ultra.Hit OK. Once the archive is created, you can delete all files except the archive. Copy 7zs.sfx to the folder containing the archive. This one has no cancel button.If you want, you can change the icon of the installer by replacing the icon in 7zS.sfx using ResHacker. For example, you can use the icon from the main program. Remember to save 7zS.sfx when you're finished.In order to get rid of the cancel button and the close button, go to Dialog→500→1033. Select all then paste in this code:500 DIALOG 0, 0, 186, 26STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTIONCAPTION "Progress"LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_USFONT 8, "MS Shell Dlg"{ CONTROL "Progress1", 1000, "msctls_progress32", PBS_SMOOTH | WS_CHILD | WS_VISIBLE | WS_BORDER, 7, 7, 172, 14 }In order to get rid of everthing paste in this code.500 DIALOG 0, 0, 0, 0STYLE WS_POPUPCAPTION "Progress"LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_USFONT 8, "MS Shell Dlg"{}Select compiles and then saveOpen Notepad and add the following:;!@Install@!UTF-8!RunProgram="program.exe –switch";!@InstallEnd@!Replace program.exe with the name of your installer (including the extension). Replace -switch with the desired switch(es) to be used. You can also use a .cmd.If you are using a .msi package you will need to use Msistub.exe. Msistub.exe will have to be inside the archive. The code for config.txt will be:;!@Install@!UTF-8!RunProgram="msistub program.msi /qb-!";!@InstallEnd@!Where program.msi is the name of the msi. You can use /qb-! for an install with a progress screen and /qn for a install with no screen.Save as config.txt with UTF-8 encoding by selecting "UTF-8" from the dropdown menu in the "Save As..." dialog in Notepad. Save it to the same folder as 7zS.sfx and the 7z archive.The folder should now look something like this:Open a command prompt. CD to the folder. Then enter the following command:copy /b 7zs.sfx + config.txt + (whatever the archive name).7z (Installer_Name).exeThat's it, you're done. Try it out.Thanks Mavericks choice and RyanVM. Added .msi information.7zS.zipmsistub.exe Edited November 6, 200520 yr by keytotime
February 12, 200521 yr excellent! why do u need this?"msiexec /i program.msi /qb-!\""what is the purpose of the msiexec?i hv several msi installers and i never use this and it still works.
February 12, 200521 yr Author @ Astalavista, a .msi is an install package that calls on msiexec. msiexec /i tells windows to install the .msi. Since 7-zip can not call on msiexec directly we need StartX to call on msiexec for us. Type in msiexec /? at run to see more.
February 12, 200521 yr thanks keytotime for explaining that to me.i use a quick batch file converter to make my "Installer.exe"remember u told me i dont hv to use it anymore.My Installer.exe is much smaller than StartX.exe and i can put multiplecommands in it. Just like evilvoice's method.good job man... great to hv a new guide to help everyone make their own7zip applications. Hopefully we will be seeing a rise in pre 7zip applications in the future.
February 12, 200521 yr Author I used startx becuase it is free and i know that o some machines batch files converted using quick batch file coverter does not work. My machine being one of them . Also startx compressed with upx is 90Kb while your installer.exe for office is 144. I atached the compressed startx in my original post.
February 12, 200521 yr Actually i did not upx my installer.exe if i did it would only be 80kbthanks for reminding me. i will update it now
February 12, 200521 yr Author bah this is retarded, we're arguing over 10kb. Startx is free and works better than qbf for me. A for the multiple commands. That why we can do REG ADD %KEY%\020 /VE /D "Symantec Antivirus 9.3" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Apps\sav.exe" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %CDROM%\Apps\1.reg" /f
February 12, 200521 yr There is an MSI installer of 7-zip? I was actually looking for one a few days ago but didn't find anything. Not on the official site, not somewhere else. Maybe it's in the new beta, but I can't extract or test that file without getting an error that it's unsupported and the process cancelling.Can you shed some light on this?
February 12, 200521 yr Author This is a tutorial how to make a switchless for any program using 7-Zip. The new 7-zip uses /S.
February 13, 200521 yr Nice and clear guide! I think that admin schould bookmark it in point of interests, because similar guide was published on this site long time ago, but was lost.@AstalavistaAnd keytotime right about the StartXP - it always works, plus free. Btw, why do you use it if your applications better when repacked switcheless acrobat7?regards, moo
February 14, 200521 yr moo u must be mistaken i dont use it. u can't check my latest Adobe Acrobat build.
Create an account or sign in to comment