Dennis F.
Dennis F.

Reputation: 438

NSIS - CreateDirectory while compile time

I am creatining a .ini-file while compile time (with NSIS).

!tempfile "${HKSTempPath}\NIC_HKSCommonUDF.ini"
!appendfile "${HKSTempPath}\NIC_HKSCommonUDF.ini" "[General]$\n"

The problem is, that the Directory doesnt exists and i cant call CreateDirectory outside functions, etc.

How can i create the directory?

Sorry for the stupid question. I have found an easy solution:

!system 'mkdir "${HKSTempPath}"'

Upvotes: 0

Views: 306

Answers (1)

Anders
Anders

Reputation: 101756

!system 'mkdir "${HKSTempPath}"'

Upvotes: 1

Related Questions