This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Virtual directory and uninstallation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 02, 2008
06:17 AM
Virtual directory and uninstallation
Hi,
I have a few webservices to be installed as part of a system. I need the webservices to be under a particular root URL i.e. My webservices 1 and 2 should have the URLs : http://myserver.com/MyProduct/WebServices/Service1/Service1.asmx and http://myserver.com/MyProduct/WebServices/Service2/Service2.asmx.
I am having one installer per webservice. I have created the installer using basic MSI project. In the IIS configuration section, I have created the root virtual directory section viz. MyProduct/WebServices and created the Server1 and Server2 virtual directories underneath that. I have used a textbox to gather the port number of the website on which the product needs to be installed and assigned the same through the relevant property to the Website I created under the IIS configuration. I have developed the installer for both WS1 and WS2 in the same manner.
When I install WS1, it does create the virtual directories as expected under the root http://myserver.com/MyProduct/WebServices. When I install WS2 on top of this, that also gets installed in the same root. Now, I uninstall WS1 to see that my root virtual directories are gone and hence the virtual directories related to WS2 also have disappeared.
Can someone suggest a solution for this.
Best regards,
Jaikish
I have a few webservices to be installed as part of a system. I need the webservices to be under a particular root URL i.e. My webservices 1 and 2 should have the URLs : http://myserver.com/MyProduct/WebServices/Service1/Service1.asmx and http://myserver.com/MyProduct/WebServices/Service2/Service2.asmx.
I am having one installer per webservice. I have created the installer using basic MSI project. In the IIS configuration section, I have created the root virtual directory section viz. MyProduct/WebServices and created the Server1 and Server2 virtual directories underneath that. I have used a textbox to gather the port number of the website on which the product needs to be installed and assigned the same through the relevant property to the Website I created under the IIS configuration. I have developed the installer for both WS1 and WS2 in the same manner.
When I install WS1, it does create the virtual directories as expected under the root http://myserver.com/MyProduct/WebServices. When I install WS2 on top of this, that also gets installed in the same root. Now, I uninstall WS1 to see that my root virtual directories are gone and hence the virtual directories related to WS2 also have disappeared.
Can someone suggest a solution for this.
Best regards,
Jaikish
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 04, 2008
05:27 PM
This behavior would happen if the components installing the virtual directories don't have any share counts preventing them from being uninstalled. From Windows Installer's standpoint, virtual directories are unknown and not tracked to determine if a component can be removed.
The simplest way of resolving this behavior would be to install the components to the same location (i.e. the component destination) and include a dummy keyfile in the components in both projects. Assuming the components' shared setting was set to Yes, a share count would be created for the dummy file and should be two when both products are installed.
The simplest way of resolving this behavior would be to install the components to the same location (i.e. the component destination) and include a dummy keyfile in the components in both projects. Assuming the components' shared setting was set to Yes, a share count would be created for the dummy file and should be two when both products are installed.