useful after release.py

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5325 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-10-05 17:44:28 +00:00
parent 0c11506eb5
commit 33667e8951

15
Scripts/RegRestore.nsi Normal file
View file

@ -0,0 +1,15 @@
Name "Restore NSIS Registry"
OutFile RegRestore.exe
SilentInstall silent
XPStyle on
Section
WriteRegStr HKLM SOFTWARE\NSIS "" $PROGRAMFILES\NSIS
WriteRegStr HKCR NSIS.Header\DefaultIcon "" $PROGRAMFILES\NSIS\makensisw.exe,1
WriteRegStr HKCR NSIS.Script\DefaultIcon "" $PROGRAMFILES\NSIS\makensisw.exe,1
WriteRegStr HKCR NSIS.Script\shell\compile\command "" '"$PROGRAMFILES\NSIS\makensisw.exe" "%1"'
WriteRegStr HKCR NSIS.Script\shell\compile-compressor\command "" '"$PROGRAMFILES\NSIS\makensisw.exe" /ChooseCompressor "%1"'
MessageBox MB_OK Restored!
SectionEnd