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
- :
- Re: Virtual Directory Name
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 17, 2009
01:13 PM
Virtual Directory Name
Is there any way to dynamically set a Virtual Directory name based on user input?
Update:
Solved this by making the string "[PropertyName]" and updating that property at run time.
Update:
Solved this by making the string "[PropertyName]" and updating that property at run time.
(16) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2009
03:02 PM
Hello costas0811
try what you want with a vbscript
http://techtasks.com/code/viewbookcode/1152
i think that this link can help you...
hugs
try what you want with a vbscript
http://techtasks.com/code/viewbookcode/1152
i think that this link can help you...
hugs
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2009
03:02 PM
Hello costas0811
try what you want with a vbscript
_http://techtasks.com/code/viewbookcode/1152_
i think that this link can help you with an ideia...
hugs
try what you want with a vbscript
_http://techtasks.com/code/viewbookcode/1152_
i think that this link can help you with an ideia...
hugs
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2009
03:55 PM
bruno_pt-br wrote:
Hello costas0811
try what you want with a vbscript
_http://techtasks.com/code/viewbookcode/1152_
i think that this link can help you with an ideia...
hugs
Ummm..thanks for the hug but I was able to solve this without code.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2009
11:35 PM
CAn you please explain that how you achieved this?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 18, 2009
07:50 AM
The help has instructions on how to dynamically configure various IIS settings using Windows Installer properties (in Basic MSI and InstallScript MSI projects) or text subs (in InstallScript projects):
Using Windows Installer Properties to Dynamically Modify IIS Settings
Using InstallScript Text Substitution to Dynamically Modify IIS Settings
Those instructions are applicable to the names of virtual directories.
Using Windows Installer Properties to Dynamically Modify IIS Settings
Using InstallScript Text Substitution to Dynamically Modify IIS Settings
Those instructions are applicable to the names of virtual directories.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 18, 2009
10:41 AM
Yea...
I created a Web Application under Websites in the IIS Configuration Tab
Then I set the value of the "Name" property to [VDIRNAME] with the brackets.
I created a property called VDIRNAME and then within a dialog I set and Edit Box control to this property.
This works. When I run the install and change the value of the edit box, this is reflected when the vdir is created.
I created a Web Application under Websites in the IIS Configuration Tab
Then I set the value of the "Name" property to [VDIRNAME] with the brackets.
I created a property called VDIRNAME and then within a dialog I set and Edit Box control to this property.
This works. When I run the install and change the value of the edit box, this is reflected when the vdir is created.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2009
06:22 AM
Hi costas0811
please confirm during the uninstalltion virtual directory is deleted, i face issue in Installshield 12 dynamic virtual directory are not deleted.
please confirm during the uninstalltion virtual directory is deleted, i face issue in Installshield 12 dynamic virtual directory are not deleted.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2009
09:15 AM
Yea I just confirmed, the virtual directory is deleted on uninstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2009
07:18 PM
I have an installar with 32-bit and 64-bit component web sites. Since "Default Web Site" wouldn't let me have 2 of the same Virtual Directories, I gave one of them a name of [MYPROPERTY] that is defined at compile time and is never changed.
I get the same behavior. I can create the virtual directory fine, however the virtual director remains behind on uninstall.
All the log entries for the MSI point to various .tmp files where the IIS stuff is going on.
Any ideas?
I get the same behavior. I can create the virtual directory fine, however the virtual director remains behind on uninstall.
All the log entries for the MSI point to various .tmp files where the IIS stuff is going on.
Any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2009
08:40 AM
DavidL wrote:
I have an installar with 32-bit and 64-bit component web sites. Since "Default Web Site" wouldn't let me have 2 of the same Virtual Directories, I gave one of them a name of [MYPROPERTY] that is defined at compile time and is never changed.
I get the same behavior. I can create the virtual directory fine, however the virtual director remains behind on uninstall.
All the log entries for the MSI point to various .tmp files where the IIS stuff is going on.
Any ideas?
Are you using InstallShield 2010? I do nothing special to delete any web components it "just worked" for me.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2009
12:02 PM
If a virtual directory using a property as the name is not being uninstalled, the cause is typically because the property that was set at install time to the name desired for the virtual directory is not set or not set to the same value at uninstall time. A log can usually be used to determine what the value of the property is.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2009
01:04 PM
That may or may not be the case. The value which I gathered only during the Install sequence. That being said it may store the value somewhere else.
My assumption was that InstallShield began keeping track, as it does with files and folders etc, of changes to IIS.
I'd be more than happy to share a sample project if anyone wants to see this.
My assumption was that InstallShield began keeping track, as it does with files and folders etc, of changes to IIS.
I'd be more than happy to share a sample project if anyone wants to see this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2009
01:47 PM
Neither InstallShield nor Windows Installer will maintain a property value set during installation for use in subsequence maintenance operations. The property value would need to be stored somewhere (possibly in a registry value) and read back with a system search or custom action to ensure the property is set for all maintenance operations.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2009
03:33 PM
joshstechnij wrote:
Neither InstallShield nor Windows Installer will maintain a property value set during installation for use in subsequence maintenance operations. The property value would need to be stored somewhere (possibly in a registry value) and read back with a system search or custom action to ensure the property is set for all maintenance operations.
Negative. Properties are stored under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield Uninstall Information\{PRODUCT CODE}
See Attached Image
Also confirmed that if you remove the string value for the vdir, the product will not uninstall mentioned vdir "MSBOB".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 23, 2009
02:44 PM
Beginning with InstallShield 2008, Basic MSI and InstallScript MSI installations that install IIS Web sites and use Windows Installer properties to dynamically set IIS data at run time write the property and its value to the registry, as costas0811 noted. That change was made to make the value available during uninstallation and repair. This functionality was not available in InstallShield 12.
(If you do not want the IIS data to be stored in the registry, you would set the IS_IIS_DO_NOT_USE_REG property in your project.)
(If you do not want the IIS data to be stored in the registry, you would set the IS_IIS_DO_NOT_USE_REG property in your project.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2009
03:00 PM
If this item is not being uninstalled, please create a verbose log of the uninstall process and attach it to this thread. Assuming the feature/component containing this item is being removed by Windows Installer, the log should provide additional information as to what the IIS custom actions are doing.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)