user2655318
user2655318

Reputation: 67

Copying of folder in inno script

I have a folder called webcam-applet, I want to copy the whole file into local\Temp on running the .exe file. I have created the inno script file to copy the contents of web-cam applet but, I need the folder there for my application to work. Please tell me if there is away to do this . My statement is given below.

Source: "WebcamApplet_1-0-0\*"; DestDir: "{%TEMP}"

This will copy the contents. If I remove the "*" and "\" an error is generated.

Upvotes: 1

Views: 1403

Answers (1)

TLama
TLama

Reputation: 76733

Since the path you've specified in your comment doesn't belong to known folders and so there is no constant for it in InnoSetup, you'll need to expand the parent {localappdata} folder constant adding the Temp location to it. In script it would be:

[Files]
Source: "WebcamApplet_1-0-0\*"; DestDir: "{localappdata}\Temp"

Upvotes: 2

Related Questions