Page 1 of 1

Creating Folders in User's MyDocuments Folder

Posted: Wed Oct 27, 2021 1:58 pm
by tpago
Hi,

I'm new to Actual Installer. I have created an installer and I need to add some Folders and a few files in those Folders in the User's "My Documents" Folder.

Could someone tell me the exact process on how to do so. I did see a similar thread on this subject but it said to create a variable. It was not very verbose and after reading it I'm still not sure on how to accomplish this.

Let's say I have an application called "WidgetApp".
I need to create an folder in the User's "My Documents" folder as such: "User's My Documents Folder">Widget App>Logs>Log1.txt

How and where is this done in the application?

Thank you in advance.

Re: Creating Folders in User's MyDocuments Folder

Posted: Thu Oct 28, 2021 1:22 pm
by Leo
For the file destination use variable <MyDocuments>
On the Files and Folders page click Add Files, select file "Log1.txt" from your computer, in the Destination Folder type:
<MyDocuments>\Widget App\Logs

Please note, it is not recommended to store app's files in User's Document folder (because of permissions set to this folder, app may be blocked to access this folder).
Use AppData folder (variable <AppData>).

Re: Creating Folders in User's MyDocuments Folder

Posted: Fri Oct 29, 2021 12:45 pm
by tpago
Hi Leo,

I need to setup a directory structure in the User's MyDocuments Folder.

No Files are in these Directories.

How do I do that?

See attached File.

Re: Creating Folders in User's MyDocuments Folder

Posted: Sat Oct 30, 2021 3:04 am
by Leo
To create an empty folder, go to System/Commands and add:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C mkdir "<MyDocuments>\Widget App"
Timing: 	After Installation