Creating Folders in User's MyDocuments Folder

Common questions about using Actual Installer.
Post Reply
tpago
Posts: 6
Joined: Wed Oct 27, 2021 1:50 pm

Creating Folders in User's MyDocuments Folder

Post 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.
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Creating Folders in User's MyDocuments Folder

Post 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>).
Leo,
Actual Installer Team
https://www.actualinstaller.com
tpago
Posts: 6
Joined: Wed Oct 27, 2021 1:50 pm

Re: Creating Folders in User's MyDocuments Folder

Post 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.
Attachments
FileStructure.png
(23.23 KiB) Not downloaded yet
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Creating Folders in User's MyDocuments Folder

Post 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
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply