From 2596f7a48b7698948558f1e4fbb56662ce161988 Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 8 Oct 2024 09:14:50 +0000 Subject: [PATCH] add some stuff git-svn-id: file:///raid/svn-personal/reisen/trunk@16 c77b849d-6a5c-934c-a956-7b968ca1e197 --- SFX/main.c | 5 +++++ example.conf | 1 + 2 files changed, 6 insertions(+) diff --git a/SFX/main.c b/SFX/main.c index 2b88843..00ac67d 100644 --- a/SFX/main.c +++ b/SFX/main.c @@ -40,6 +40,7 @@ BOOL err; HWND windows[512]; int window_count = 0; int gphase = 0; +char* run; int checkcount = 0; char instpath[MAX_PATH]; @@ -200,6 +201,7 @@ skip: } SendMessage(progress, PBM_SETPOS, (WPARAM)((double)(i + 1) / counts * 100), 0); } + if(run != NULL) system(run); gphase = PHASE_INSTALLED; change = TRUE; _endthread(); @@ -452,6 +454,7 @@ int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst, LPSTR lpsCmdLine, in uint32_t entbytes; uint32_t incr; BOOL first = TRUE; + run = NULL; config = NULL; instpath[0] = 'C'; instpath[1] = ':'; @@ -601,6 +604,8 @@ loop: if(checks[checkcount][k] == '/') checks[checkcount][k] = '\\'; } checkcount++; + }else if(strcmp(line, "Run") == 0 && hasarg){ + run = rs_strdup(arg); } line[j] = oldc2; break; diff --git a/example.conf b/example.conf index 14f702e..b4b8bcc 100644 --- a/example.conf +++ b/example.conf @@ -3,3 +3,4 @@ Include /home/nishi/Downloads/zlib-1.3.1 DefaultDirectory C:\ZLib CheckOverwrite /ChangeLog DirectoryUnchangable +Run winver -- 2.43.0