Help me understand how this works.
If I have a switchless installer, can I simply put that into the svcpack subfolder of an addon folder, create a .ini file in the addon folder referencing the switchless installer and using regular 7-zip, create an addon of everything in the addon folder? I think that's what I'm finding and I would simply call the switchless installer from the [AddPrograms] section of the .ini file without any additional switches. I like having a switchless installer that I can test by running on a working installation without having to pack it into a new installation to see if it works okay. Once that's good, I can put it into an addon. Am I missing something with that logic?
Do addons and switchless installers both execute after first logon?
To continue that line of thinking,
can I have multiple entries in [AddPrograms] (it is plural after all)?
Can I put both lines from my switchless installer into the [AddPrograms] section and not have to create a switchless installer?
Using my Security Essentials installation as an example, I've created a switchless installer using Ricktendo's method. It uses a config.txt file as you've shown above then this Create.cmd:
upx --ultra-brute 7zsd.sfx
cd Bin
..\7za a -mx=9 "..\Program.7z" *
cd ..
copy /b 7zsd.sfx + Config.txt + Program.7z MS_Security_Essentials_2.0.657.0_Switchless.exe
del Program.7z
Which creates my switchless installer:
MS_Security_Essentials_2.0.657.0_Switchless.exe
My understanding is that I can put that switchless installer in a svcpack folder and create an ENTRIES_MS_Security_Essentials_2.0.657.0_Switchless.ini file at the same level as the svcpack folder:
[general]
builddate=06/01/2011
description=MS Security Essentials 2.0.657.0 Addon
title=MS Security Essentials 2.0.657.0 Addon
version=2.0.657.0
website=
[EditFile]
I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram
[AddProgram]
MS_Security_Essentials_2.0.657.0_Switchless.exe
Then
can I just zip the ini file and the svcpack folder into a new Addon_MS_Security_Essentials_2.0.657.0.7z using regular 7zip or do I need to use a special version of 7zip? Can I change the extension to .cab or is a .cab file different than a .7z file?
Can I skip the switchless installer, put the original mseinstall.exe in svcpack, and create a different version of ENTRIES_MS_Security_Essentials_2.0.657.0_Switchless.ini using the two RunProgram entries from the switchless installer process?
[general]
builddate=06/01/2011
description=MS Security Essentials 2.0.657.0 Addon
title=MS Security Essentials 2.0.657.0 Addon
version=2.0.657.0
website=
[EditFile]
I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram
[AddProgram]
hidcon:cmd /c Reg add \"HKLM\SOFTWARE\Microsoft\Microsoft Antimalware\Exclusions\Paths\" /v \"%PROGRAMFILES%\RealVNC\VNC4\*.*\" /t REG_SZ /d \"0\" /f
mseinstall /o /s /runwgacheck
Then 7zip everything into Addon_MS_Security_Essentials_2.0.657.0.7z? (or ...cab?) Do the same rules for double quotes and backslashes apply?
Is that equivelent to creating a switchless installer THEN an addon? In that case, one could avoid the special versions of 7zip (7zsd and 7za) and all the other dedicated programs used to make these packages.
I'll try it but the only way I know of to test an addon is to insert it into an nlite build and install Windows. An hour later, I know if it worked or if I need to try again.
If I've over simplified this or if you know of changes I need to make, save me some time by letting me know, please.
It seems like I tried something like this before by putting a .reg file in the svcpack folder and calling REGEDIT ... from the ini file, but it didn't work. Maybe I didn't have the right path to REGEDIT at the time.
I appreciate your input. I'm sorry for the lengthy questions, but I'm really trying to learn this.