A small test:Name "Example3"
OutFile "test1.exe"
InstallDir Test1\Include
DirText "This will install Test1 on your computer. Choose a folder:"
Section "InstallDirTest1"
SetOutPath $INSTDIR
File "Include\*.*"
SectionEnd
UninstallText "Uninstall"
UninstallExeName "test1_uninst.exe"
Section Uninstall
!Include "Delete1.pis"
SectionEnd
To generate test files:#include <stdio.h>
#include <direct.h>
int __cdecl main(void)
{
FILE *f1, *f2;
char name[50];
_mkdir("Include");
f1 = fopen("Delete1.pis", "w");
for (int i=0; i<1000; i++) {
sprintf(name, "Include/file%d.h", i);
f2 = fopen(name, "w");
if (f2) fclose(f2);
int len = sprintf(name, "Delete Include\\file%d.h\n", i);
fwrite(name, len, 1, f1);
}
if (f1) fclose(f1);
return 0;
}
poinst.exe crash with value over 915.