vondaher Posted November 2, 2004 Share Posted November 2, 2004 Hi all,I want to tell you 2 hints for easy making an unattended installation cd/dvd.1) At first you can compress the installation files into archives (e.g. 7z). Tu unpack them you can use loops in your install.cmd:FOR %%i in (prog_inst*.7z) DO 7za x -y %%iFOR %%i in (prog_copy*.7z) DO 7za x -y %%i -o%ProgramFiles%del /F /S /Q prog_*.7zThe 'del' command line is optional.As you can see, this loop will unpack all files in the archives prog_copy* into the Program Folder of your Win Installation. I made it this way, because I have the ability, to divide the files into different archives, e.g. prog_copy_free & prog_copy_share. So it gives me the possibility to make a unattended setup cd with or without shareware.The same happens with the prog_inst* archives, but in will be unpacked in the \install folder. This leads me to part 2 of my article:2) Installation with loops.The most setup.exe can be divided into groups with the same install switches, e.g. NULLSOFT , WISE , INNOSETUP , MSI. So you can use this point to create an automatic installation script. To divide the files into groups you just have to rename the setup.exe with the following prefixes:_WI_* for Wise Installers_NS_* for Nullstoft Installers_IS_* for Innosetup InstallersAnd here is the small script to do the installations:REM = Installation with MSI /qrFOR %%i IN (*.msi) DO start /wait %%i /qr /norestartmove /Y TweakUI.exe %windir%\system32REM = Installation with Nullsoft Silent Installer /SFOR %%i IN (_NS_*.exe) DO start /wait %%i /Staskkill /IM EvilLyrics.exe /Ftaskkill /IM QCDPlayer.exe /FREM = Installation with INNOSETUP /VERYSILENT /SP- /NORESTARTFOR %%i IN (_IS_*.exe) DO start /wait %%i /VERYSILENT /SP- /NORESTARTtaskkill /IM ConTEXT.exe /Fcopy /y ger.lng %ProgramFiles%\Free Download Manager\Language\REM = Installation with WISE SETUP /sFOR %%i IN (_WI_*.exe) DO start /wait %%i /staskkill /IM stardown.exe /fAnd here is the file list of the prog_inst_free.7z archive:_IS_asciiartmachine.exe_IS_dvdshrink32setup.exe_IS_dvdbuilder.exe_IS_everesthome151.exe_IS_fdminst.exe_IS_idoswin.exe_IS_mpth_15.exe_IS_netmeter.exe_IS_pdfcreator_080_afpl_ghostscript.exe_IS_regcleaner.exe_IS_spybotsd13.exe_IS_VCDEasy1152.exe_IS_xnview174.exe_IS_ZContextsetup.exe_NS_evillyrics.exe_NS_installspeedfan417.exe_NS_qcd451.exe_NS_tgf_065.exe_WI_flashplayer7installer.exe_WI_rjhext13.exe_WI_stardownloaderfree_143.exeAdobeReader602update.msiCalcPlus.msiCDBurnerXPPro3.msicladDVDNET_350.msiFindJunkFiles.msiger.lngJournalViewer.msimbsasetup-de.msipowertoys_Powercalc.msipowertoys_TweakUI.msipowertoys_Timershot.msipowertoys_SlideshowGenerator.msipowertoys_Taskswitch.msipowertoys_DeskMan.msipowertoys_HTMLSlideShow.msipowertoys_ImageResizer.msipowertoys_Magnifier.msiTweakUI.exeTo arrange the order of installation you can rename the files (e.g. Context will be installed at the end of all _IS_* files because of the filename _IS_ZContextsetup.exe).Note: Don't use special characters like space for the file names!You can create other installation groups using the above mentioned scheme.I think, this way is easier to install than to make one or more entries for each installation file. It's also easier to update the setup cd - you don't have to care about the filename after the prefix!Any remarks?Grtz!vondaher Link to comment Share on other sites More sharing options...
smknight Posted December 31, 2004 Share Posted December 31, 2004 Wow, that is really cool. I've already got my stuff setup in different ways, but if I were just starting I would definately try that.Thanks for sharing the info,SMKnight 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