copy filed to different drives

Got a problem you cannot solve? Try here.
Post Reply
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

copy filed to different drives

Post by nofarr »

hi,
i'm using IA11.
i want to copy files to drive E and drive D.
i define the targetdir to be D:\.
but how can i copy filed to drive E?

is there a way to define 2 targetsdir? or other way to do the copy?

thanks ,
Nofar
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: copy filed to different drives

Post by giaviv »

Hi,

If you created your setup from a template, take a look at your Define Setup Globals region - you can define any folder you want there just like the other variables are defined. You can call it SECONDTARGETDIR if you want (or anything else) and use it later in the script!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: copy filed to different drives

Post by nofarr »

hi,

is sounds good but i don't see this option
where is Globals region ?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: copy filed to different drives

Post by giaviv »

If you created your setup from a template, it would be around line 55.

How did you create your setup?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: copy filed to different drives

Post by nofarr »

ah now i see it
but i don't know how to define it.

i just began to work with IA 3 weeks ago
so there are some things that i don't know how to do define them


thanks a lot for your help :)
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: copy filed to different drives

Post by giaviv »

No worries - you want to use the Set Variable command, and the Get Folder Location command.
The Set Variale command sets a value of a variable, and the Get Folder Location commands gets the location of specific folders in the machine.

For example, if you would like to create a variable named DOCUMENTSTARGETDIR that contains the path to my documents\MyApp, do this:

Get Folder Location on My Documents into Variable MYDOCS
Set Variable DOCUMENTSTARGETDIR to $MYDOCS$MyApp

Let me know if you have any other questions!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: copy filed to different drives

Post by nofarr »

it works :)

thanks a lot
Post Reply