However, NSIS has the ability to launch other programs and wait on them, so I thought--- no prob, I'll call "mkdir". Except you can't call shell built-ins. So I wrote a DOS batch file wrapper around mkdir ...
@echo off if !%1==! goto skipit if exist %1 goto skipit mkdir %1 :skipit
But for some reason, it doesn't work on Win9x and the "if exist" line doesn't work, thus causing mkdir to generate an error and freeze the installation process with an ugly black command box showing. I'm not going to pretend I'm a expert batch file programmer, nor do I want to be. They're sick. So, I wrote a little Win32 C program to do it .... no more ugly DOS window during the installation:
#include "stdafx.h" int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CreateDirectory(lpCmdLine, NULL); return 0; }Both solutions suck. I mailed Justin and asked him to include the functionality.