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
- :
- IIS "Content Source Path"
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
‎Sep 18, 2014
09:02 AM
IIS "Content Source Path"
I need to run this registry hack to make IIS work when I want to specify a folder other than the default. What do I need to do to get rid of the registry hack? Do I need to add a Virtual Directory?
Also... does anyone know why some web app installation packages write to web.config and some don't?
Thanks.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp]
"HOLD_PathWWWRoot"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
00,69,00,76,00,65,00,25,00,5c,00,69,00,6e,00,65,00,74,00,70,00,75,00,62,00,\
5c,00,77,00,77,00,77,00,72,00,6f,00,6f,00,74,00,00,00
"PathWWWRoot"="D:\\MyFolder"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InetStp]
"HOLD_PathWWWRoot"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
00,69,00,76,00,65,00,25,00,5c,00,69,00,6e,00,65,00,74,00,70,00,75,00,62,00,\
5c,00,77,00,77,00,77,00,72,00,6f,00,6f,00,74,00,00,00
"PathWWWRoot"="D:\\MyFolder"
Also... does anyone know why some web app installation packages write to web.config and some don't?
Thanks.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp]
"HOLD_PathWWWRoot"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
00,69,00,76,00,65,00,25,00,5c,00,69,00,6e,00,65,00,74,00,70,00,75,00,62,00,\
5c,00,77,00,77,00,77,00,72,00,6f,00,6f,00,74,00,00,00
"PathWWWRoot"="D:\\MyFolder"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InetStp]
"HOLD_PathWWWRoot"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
00,69,00,76,00,65,00,25,00,5c,00,69,00,6e,00,65,00,74,00,70,00,75,00,62,00,\
5c,00,77,00,77,00,77,00,72,00,6f,00,6f,00,74,00,00,00
"PathWWWRoot"="D:\\MyFolder"
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2014
11:50 AM
Kicking to the top of the pile
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2014
08:47 AM
Answering my own questions in case anyone else has the same issues.
Web.config is written to when web site is configured.
I did a CA (below) and sequenced it in the UI After ISSetupFilesExtract. Then I no longer need to run a reg file prior to install.
export prototype FixIISMapping(HWND);
function FixIISMapping(hMSI)
NUMBER nResult;
STRING szWWWRootPath;
begin
szWWWRootPath = DEFAULT_DIR;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
nResult = RegDBSetKeyValueEx("SOFTWARE\\Microsoft\\INetStp", "PathWWWRoot", REGDB_STRING, szWWWRootPath, -1);
if (nResult < 0) then
MessageBox ("Unable to set PathWWWRoot to "+ szWWWRootPath, WARNING);
endif;
end;
Web.config is written to when web site is configured.
I did a CA (below) and sequenced it in the UI After ISSetupFilesExtract. Then I no longer need to run a reg file prior to install.
export prototype FixIISMapping(HWND);
function FixIISMapping(hMSI)
NUMBER nResult;
STRING szWWWRootPath;
begin
szWWWRootPath = DEFAULT_DIR;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
nResult = RegDBSetKeyValueEx("SOFTWARE\\Microsoft\\INetStp", "PathWWWRoot", REGDB_STRING, szWWWRootPath, -1);
if (nResult < 0) then
MessageBox ("Unable to set PathWWWRoot to "+ szWWWRootPath, WARNING);
endif;
end;
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)