Hi online,
I guess We fully agree (no confrontation), RegAddBoot should be used for cases where Reg_Expand_Sz do not work. I tend to check first
Besides i do not like file associations with regaddboot, such a beautiful function with unneccasary usage.... well you know the story and I guess we agree
Hi Lancelot,
I can assure that "no confrontation" at all from my side, only opinions.
Sure, if I can learn that about the file-type-association then the REG_EXPAND_SZ forcing was almost always or even only often working then it would be interesting, but I still did not understand if it is so or not...
In that case a kind of public list/archive about the programs/scripts that are working in that way would be interesting too (although not strictly useful about the new programs/scripts).
Meanwhile, I still can get the reason (Galapo's one too) not to use a function (RegAddBoot) and to spend further time in order to try if the 0x2 forcing was working or not for that (every) specified script.
If you said to me that using widely the "RegAddBoot" (when really needed) function then the system became "overloaded" then I can understand the reason itself, but if it does not overload anything (just as I guess) then I still can not see the reason to avoid its (very handy and very working) use.
By the way, just as an example: in a my own 7-Zip script there are the following RegAddBoot entries that I wrote without testing if the 0x2 forcing was working or not
RegAddBoot,HKU,0x1,.DEFAULT\Software\7-Zip,Path,#$pSystemDrive#$p\Program#$sFiles\7-ZipRegAddBoot,HKLM,0x1,SOFTWARE\7-Zip,Path,#$pSystemDrive#$p\Program#$sFiles\7-ZipRegAddBoot,HKLM,0x1,SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32,,#$pSystemDrive#$p\Program#$sFiles\7-Zip\7-zip.dllRegAddBoot,HKLM,0x1,SOFTWARE\Microsoft\Windows\CurrentVersion\App#$sPaths\7zFM.exe,,#$pSystemDrive#$p\Program#$sFiles\7-Zip\7zFM.exeRegAddBoot,HKLM,0x1,SOFTWARE\Microsoft\Windows\CurrentVersion\App#$sPaths\7zFM.exe,Path,#$pSystemDrive#$p\Program#$sFiles\7-ZipRegAddBoot,HKLM,0x1,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip,UninstallString,#$q#$pSystemDrive#$p\Program#$sFiles\7-Zip\Uninstall.exe#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.7z\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c0RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.7z\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.bz2\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c2RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.bz2\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.bzip2\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c2RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.bzip2\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.cab\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c7RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.cab\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.cpio\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c12RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.cpio\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.deb\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c11RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.deb\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.dmg\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c17RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.dmg\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.gz\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c14RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.gz\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.gzip\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c14RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.gzip\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.hfs\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c18RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.hfs\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lha\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c6RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lha\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lzh\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c6RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lzh\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lzma\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c16RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.lzma\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.rpm\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c10RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.rpm\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.split\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c9RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.split\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.swm\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c15RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.swm\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.taz\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c5RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.taz\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tbz\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c2RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tbz\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tbz2\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c2RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tbz2\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tgz\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c14RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tgz\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tpz\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c14RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.tpz\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.wim\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c15RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.wim\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.xar\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c19RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.xar\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.z\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c5RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.z\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$qRegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.zip\DefaultIcon,,%SystemDrive%\Program#$sFiles\7-Zip\7z.dll#$c1RegAddBoot,HKLM,0x1,SOFTWARE\Classes\7-Zip.zip\shell\open\command,,#$q%SystemDrive%\Program#$sFiles\7-Zip\7zFM.exe#$q#$s#$q#$p1#$q
The above are 56 lines and I do not mind about them... and it seems to me that then either the function and the system work very well without any kind of issue.
So, I really cannot see the reason to try (spending time) if the REG_EXPAND_SZ forcing was working or not: please note that I call it a "forcing" because I see it just as a
forcing...
Only my opinions, of course...