We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Search found 15 matches

Go to advanced search

by sitesv
Tue Jan 17, 2017 5:44 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

Yes, you need to place the script after the "Add Resources" action group and set the "deferred" with "no impersonation" options for it. In order to access properties from a deferred custom action, please take a look on the " can't access property from vbscript " thread.

Best regards,
Eusebiu ...
by sitesv
Tue Jan 17, 2017 11:49 am
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

To use a property in a VBScript custom action, you can use the "Session.Property()" function. For example, you can initialize a variable with the value of the "APPDIR" property, then use that variable in your code: DestinationFolder = Session.Property("APPDIR")

You can take a look on the ...
by sitesv
Fri Jan 13, 2017 11:21 am
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

1. Is there possible to create a script for this manipulations? Base functionality of install process does not meet our requirements.
Yes, you can create your own inline script or custom action to copy the files you need from a folder to another.

2. If i set 'Install files to parent folder ...
by sitesv
Wed Jan 11, 2017 12:32 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

I'm afraid that copying a file from a folder to a parent folder and then, from that parent folder to another folder is not possible. The content of a folder can be copied to its parent folder once. In this case, you need to copy your file directly to the main folder.

Best regards,
Eusebiu ...
by sitesv
Mon Jan 09, 2017 3:41 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hello,
...
Therefore, you will have to add all the fileX files in subfolders of the target folder.


Hello, Daniel!
I create a subfolders for each file. As a result, in target folder i see only one file without my subfolders.How to leave this subfolders? Thanx!

In addition:
File is not ...
by sitesv
Thu Jan 05, 2017 1:20 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hello,

I'm afraid this is the normal behavior. The related error is displayed when you are trying to define in the same directory multiple file duplication operations using the same destination name . There is a nonsense to add two file duplications with the same name. Please not that our file ...
by sitesv
Fri Dec 23, 2016 11:15 am
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Is there some decision?
by sitesv
Thu Dec 22, 2016 2:09 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

ok.
I have a 5 files:

Code: Select all

	file
	file1
	file2
	file3
	file4
for file1 i directly set destination name 'file' - OK
for file2 i set destination name [|FILE2] with value = 'file' - OK
But for next files ([|FILE3], [|FILE4]) there is an error: 'A file duplication with this name already exist'.
by sitesv
Thu Dec 22, 2016 12:43 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Eusebiu wrote:This should be possible as in the attached screenshot.

Best regards,
Eusebiu

Sorry... something wrong with project again...
Is it possible to do this for 'file copy' operation? There is not available condition for the duplicate operation.
I need to keep file1, file2 and file after installation.
by sitesv
Thu Dec 22, 2016 12:04 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

For this, you can create a new property in the "Install Parameters" page (e.g. FILE1) with value "file", then use it in the "Destination name" field of the second file duplication (e.g. [|FILE]).

Best regards,
Eusebiu


Using vertical line in expression like [|FILE] in 'destination name' field is ...
by sitesv
Thu Dec 22, 2016 11:32 am
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

I'm afraid that I do not fully understand your scenario. Do you want to only rename the "file1" and "file2" files to "file" based on a condition? If so, you can try to achieve this through a " File Duplication " operation.

Best regards,
Eusebiu

I create 'file duplication' for 'file1' to ...
by sitesv
Wed Dec 21, 2016 6:01 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Is it possible to do next:

Code: Select all

DIR
	file
	file1
	file2
if i select in radiogroup item needs to copy 'file2' into 'file' or 'file1' to 'file'.
Is it possible without creation directory for file1 and file2?
by sitesv
Wed Dec 21, 2016 4:31 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

Re: copy files from appropriate folder

Hi,

To achieve this, you can implement the steps described in the " How to install two files with the same name in the same folder " tutorial.

Just let us know if you need more details.

Best regards,
Eusebiu


Thank you!
But if i have the next situation:


ROOT_DIR
file
SUBDIR_A
file ...
by sitesv
Wed Dec 21, 2016 2:18 pm
Forum: Common Problems
Topic: copy files from appropriate folder
Replies: 25
Views: 13004
 
Jump to post

copy files from appropriate folder

Hello!
In my project i have the same file structure:


MYDIR
SUBDIR_1
main_file
SUBDIR_2
main_file
main_file

Only root main_file is using in program.
I need to copy main_file from appropriate folder (source SUBDIR_1 or SUBDIR_2 depends on RadioGroup selection) to root main_file that ...
by sitesv
Tue Jan 26, 2016 10:42 am
Forum: Common Problems
Topic: Installing drivers
Replies: 1
Views: 1720
 
Jump to post

Installing drivers

Hello!
I have a trouble with creating an installation package with installing device driver according to Windows version.
I have a some driver files for different Windows versions.
I want to install the driver that is correspond to windows version.
How to do this? Thanx!

Go to advanced search