cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ameer09
Level 3

Help me - Virtual Directory Creation

Hello,

I would like to create a virtual directory, but the name should come from User input. I have created a dialog to accept the Input but unable to map. Can anyone help me on the above. Do we have any documents.

Thanks in advance.

Ameer
Labels (1)
0 Kudos
(5) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

If you are using an MSI type project you can use a property reference as the virtual directory name ([PROPERTYNAME]). The property should be set at runtime before the caExtractIISSuppFiles action runs. If you are using an InstallScript project, you can use a textsub for the virtual directory name and set the textsub in your script.

Note that you will also need to ensure this property/textsub is set on subsequent maintenance operations that could affect the virtual directory, otherwise a runtime error can occur.
0 Kudos
ameer09
Level 3

Thanks for reply Josh..
Do we have any documentaion on this??Shall I upload my exact issue and settings to this request.
0 Kudos
DebbieL
Level 17

0 Kudos
ameer09
Level 3

Thank you very much, i got the answer from the provided link.
0 Kudos
RickRogers
Level 5

Using IS 2009, Basic MSI:

I followed the instructions on dynamically modify IIS settings and created a custom action and inserted it before caExtractIISSuppFiles, however the property is not being evaluated.

It appears the property is being treated like a literal instead of a variable.

So now after I run the install, my virtual directory is named [VDIRECTORY].

This is what I have in Virtual Directory->Local Path:
{TESTAPP} [IISROOTFOLDER][VDIRECTORY]

Any ideas on what I am doing wrong?
0 Kudos