Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating extra directories after install
Message
From
22/11/2011 14:45:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01529297
Message ID:
01529594
Views:
33
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>I'm creating an installation file using Inno Setup. After the program is installed in the Program Files directory I also want to create a directory in ProgramData directory and add a file there.
>>>
>>>I am using Inno Setup and this is my first time using it.
>>>
>>>Can you please show me a sample if you're using Inno Setup for your installations?
>>
>>[dirs]
>>Name: {app}\someFolder
>>
>>Simple as that. You can have any number of lines in that section.
>
>It is not as simple. The directory I need is not in the Program Files. This directory needs to be in ProgramData/CompanyName/MyAppName.

So what,

Name: {appdata}\CompanyName\MyAppName

(or some other system name instead of appdata - check help).

>And I also need to copy a file there.

[files]
Source: "myfile.txt"; DestDir: "{appdata}\CompanyName\MyAppName"; flags: ignoreversion

And, BTW, help for [files] section says:

DestDir (Required)
The directory where the file is to be installed on the user's system. The will almost always begin with one of the directory constants. If the specified path does not already exist on the user's system, it will be created automatically, and removed automatically during uninstallation if empty.

So the [dirs] entry is required only for empty directories you may want to create. Those where you copy a file are created automatically.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform