Edit installer files

This commit is contained in:
Namhyeon Go 2024-05-13 17:37:54 +09:00
parent c9c6481b3f
commit 30ab79eae3
3 changed files with 20 additions and 6 deletions

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.2.7.12")]
[assembly: AssemblyFileVersion("0.2.7.12")]

View File

@ -6,6 +6,9 @@ rem https://github.com/gnh1201/welsonjs
pushd %~dp0
echo [*] Starting WelsonJS pre-configure script...
echo [*] Registering HTA file association...
reg import Default_HTA.reg
echo [*] Unlocking the performance limit of the GUI(MSHTML) environment...
reg add "HKCU\Software\Microsoft\Internet Explorer\Styles" /f
reg add "HKCU\Software\Microsoft\Internet Explorer\Styles" /v "MaxScriptStatements" /t REG_DWORD /d 0xFFFFFFFF /f
@ -19,5 +22,3 @@ echo [*] Registering WelsonJS native component...
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase bin\x64\WelsonJS.Toolkit.dll
echo Done
pause

View File

@ -1,5 +1,5 @@
; @created_on 2020-06-26
; @updated_on 2023-09-11
; @updated_on 2024-05-13
; @author Namhyeon Go <abuse@catswords.net>
[Setup]
@ -36,7 +36,9 @@ Source: "app.js"; DestDir: "{app}";
Source: "app.hta"; DestDir: "{app}";
Source: "Default_HTA.reg"; DestDir: "{app}";
Source: "LICENSE"; DestDir: "{app}";
Source: "LICENSE_MSRL"; DestDir: "{app}";
Source: "*.md"; DestDir: "{app}";
Source: "preconfigure.bat"; DestDir: "{app}";
Source: "start.bat"; DestDir: "{app}";
Source: "uriloader.js"; DestDir: "{app}";
Source: "webloader.js"; DestDir: "{app}";
@ -60,7 +62,7 @@ Name: "{group}\Uninstall {cm:AppName}"; Filename: "{uninstallexe}"; AfterInstall
; Filename: {app}\bin\gtk2-runtime-2.24.33-2021-01-30-ts-win64.exe;
; Filename: {app}\bin\nmap-7.92\VC_redist.x86.exe;
; Filename: {app}\bin\nmap-7.92\npcap-1.50.exe;
Filename: {app}\IEMaxScriptStatements.bat;
Filename: {app}\preconfigure.bat;
Filename: {app}\start.bat;
[UninstallRun]
@ -72,6 +74,9 @@ Filename: {app}\start.bat;
AppName=WelsonJS
[Code]
const
UninstSiteURL = 'https://policy.catswords.social/voc_en.html';
procedure SetElevationBit(Filename: string);
var
Buffer: string;
@ -98,3 +103,11 @@ begin
if IsWin64 then Result := ExpandConstant('{commonpf64}')
else Result := ExpandConstant('{commonpf32}')
end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
ErrorCode: Integer;
begin
if CurUninstallStep = usDone then
ShellExec('explorer', UninstSiteURL, '', '', SW_SHOW, ewNoWait, ErrorCode);
end;