cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Intrepid explorer

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"
Labels (1)
0 Kudos
2 Replies
Highlighted
Intrepid explorer

Kicking to the top of the pile

Kicking to the top of the pile
0 Kudos
Highlighted
Intrepid explorer

Answers

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;
0 Kudos