33!include " FileAssociation.nsh"
44!addplugindir .\nsis-plugins
55
6- Name " SPEdit "
7- OutFile " SPEdit .Installer.exe"
6+ Name " SPCode "
7+ OutFile " SPCode .Installer.exe"
88
9- InstallDir $APPDATA \spedit
9+ InstallDir $APPDATA \spcode
1010
1111RequestExecutionLevel admin
1212
@@ -38,7 +38,7 @@ SetOutPath $INSTDIR
3838!insertmacro CheckNetFramework 48
3939
4040
41- File Spedit .exe
41+ File Spcode .exe
4242File MahApps.Metro.dll
4343File ICSharpCode.AvalonEdit.dll
4444File System .Windows.Interactivity.dll
@@ -55,7 +55,7 @@ File DiscordRPC.dll
5555File ControlzEx.dll
5656File Octokit.dll
5757
58- File lang_0_spedit .xml
58+ File lang_0_spcode .xml
5959File GPLv3.txt
6060
6161IfFileExists $INSTDIR \options_0.dat OptionsExist OptionsDoesNotExist
@@ -72,14 +72,14 @@ CreateDirectory "$INSTDIR\sourcepawn\configs"
7272CreateDirectory " $INSTDIR\sourcepawn\configs\sm_1_10_0_6478"
7373File /r " .\sourcepawn"
7474
75- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " DisplayName" " SPEdit - A lightweight sourcepawn editor"
76- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " UninstallString" " $INSTDIR\uninstall.exe"
77- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " InstallLocation" " $INSTDIR"
78- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " DisplayIcon" " $INSTDIR\Spedit .exe"
79- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " Publisher" " Hexah"
80- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " DisplayVersion" " 1.3.4.6 "
81- WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " NoModify" 1
82- WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit " " NoRepair" 1
75+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " DisplayName" " SPCode - A lightweight sourcepawn editor"
76+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " UninstallString" " $INSTDIR\uninstall.exe"
77+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " InstallLocation" " $INSTDIR"
78+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " DisplayIcon" " $INSTDIR\Spcode .exe"
79+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " Publisher" " Hexah"
80+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " DisplayVersion" " 1.4.x.x "
81+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " NoModify" 1
82+ WriteRegDWORD HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode " " NoRepair" 1
8383
8484WriteUninstaller $INSTDIR \uninstall.exe
8585SectionEnd
@@ -88,33 +88,33 @@ SectionEnd
8888
8989Section " File Association (.sp)" prog02
9090SectionIn 1
91- ${registerExtension} " $INSTDIR\Spedit .exe" " .sp" " Sourcepawn Script"
91+ ${registerExtension} " $INSTDIR\Spcode .exe" " .sp" " Sourcepawn Script"
9292System::Call ' Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
9393SectionEnd
9494
9595
9696Section " File Association (.inc)" prog03
9797SectionIn 1
98- ${registerExtension} " $INSTDIR\Spedit .exe" " .inc" " Sourcepawn Include-File"
98+ ${registerExtension} " $INSTDIR\Spcode .exe" " .inc" " Sourcepawn Include-File"
9999System::Call ' Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
100100SectionEnd
101101
102102
103103Section " File Association (.smx)" prog04
104104SectionIn 1
105- ${registerExtension} " $INSTDIR\Spedit .exe" " .smx" " Sourcemod Plugin"
105+ ${registerExtension} " $INSTDIR\Spcode .exe" " .smx" " Sourcemod Plugin"
106106System::Call ' Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
107107SectionEnd
108108
109109
110110Section " Desktop Shortcut" prog05
111111SectionIn 1
112- CreateShortCut " $DESKTOP\SPEdit .lnk" " $INSTDIR\Spedit .exe" " "
112+ CreateShortCut " $DESKTOP\SPCode .lnk" " $INSTDIR\Spcode .exe" " "
113113SectionEnd
114114
115115Section " Startmenu Shortcut" prog06
116116SectionIn 1
117- CreateShortCut " $SMPROGRAMS\SPEdit .lnk" " $INSTDIR\Spedit .exe" " "
117+ CreateShortCut " $SMPROGRAMS\SPCode .lnk" " $INSTDIR\Spcode .exe" " "
118118SectionEnd
119119
120120Section " Uninstall"
@@ -123,7 +123,7 @@ Delete $INSTDIR\uninstall.exe
123123
124124
125125
126- Delete $INSTDIR \Spedit .exe
126+ Delete $INSTDIR \Spcode .exe
127127Delete $INSTDIR \MahApps.Metro.dll
128128Delete $INSTDIR \ICSharpCode.AvalonEdit.dll
129129Delete $INSTDIR \System .Windows.Interactivity.dll
@@ -139,17 +139,17 @@ Delete $INSTDIR\Newtonsoft.Json.dll
139139Delete $INSTDIR \DiscordRPC.dll
140140
141141
142- Delete $INSTDIR \lang_0_spedit .xml
142+ Delete $INSTDIR \lang_0_spcode .xml
143143Delete $INSTDIR \GPLv3.txt
144144Delete $INSTDIR \*.dat
145145RMDir /r $INSTDIR \sourcepawn
146146RMDir $INSTDIR
147147
148- Delete " $DESKTOP\SPEdit .lnk"
149- Delete " $SMPROGRAMS\SPEdit .lnk"
148+ Delete " $DESKTOP\SPCode .lnk"
149+ Delete " $SMPROGRAMS\SPCode .lnk"
150150
151151
152- DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spedit "
152+ DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\spcode "
153153
154154${unregisterExtension} " .sp" " Sourcepawn Script"
155155${unregisterExtension} " .inc" " Sourcepawn Include-File"
0 commit comments