Geej Posted October 5, 2012 Posted October 5, 2012 (edited) Everything Search Engine 1.3.3.658b (with .lng support)For x86/x64.Localised language support for French/German/Spanish.# Small installation file# Clean and simple user interface# Quick file indexing# Quick searching# Minimal resource usage# Share files with others easily# Real-time updatingEverything will only locate files and folders on local NTFS volumes.Everything requires administrative privileges for low level read access to volumes.Configure to run as services.Auto Startup item (even with UAC on).Uninstallable: YesEverythingSearchEngine_1.3.3.658b_dual.WASize: 930.14 Kb (952,467 bytes)MD5: C5944153126EC477E3BB7751689C00F9Tested on VM win7 x86 only.Thanks to mooms, myselfidem & RicaNeaga for the help/testing on x64 system. Edited July 3, 2013 by Geej bluesmoke 1 Quote
RicaNeaga Posted October 5, 2012 Posted October 5, 2012 Great! Can you also make an x64 addon of Everything? Quote
Geej Posted October 5, 2012 Author Posted October 5, 2012 I don't have x64 os. Sorry.Try to edit manually the addon to fit x64. Think change the inf dirid from 16422 to 16426Also use toolkit to edit the copied location to %programfiles (x86)%Dun know any more registry entry need to add or not.Regards Quote
yogurt Posted October 6, 2012 Posted October 6, 2012 LOL, thanks for this one Geej, I was about to compile it tonite. :prop: Quote
mooms Posted October 6, 2012 Posted October 6, 2012 (edited) Hi Geej, thanks for sharing, i have a question:What this key do: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"!EverythingSearchTool"=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,\ 20,00,61,00,64,00,76,00,70,00,61,00,63,00,6b,00,2e,00,64,00,6c,00,6c,00,2c,\ 00,4c,00,61,00,75,00,6e,00,63,00,68,00,49,00,4e,00,46,00,53,00,65,00,63,00,\ 74,00,69,00,6f,00,6e,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,\ 00,5c,00,69,00,6e,00,66,00,5c,00,45,00,76,00,74,00,68,00,69,00,6e,00,67,00,\ 2e,00,69,00,6e,00,66,00,2c,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,00,\ 00It is for bypassing UAC at Everything start ?Also, you can add two files in your addon:Everything.lng to add foreigns languagues supportEverything.ini for customization.Content of mine:localization=Françaisshow_highlighted_search_terms=1allow_multiple_windows=1allow_multiple_windows_from_tray=1I have made a french addon based on a sfx rar archive. (made it for XP originally but it it works in Windows7 X86 and X64 as a silent installer)my comment:Path=%PROGRAMFILES%\EverythingSavePathSilent=1Overwrite=1Title=Everything InstallationShortcut=P,"Everything.exe", "", "indexe tous les fichiers", "Everything"Technical explanation: as the sfx archive is a 32 bit executable, the variable %ProgramFiles% is correctly set at Program Files (x86) on Windows 7 X64.If i want to extract to Program Files in a X64 environement with a RAR SFX archive, i have two choices:- replace %ProgramFiles% with %ProgramW6432% (advantage: the archive can be made in a 32 bits OS)- keep %ProgramFiles% but make a 64bits sfx archive (obviously only possible with Winrar 64 bits )But i don't have yet found how to add autostart with UAC bypassing in my addon, hence the first question. Edited October 6, 2012 by mooms Quote
myselfidem Posted October 6, 2012 Posted October 6, 2012 (edited) The reg key is to launch "EveryThing Search Tool" using RunOnce:The value is:rundll32 advpack.dll,LaunchINFSection %windir%\inf\Evthing.inf,Install Edited October 6, 2012 by myselfidem Quote
mooms Posted October 6, 2012 Posted October 6, 2012 Allright, i have understood, It's only to install it at runonce (but why it's in hex ?)So i still search a way to add autostart without UAC prompt,to my Everything addon (as it is explained in the FAQ:) 1.12 How do I bypass the UAC to run "Everything" with administrative privileges on system startup?Disable run on system startup in "Everything".Follow the Make Vista launch UAC restricted programs at startup with Task Scheduler guide athttp://blogs.techrepublic.com.com/window-on-windows/?p=616Make sure you use -startup in the Add Arguments box Quote
myselfidem Posted October 6, 2012 Posted October 6, 2012 (edited) Allright, i have understood, It's only to install it at runonce (but why it's in hex ?)When you save the registy key, the value is with hexadecimal.I think we must add a reg key inside the registry with hex values to avoid errors and to write the value if % or others signs are used !*Edit: It seems to avoid to launch EveryThing on startup it's better to use RunOnceEx during the silent installation!And create a task to bypass UAC, save all reg files and path and integrate inside your customized program!Import a Task:http://technet.microsoft.com/en-us/library/cc722156.aspxhttp://technet.micro...y/cc722156.aspx Edited October 6, 2012 by myselfidem Quote
mooms Posted October 6, 2012 Posted October 6, 2012 (edited) Very interesting, so we can add variable in reg files, i always thougt it was impossible!But how to create reg files in hex format ?I always use RunOnceEx in my wa addons example, :[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\WinrarInstaller]"inf"="RUNDLL32 advpack.dll,LaunchINFSection Winrar.inf,Install"myselfidem: do you have a sample command to create a task ? Edited October 6, 2012 by mooms Quote
myselfidem Posted October 6, 2012 Posted October 6, 2012 (edited) We can use a batch file but available for Windows Vista and Windows 7:Using the command prompt to see options:http://technet.micro...6.aspx#BKMK_cmdschtasks /Create /?Example: Schtasks.exe /CREATE /TN mcupdate /XML "C:\TAKS\mcupdate"You can also save the new created task as XML file and use this one for the installation. *Edit: Tip about reg file hex value.Go to your Registry, write the path and save your new reg file and this one will be write with hex values !Maybe there is a tool to convert hex registry values to decimal values ? Edited October 6, 2012 by myselfidem Quote
Geej Posted October 7, 2012 Author Posted October 7, 2012 Updated with .lng / .ini support as requested by mooms (Actually I forgot to include .lng file... )@mooms, to bypass UAC at Everything start, try adjust/add your Autounattend.xml with this <settings pass="offlineServicing"> <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="[url="http://schemas.microsoft.com/WMIConfig/2002/State"]http://schemas.micro...fig/2002/State"[/url] xmlns:xsi="[url="http://www.w3.org/2001/XMLSchema-instance%22>"]http://www.w3.org/20...hema-instance">[/url] <EnableLUA>false</EnableLUA> </component> </settings>I use a simple batch to export the RO key in .reg. (I also use nircmd.exe to help me open up the key in registry for visual inspection.)Need to enter value for Set infname= and set appname= before running the batch code.@Echo offTitle Export a RunOnce key for inf installationSet infname=set appname=Echo This script writes a reg_expand_sz to RunOnceEcho then export the key in .reg formatEcho Note: Only main key can be exported.Echo Export Individual key is impossibleEcho Please set the appname inside this script first.pauseclsecho.echo Info:echo infname is %infname%echo appname is %appname%pauseREG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v !%appname% /t REG_EXPAND_SZ /d "rundll32 advpack.dll,LaunchINFSection %%windir%%\inf\%infname%.inf,Install" /freg export HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce RO%appname%.regecho.Echo Inspect visually the RunOnce entry before deleting in next stepnircmd regedit "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"Echo Will delete %appname% key next. Otherwise close console box.pausereg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v !%appname% /fSo I presume we are can go wild with RunOnce method since not many people know this method. In fact I just discovered it recently too.RunOnce key with ! explainedEdit: Additional infoRunOnce support REG_EXPAND_SZ but RunOnceEx doesn't. Quote
mooms Posted October 7, 2012 Posted October 7, 2012 (edited) Geej: thanks for the explanations, that's very instructive and will be handy in my future creations !About your solution for bypassing UAC, i don't want to disable it, juste create a task to launch everything with admin privileges as i explained.See my sfx below if you want to add that in you addon.myselfidem: thanks for the tips, that was very helpfull, i was able to create a SFX wich import the task after "installation".Here is my two prototypes of switchless "installer" of Everything if anyone want to check (Everything will be in french by default, no uninstall as it is not really needed)32bits:http://www.mediafire.com/?7fb9ok0bb44vkgd64bits:http://www.mediafire.com/?eezrg2md5rsoy5wTested both in VM. Edited October 8, 2012 by mooms Quote
Geej Posted October 8, 2012 Author Posted October 8, 2012 Thank you mooms for the 2 uploads. I will study them... Maybe I will keep UAC in future if this is feasible, just like you do.(also thanks myselfidem for the tips, you are also very resourceful.) Quote
myselfidem Posted October 8, 2012 Posted October 8, 2012 (edited) @ GeejThanks @ moomsAbout everyg32.exeI made some changes, like this:Rename Everything64.xml as: Everything.xml (Available for Windows 7)Change everything.cmd like this:cmd /c schtasks /Create /TN "Lancer Everything" /XML "%~dp0Everything.xml"del Everything.xmldel everything.cmdWorks fine but the batch execution shows the command prompt!About XML Task versions ("1.1"; "1.2"; "1.3"):Configured for Windows Server 2003, Windows XP, Windows 2000<Task version="1.1" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">Configured for Windows Vista and Windows Server 2008<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">Configured for Windows 7, Windows Server 2008 R2<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">Thanks and regards*Edit: I hope you see that I wouldn't hijack the thread Edited October 8, 2012 by myselfidem Quote
mooms Posted October 8, 2012 Posted October 8, 2012 (edited) Geej: yes it's a good thing to keep UAC.I have remade the sfx with UPX'ed 7zip sfx mod .- no more cmd file inside the archive- no more cmd window flashing- smaller executable. (502 kb vs 415 kb, thanks to LZMA and UPX compression )- But you must execute them with admin right (Winrar sfx will automatically prompt, not 7zip sfx)Tested both in VM.Not tested in integration yet but should work fine:32bits:http://www.mediafire...aius5qs66mc94s764bits:http://www.mediafire...iu0yri2ro9dl1kbHere is the config file for the 64 bits version: (juste replace the two 64 by 32 for the 32 bits version).As the sfx is a 32 bits executable, the %PROGRAMFILES% variable is working correctly on both architecture.the only real change between the two versions is the variable in the xml file.;!@Install@!UTF-8!GUIMode="2"InstallPath="%PROGRAMFILES%\\Everything"RunProgram="hidcon:cmd /c schtasks /Create /XML Everything64.xml /TN Everything"Delete="%PROGRAMFILES%\\Everything\\Everything64.xml";!@InstallEnd@!myselfidem: the linecmd /c schtasks /Create /TN "Lancer Everything" /XML "%~dp0Everything.xml"throw me an error when used with 7zip sfx module. (tried multiple times)But again, thanks for the infos. Edited October 8, 2012 by mooms Quote
myselfidem Posted October 8, 2012 Posted October 8, 2012 (edited) Of course mooms, my example was created for your previous version using WinRar and a batch file! You can also add an icon using sfx modified module for your exe file an create a shorcut:Look at "Replacing the icon" and inside "Configuration file parameters": Shorcut.http://7zsfx.info/en/Regards*Edit: the new exe sfx file works fine! Edited October 8, 2012 by myselfidem Quote
mooms Posted October 8, 2012 Posted October 8, 2012 (edited) Yes i know for both,With this setup, Everything will always be running with an icon in the taskbar to access it.If you access it from a shortcut, you will get an UAC prompt.For the icon, as the executable is only for integration purpose, I think it's not very important.For the command line, i thought it was because the parameters /TN and /XML was inversed.edit: thanks for testing!tested in integration in Windows 7 32 bits, works too. Edited October 8, 2012 by mooms Quote
RicaNeaga Posted October 8, 2012 Posted October 8, 2012 (edited) @mooms Your latest .exes from your previous post in this thread - are they still in frech by default? If yes, how can I modify them to be english by default? Thanks. And sorry Geej for this a little offtopic discussion, hope you don't mind. Edited October 8, 2012 by RicaNeaga Quote
mooms Posted October 8, 2012 Posted October 8, 2012 (edited) @RicaNega:Thay're all in French by default.Remove this line in Everything.inilocalization=FrançaisAnd Everything will be in English.You can use your own ini file if you want.You will need 7z SFX Archive splitter to decompose the sfx.Then you have to rebuild the 7z archive (LZMA) and remake the sfx with this command:copy /b Everything.sfx + Everything.txt + Everything.7z Everything.exe__________________________________________________I have made an other sfx, universal 32/64 bits, and asking for admin right, with this code:;!@Install@!UTF-8!GUIMode="2"MiscFlags="4"InstallPath="%PROGRAMFILES%\\Everything"RunProgram="x86:hidcon:cmd /c schtasks /Create /XML Everything32.xml /TN Everything"RunProgram="x64:hidcon:cmd /c schtasks /Create /XML Everything64.xml /TN Everything"Delete="%PROGRAMFILES%\\Everything\\Everything32.xml"Delete="%PROGRAMFILES%\\Everything\\Everything64.xml";!@InstallEnd@!Thanks to myselfidem for the idea.Here it is:http://www.mediafire...k8k2dd884dcc69hudpate: an other version with shortcut in start menu and icon for the sfx:http://www.mediafire...yl8qsz1z27z2uvu Edited October 9, 2012 by mooms Quote
myselfidem Posted October 9, 2012 Posted October 9, 2012 (edited) @moomsTested on Windows 7 x86 and works fine! Thanks.@RicaNeagaYou can also change the language after the silent installation: Tools | Options | LanguageOn a runing system, you can use the shorcut on: Start Menu | Programs | EverythingOr the shorcut on the ToolBar. Edited October 9, 2012 by myselfidem Quote
Geej Posted October 10, 2012 Author Posted October 10, 2012 Thanks mooms for the upload in #19. I will do my own test with UAC set to default. (I manual run on the VM works, so I think should work unattendedly too)I personally would like to adapt your xml into my inf and see If it could be launch using postsetupcommand (for my personal build)Can I ask how you create the xml? Did you use the Task Scheduler's GUI to create it, then export the xml file?Do you know what would be the command if using schtasks.exe on the command line?Many thanks to you guys. With win7, learn something new always ... Quote
myselfidem Posted October 10, 2012 Posted October 10, 2012 (edited) Yes Geej the Task was exported with the Task Scheduler's GUI to create it.I found a nice batch that we can adapt for Everything Search Engine.Available for Windows XP, Vista and Windows 7:http://myunster.com/...tration/30.htmlHere is for Everything.exe and you can improve it adding values for x64 systems (execution path: SET Task=).I made some changes for Everything.exe:Everything_Schedule.bat::*******************************************:::: Everything_Schedule.bat :::: Set variables TaskName, Task and go ahead :::: http://myunster.com ::::*******************************************::@ECHO offECHO "Proceeding..." >NULREM Delete variables, may be cachedSET "TaskName="SET "Task="REM Set variablesSET TaskName=EverythingREM Following task will be executed on Logon SET Task=\"C:\Program Files\Everything\Everything.exe\" -startupREM Determine if windows xpVER | find "XP" > NULIF %ERRORLEVEL% == 0 GOTO ver_xpREM Determine if windows Vista/Win7systeminfo | find "OS Name" > %TEMP%\osname.txtFOR /F "usebackq delims=: tokens=2" %%i IN (%TEMP%\osname.txt) DO SET Version=%%iDEL /F %TEMP%\osname.txtECHO %Version% | find "Windows 7" > NULIF %ERRORLEVEL% == 0 GOTO ver_7ECHO %Version% | find "Windows Vista" > NULIF %ERRORLEVEL% == 0 GOTO ver_vista:ver_xp:Run Windows XP specific commands here.REM Delete variable, may be cachedSET "Result="REM WinXP doesn't support TN for schtasks /queryFOR /F "delims=, tokens=2" %%R IN ('schtasks /query /fo csv /v ^| findstr /L /C:"%TaskName%"') DO SET Result=%%RIF (%Result%)==() SET Result="-1"IF "%TaskName%" == %Result% (REM Delete Task if it exists SCHTASKS /Delete /TN "%TaskName%" /F)REM Then Create with Highest privilegeSCHTASKS /Create /TN "%TaskName%" /TR "%Task%" /SC ONLOGON /RL HIGHESTGOTO exit:ver_vista:Run Windows Vista specific commands here.GOTO Elevation:ver_7:Run Windows 7 specific commands here.GOTO Elevation:ElevationREM Don't forget escape double quotes for CMD argument that you will pass to powershellPushD "%~dp0"IF EXIST "%~0.ELEVATED" DEL /F "%~0.ELEVATED"SET Argument=SCHTASKS /Create /F /TN \"%TaskName%\" /TR \"%Task%\" /SC ONLOGON /RL HIGHESTSET ELEVATED_CMD=PowerShell -Command (New-Object -com 'Shell.Application').ShellExecute('Cmd.exe', '/C %Argument%', '', 'runas')ECHO %ELEVATED_CMD% >> "%~0.ELEVATED"CALL %ELEVATED_CMD%DEL /F "%~0.ELEVATED"PopDGOTO exit:exitECHO "Done!"EXITTested on Windows 7 x86 and works fine, even if the shorcut isn't already inside the ToolBar, I can launch Everything from C:\Program Files\Everything\Everything.exe without errors! And after the icon appears on the ToolBar or after restarting the computer!More help:http://www.robvander...om/schtasks.php*Edit: batch file updated*Edit 2:We can also use variables if needed (to avoid adding two xml files) using:For Windows x86:SET Task=\"%%ProgramFiles%%\Everything\Everything.exe\" -startupFor Windows x64:SET Task=\"%%ProgramFiles(x86)%%\Everything\Everything.exe\" -startupTested also and works fine! Edited October 11, 2012 by myselfidem Quote
mooms Posted October 10, 2012 Posted October 10, 2012 (edited) Thanks mooms for the upload in #19. I will do my own test with UAC set to default. (I manual run on the VM works, so I think should work unattendedly too)I personally would like to adapt your xml into my inf and see If it could be launch using postsetupcommand (for my personal build)Can I ask how you create the xml? Did you use the Task Scheduler's GUI to create it, then export the xml file?Do you know what would be the command if using schtasks.exe on the command line?Many thanks to you guys. With win7, learn something new always ... Yes i have created the task in Task Scheduler's GUI, exported it, and then i have changed some lines in the XML file, like removing author/owner, and replacing the absolute paths with variables. Edited October 10, 2012 by mooms Quote
myselfidem Posted October 11, 2012 Posted October 11, 2012 For testing purpose, I created an sfx file using the batch file given on my previous post and for x86 and x64 systems.All files are inside the "EverythingSearch.rar".Download for testing:http://www.mediafire.com/?udcf7go426rxtTested and works fine! Regards Quote
Geej Posted October 12, 2012 Author Posted October 12, 2012 Thanks myselfidem for taking the effort to further test using batch script instead of xml.I will test your version just to gain more insight...The sfx version you use is 1.4.3.2367 which has description : 7z Setup SFX (x86)I have 1.5.0.2478 which has same description : 7z Setup SFX (x86)May I ask if those version also will work on x64? Or is there x64 module?I just done testing with xml via inf, looks good. Only need to futher test uninstall routine.Best regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.