Prev Previous Post   Next Post Next
Old 2nd August 2005, 04:32   #9
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
regedit - special:

/e = export
/s = do it silent - can be used on import&export
/a = export als old fashioned win9x style (hidden switch, only NT systems / ascii-format)

in a reg file:
[-key] will delete a key
[key] will add a key

on export you should be sure that regedit.exe is closed otherwise all export will fail.

code:
;close regedit before export
GoTo Running2

Exit2:
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDNO Running2
Quit

Running2:
FindWindow $R9 "RegEdit_RegEdit" ""
IntCmp $R9 0 NotRunning2
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "please close the windows registry\n program (REGEDIT.EXE, REGEDT32.EXE) !" IDCANCEL Exit2
GoTo Running2
NotRunning2:


code:
Execwait '"regedit.exe" /e $path\regfile.reg HKEY_CURRENT_USER\Software\mysoftware'


Greets, Brummelchen
Brummelchen is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump