RegHiveLoad,Tmp_Software,%RegSoftware%RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDFRegWrite,HKLM,0x1,Tmp_Software\Classes\SumatraPDF\shell,,openRegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$qRegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\shell\open\command,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q #$q#$p1#$q"RegHiveUnLoad,Tmp_Software
RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDF
RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDFRegWrite,HKLM,0x1,Tmp_Software\Classes\.tdf,,SumatraPDFRegWrite,HKLM,0x1,Tmp_Software\Classes\.xdf,,SumatraPDFRegWrite,HKLM,0x1,Tmp_Software\Classes\.etc,,SumatraPDF
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q
"%PE_Programs%\%ProgramFolder%\%ProgramEXE%",1
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q#$c1"
[Process].....Set,%s%,%ScriptFile%Set,%FVicon%,%PE_Programs%\%ProgramFolder%\7z.dllSet,%CA%,%PE_Programs%\%ProgramFolder%\%ProgramEXE%Set,%CP%,"#$q#$p1#$q"//--//Run,%s%,A,Extension,RegKeyName,Description,IconFile,IconIndex,CommandApp,CommandAppParameter,CommandNameRegHiveLoad,Tmp_Software,%RegSoftware%Run,%s%,A,.001,7-Zip.001,"001 Archive",%FVicon%,9,%CA%,%CP%,openRun,%s%,A,.7z,7-Zip.7z,"7z Archive",%FVicon%,0,%CA%,%CP%,openRun,%s%,A,.arj,7-Zip.arj,"arj Archive",%FVicon%,4,%CA%,%CP%,openRun,%s%,A,.bz2,7-Zip.bz2,"bz2 Archive",%FVicon%,2,%CA%,%CP%,openRun,%s%,A,.bzip2,7-Zip.bzip2,"bzip2 Archive",%FVicon%,2,%CA%,%CP%,openRun,%s%,A,.cpio,7-Zip.cpio,"cpio Archive",%FVicon%,12,%CA%,%CP%,openRun,%s%,A,.deb,7-Zip.deb,"deb Archive",%FVicon%,11,%CA%,%CP%,openRun,%s%,A,.dmg,7-Zip.dmg,"dmg Archive",%FVicon%,17,%CA%,%CP%,openRun,%s%,A,.fat,7-Zip.fat,"fat Archive",%FVicon%,21,%CA%,%CP%,openRun,%s%,A,.gz,7-Zip.gz,"gz Archive",%FVicon%,14,%CA%,%CP%,openRun,%s%,A,.gzip,7-Zip.gzip,"gzip Archive",%FVicon%,14,%CA%,%CP%,openRegHiveUnLoad,Tmp_Software[A]RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2RegWrite,HKLM,0x1,Tmp_Software\Classes\#2,,"#3"RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q,#5"RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"
Lancelot,No luck with associations, yet. I may not be filling in the information correctly. Can you tell me what should I fill in for these three fields?Associate RegKeyOpen RegKey Nameopen commandI've attempted simple associations several times, but no success.
After you get familiar, association is no big deal, it seems you'd never made custom associations on your hostos pc registry before. ;).
Associate RegKey--> any value reminding application would be enough ex: for SumatraPDF ==> SumatraPDF :>Open RegKey Name --> default value (open) would do the trick, Leave it as it is.open command --> script have top most common value, %98 would work.
%99 cases, Copy values under [Associate] to your custom script (under //Registry if "Script Creator" used) should mostly do things work...
If you still fail, send your script under construction (mediafire + 7z) and Script_Creator_y50_Associate.script you used (changed values before Goo) for the task ;).
your mpc (Media Player Classic) .mp3 association works here, mpc not.....mpc itself seems to me the trouble, when trying to play .mp3 .....does mpc can play .mp3 there ?
"SC Association Helper" would not produce above codes since August 31, 2011 , v5
I like TMViewer,
Ah, and I also feel you need to update Gena from server ;).
here is important tip:Get rid of hardcoded registry lines to get script more compatible to all available options.Common practice with an example:RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV\shell\open\command,,"#$qX:\Gena's Programs\TMViewer_Prg\TMViewer.exe#$q /Shell"--->RegWrite,HKLM,0x2,Tmp_Software\Classes\TMV\shell\open\command,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q /Shell"
Use codebox for your looong codes ;) I added codebox to your codes on your previous posts to demonstrate,
Associate extension:.mp3Associate RegKey:mplayerc.mp3Description:MP3Open RegKeyName:openDefault Icon:"%PE_Programs%\%ProgramFolder%\mpciconlib.dll",24Open Command:"%PE_Programs%\%ProgramFolder%\%ProgramEXE%" "%1"
Associations are working in both TextMaker and PlanMaker now.
Are you saying to remove the portion of text that is colored?
MPC - Home Cinema problem fixed. After changing the icon number, all associations, context menu and "click on mp3 to play" work. Can I ask, how do you know what icons go with what numbers?
I moved your topic It would be nice to give a list at post 1 ;)
Are you saying to remove the portion of text that is colored?I say replace ;). (+ also bolded 0x1 -> 0x2)
To find default association values of a utility, I follow footprints of that utility,giving example with MPC:i simply install to my hostos,associate with .mp3 extension through MPC menus,open regedit.exebrowse to key HKEY_CLASSES_ROOT\.mp3read (Default) value --> mplayerc.mp3browse to key HKEY_CLASSES_ROOT\mplayerc.mp3
OK, I think you suggest to alter the path to fit Gena.
Get rid of hardcoded registry lines to get script more compatible to all available options.
Sorry, but I'm not sure about bold for 0x1 and 0x2. Do I only need to make them bold or do something with the numbers?