midiboy Posted March 8, 2005 Posted March 8, 2005 Hi !Installing Google Desktop search silently is fairly easy, the switch is "/silent"However, there are plugins available which cause Google Desktop search to pop up a message during installation asking to acknowledge that plugin installation. Is there any way to get rid of that or to temporarily disable that warning message on plugin installation by a registry tweak or something ?Thanks,Alex
digitalfrost Posted May 17, 2005 Posted May 17, 2005 Here is my plugins.reg:Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop]"instanceid"="52b7299ca77943ab49b88a8066fcfb5d"[HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components]"last_update"=hex(b):01,00,00,00,00,00,00,00[HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components\{EAE377CA-10EC-4933-A56F-E1824D0DEAC9}]"title"="Larry's OpenOffice and StarOffice Indexer 1.01""description"="Indexes all OpenOffice.org/StarOffice6+ files""icon"="""state"=dword:00000001"status"=hex(b):d6,d8,03,f4,d2,9c,dd,82"extension"=hex:13,00,00,00,06,00,00,00,73,00,78,00,63,00,06,00,00,00,73,00,74,\ 00,63,00,06,00,00,00,73,00,78,00,64,00,06,00,00,00,73,00,74,00,64,00,06,00,\ 00,00,73,00,78,00,69,00,06,00,00,00,73,00,74,00,69,00,06,00,00,00,73,00,78,\ 00,77,00,06,00,00,00,73,00,78,00,67,00,06,00,00,00,73,00,74,00,77,00,06,00,\ 00,00,73,00,74,00,6d,00,06,00,00,00,6f,00,64,00,74,00,06,00,00,00,6f,00,74,\ 00,74,00,06,00,00,00,6f,00,64,00,67,00,06,00,00,00,6f,00,74,00,67,00,06,00,\ 00,00,6f,00,64,00,70,00,06,00,00,00,6f,00,74,00,70,00,06,00,00,00,6f,00,64,\ 00,73,00,06,00,00,00,6f,00,74,00,73,00,06,00,00,00,6f,00,64,00,66,00[HKEY_CURRENT_USER\SOFTWARE\Google\Google Desktop\Components\{7DE2B635-4F72-4282-A466-11401ED7B0A4}]"title"="Mp3tag Audio Indexer 1.00 by Florian Heidenreich""description"="Indexes aac, ape, apl, flac, mp+, mp1, mp2, mp3, mp4, m4a, m4b, mpc, ogg, ofr, ofs, spx, tta and wv files""icon"="""state"=dword:00000001"status"=hex(b):33,5c,b0,15,3f,b7,0b,76"extension"=hex:14,00,00,00,06,00,00,00,61,00,61,00,63,00,06,00,00,00,61,00,70,\ 00,65,00,06,00,00,00,61,00,70,00,6c,00,08,00,00,00,66,00,6c,00,61,00,63,00,\ 06,00,00,00,6d,00,70,00,2b,00,06,00,00,00,6d,00,70,00,31,00,06,00,00,00,6d,\ 00,70,00,32,00,06,00,00,00,6d,00,70,00,33,00,06,00,00,00,6d,00,70,00,34,00,\ 06,00,00,00,6d,00,34,00,61,00,06,00,00,00,6d,00,34,00,62,00,06,00,00,00,6d,\ 00,70,00,63,00,06,00,00,00,6f,00,67,00,67,00,06,00,00,00,6f,00,66,00,72,00,\ 06,00,00,00,6f,00,66,00,73,00,06,00,00,00,73,00,70,00,78,00,06,00,00,00,74,\ 00,74,00,61,00,04,00,00,00,77,00,76,00,f0,00,00,00,89,85,94,ed,ff,ff,83,4d,\ fc,ff,eb,26,8b,45,ec,8b,00,8b,00,89,85,68,ed,ff,ff,33,c0,40,c3,8b,65,e8,8b,\ 85,68,ed,ff,ff,83,4d,fc,ff,33,f6,8b,9d,a0,ed,ff,ff,3b,c6,7d,2b,50,68,74,11,\ 00,01,8d,85,c4,f1,ff,ff,50,ff,15,80,10,00,01,83,c4,0c,56,56,8d,85,c4,f1,ff,\ ff,50,53,ff,b5,ac,ed,ff,ff,e9,0d,01,00,00,39,b5,a8,ed,ff,ff,0f,85,23,01,00,\ 00,39,b5,a4,ed,ff,ff,0f,84,0b,01,00,00,68,20,11,00,01,ff,b5,b0,ed,ff,ff,ff,\ 15,50,10,00,01,3b,c6,75,6a,8d,85,c4,ef,ff,ff,50,56,56,56,53,ff,15,c8,10,00,\ 01,83,c4,14,68,90,11,00,01,8d,85,c4,ef,ff,ff,50,8b,3d,54,10,00,01,ff,d7,85,\ c0,74,1f,68,84,11,00,01,8d,85,c4,ef,ff,ff,50,ff,d7,85,c0,74,0d,56,56,56,68,\ 2c,11,00,01,e9,e0,fe,ff,ff,56,56,56,68,2c,11,00,01,53,6a,09,e8,d5,f3,ff,ff,\ c7,85,b4,ed,ff,ff,04,00,00,00,00What is important is: The value of status seems to be connected to the instanceid, so these two values must always be from the same installation. last_update must be greater than 1 for Desktop Search to recognize the new plugins. The plugins are installed by registering their .dlls (regsvre32 <dll>, see the .inf below), we omit the popup message during registration by inserting the plugin settings into HKCU\Google... _before_ registering the plugin.I use the .reg file in conjunction with this inf file:[Version]Signature=$Windows NT$[DefaultInstall]AddReg=InstallGDSAddReg=Plugins_regCopyFiles=Plugins[Stage2]DelReg=FirstUseAddReg=GDS_settings[InstallGDS]HKLM,"%RunOnce%","GDS_setup1",,"%01%\GoogleDesktopSearchSetup.exe /silent";HKLM,"%RunOnce%","GDS_setup2",,"pskill GoogleDesktop.exe"HKLM,"%RunOnce%","GDS_setup3",,"%10%\system32\rundll32.exe setupapi,InstallHinfSection Stage2 128 %01%\%InfFile%"[FirstUse];remove the first use pageHKCU,"SOFTWARE\Google\Google Desktop","first_use"[GDS_settings];search in taskbarHKCU,"SOFTWARE\Google\Google Desktop","display_mode",0x00010001,08,00,00,00;we don't want it to check .exe files, why should it?HKCU,"SOFTWARE\Google\Google Desktop","file_extensions_to_skip",,",tmp,temp,log,pst,ost,oab,nk2,dat,000,pf,xml,obj,pdb,exe"HKCU,"SOFTWARE\Google\Google Desktop","file_extensions_to_skip_initial_crawl",,",tmp,temp,pst,ost,oab,nk2,exe";i didn't buy that mouse with scrolling wheel just for looks...HKCU,"SOFTWARE\Google\Google Desktop\Preferences","num_results",0x00010001,64,00,00,00[Plugins_reg];import plugin settings, along with instanceid and last_update setting > 0HKLM,"%RunOnce%","GDS_setuplarry",,"regedit /s ""%01%\plugins.reg"""[Instplug];register the plugin dllsHKLM,"%RunOnce%","GDS_setup4",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\LarrysOpenOfficeandStarOfficeIndexer.dll"""HKLM,"%RunOnce%","GDS_setup5",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\GoogleSearchForExplorer.dll"""HKLM,"%RunOnce%","GDS_setup6",,"regsvr32 /s ""%16422%\%AppPath%\Plugins\Mp3tagGoogleDesktop.dll"""[Plugins]LarrysOpenOfficeandStarOfficeIndexer.dll,,,0x00000002GoogleSearchForExplorer.dll,,,0x00000002Mp3tagGoogleDesktop.dll,,,0x00000002[Strings]RunOnce = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"AppPath="Google\Google Desktop Search"InfFile="google.inf"DispName="Google Desktop Search"UninstallDispName="teaetat"UnInstallPath="Software\Microsoft\Windows\CurrentVersion\Uninstall\test12351"[DestinationDirs]Plugins=16422,%AppPath%\Pluginsinf=17I would do it all with just the inf file, I just can figure out how to write QWORD values to the registry using .infs. Hope this helps.
bacd Posted May 19, 2005 Posted May 19, 2005 what command line do you use to run the above .inf file?
digitalfrost Posted May 19, 2005 Posted May 19, 2005 rundll32 setupapi,InstallHinfSection DefaultInstall 128 c:\blabla\google.inf
bacd Posted May 19, 2005 Posted May 19, 2005 thats what I thought, but I can never get the "128" portion of the code correct...thanks!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now