Jump to content











Photo
- - - - -

RegHiveLoad and RegHiveUnload only valid in a section


  • Please log in to reply
2 replies to this topic

#1 u2o

u2o

    Frequent Member

  • .script developer
  • 257 posts
  • Location:Argentina
  •  
    Argentina

Posted 21 June 2011 - 01:29 AM

This code Work
[Process]

SET,"%LinkDir%","%PE_Programs%\%ProgramFolder%"

SET,"%ExeFullPath%","#$q%LinkDir%\%ProgramEXE%#$q"

SET,"%ExeParameter%","#$q#$p1#$q"



If,%pCheckBox23%,Equal,True,Run,%scriptfile%,SectionAssocExt,.arw,FastStone.arw,FastStone ARW File,%LinkDir%\FSIcons.db,18,%ExeFullPath%,%ExeParameter%

If,%pCheckBox6%,Equal,True,Run,%scriptfile%,SectionAssocExt,.bmp,FastStone.bmp,FastStone BMP File,%LinkDir%\FSIcons.db,0,%ExeFullPath%,%ExeParameter%





##

##Run,%scriptfile%,SectionAssocExt, EXT , EXT_LINK , EXT_DESCRIPTION , ICON_CONTAINER , ICON_CONTAINER_INDEX , APP , APP_PARAMETERS

##

[SectionAssocExt]

Echo,"Registering Association for Extension: #1"

RegHiveLoad,WB-Software,%RegSoftware%

RegWrite,HKLM,0x1,"WB-Software\Classes\#1","","#2"

RegWrite,HKLM,0x1,"WB-Software\Classes\#2","","#3"

RegWrite,HKLM,0x1,"WB-Software\Classes\#2\DefaultIcon","","#4,#5"

RegWrite,HKLM,0x2,"WB-Software\Classes\#2\shell\open\command","","#6#$s#7"

RegHiveUnLoad,"WB-Software"

This code DONT Work
[Process]

SET,"%LinkDir%","%PE_Programs%\%ProgramFolder%"

SET,"%ExeFullPath%","#$q%LinkDir%\%ProgramEXE%#$q"

SET,"%ExeParameter%","#$q#$p1#$q"



RegHiveLoad,WB-Software,%RegSoftware%



If,%pCheckBox23%,Equal,True,Run,%scriptfile%,SectionAssocExt,.arw,FastStone.arw,FastStone ARW File,%LinkDir%\FSIcons.db,18,%ExeFullPath%,%ExeParameter%

If,%pCheckBox6%,Equal,True,Run,%scriptfile%,SectionAssocExt,.bmp,FastStone.bmp,FastStone BMP File,%LinkDir%\FSIcons.db,0,%ExeFullPath%,%ExeParameter%



RegHiveUnLoad,"WB-Software"





##

##Run,%scriptfile%,SectionAssocExt, EXT , EXT_LINK , EXT_DESCRIPTION , ICON_CONTAINER , ICON_CONTAINER_INDEX , APP , APP_PARAMETERS

##

[SectionAssocExt]

Echo,"Registering Association for Extension: #1"

RegWrite,HKLM,0x1,"WB-Software\Classes\#1","","#2"

RegWrite,HKLM,0x1,"WB-Software\Classes\#2","","#3"

RegWrite,HKLM,0x1,"WB-Software\Classes\#2\DefaultIcon","","#4,#5"

RegWrite,HKLM,0x2,"WB-Software\Classes\#2\shell\open\command","","#6#$s#7"


Is there a possibility of "RegHiveLoad and RegHiveUnload" local to the script?

#2 u2o

u2o

    Frequent Member

  • .script developer
  • 257 posts
  • Location:Argentina
  •  
    Argentina

Posted 21 June 2011 - 03:14 AM

Sorry, delete my message. Both works ...

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 21 June 2011 - 05:38 PM

Topic made unvisible by pscEx




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users