]> Git repositories of Nishi - reisen.git/commitdiff
add some stuff
authorNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 09:14:50 +0000 (09:14 +0000)
committerNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 09:14:50 +0000 (09:14 +0000)
git-svn-id: file:///raid/svn-personal/reisen/trunk@16 c77b849d-6a5c-934c-a956-7b968ca1e197

SFX/main.c
example.conf

index 2b88843cb02de94819e890a6d106c045d0bd27af..00ac67d4831c3819d872368f32b842ce81456ce7 100644 (file)
@@ -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;
index 14f702e860bbf95ef5f076ac993c8716e939058a..b4b8bcc5828c0e36a03593357350bb8e4e5d480f 100644 (file)
@@ -3,3 +3,4 @@ Include /home/nishi/Downloads/zlib-1.3.1
 DefaultDirectory C:\ZLib
 CheckOverwrite /ChangeLog
 DirectoryUnchangable
+Run winver