Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Path Variable for folders

Updated: 10 Oct 2010 | 4 comments
rama24s's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hi
I am creating folders using path variables. My working directory is [INSTALLDIR]Project\New
While updating the system i want to create four folders for that i have used path variable, i have defined the path variable as follows:
Variable Name         Defined Value
DAL                                    D:\RAS
File1                                   D:\
File2                                   D:\
File3                                   D:\
File4                                   C:\
In files page on the destination computer i have created all the folder.
The destination folder path is D:\RAS\Project\New
while updating the system all the folders are created under D:\ drive but i want file4 to be created in C:\drive
any suggestions?

Thanks

Discussion Filed Under:

Comments

JohanH's picture
07
Sep
2010
0 Votes 0
Login to vote

You cannot use Path Variables

You cannot use Path Variables for this. Read the documentation.

rama24s's picture
07
Sep
2010
0 Votes 0
Login to vote

HII have gone through the

HI
I have gone through the document. Not using path variables. still not getting.
i have created four folders in Installation Expert--> Files page on the destination computer,  Again same problem all the folders will create in D drive but i want to create file4 in C drive.
Please any help?

EdT's picture
08
Sep
2010
0 Votes 0
Login to vote

Create a default entry for

Create a default entry for File4 on the D drive.
Identify the directory table entry that references this folder
Use a SET DIRECTORY custom action to change this directory table entry to the desired location.
Any CreateFolder operation for File4 should now create this folder in the correct location on C:\.
Ensure that the Set Directory custom action is sequenced before the CreateFolder action.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

rama24s's picture
08
Sep
2010
0 Votes 0
Login to vote

Hi EdT Thanks for your help.

Hi EdT

Thanks for your help. In directory value i was specifying only drive name then i tried with C:\File4 . Its working fine.
Thnaks very much.