IIS and Virtua Folder

Got a problem you cannot solve? Try here.
mqk
Posts: 18
Joined: Mon Aug 15, 2005 7:57 am

IIS and Virtua Folder

Postby mqk » Wed Sep 14, 2005 8:22 am

During the installation, I created Virtual Folder on an existing WebSite using its index. The Site index is stored in a variable called $SITE_INDEX$, and the the code for creating Virtual Folder as follows:

Code: Select all

Create Virtual Folder "TEST" in IIS Site #$SITE_INDEX$, pointing to physical location $TARGETDIR$


But unfortunately, on uninstallation I'm not able to delete Virtual Folder, which has been created on installation. The code is:

Code: Select all

Delete Virtual Folder "TEST" in IIS Site #$SITE_INDEX$


On uninstallation, I found that the variable $SITE_INDEX$ is empty!!

Any help?

Thanks in advance

sinan
Site Admin
Posts: 1021
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Wed Sep 14, 2005 8:33 am

Just read the site index again upon uninstall.

mqk
Posts: 18
Joined: Mon Aug 15, 2005 7:57 am

Postby mqk » Tue Sep 20, 2005 8:06 am

I tried many time to read the Site index but I couldn't, I got an empty variable.

The idea is, we have different website, and then I choosed one to create Virtual Folder. So on the uninstall how can I get the same site index that I used on install, please can you explain with a piece of code.

Thanks in advance,

sinan
Site Admin
Posts: 1021
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Tue Sep 20, 2005 8:15 am

I assume you are reading the site index when installing? Just copy-paste the same code into the part where you do the uninstall.

Also, if you are creating new sites as well, you may use a hard coded site index.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 61 guests