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: findallfiles can't find applicationhost.config
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
Jun 27, 2011
03:49 PM
findallfiles can't find applicationhost.config
I have a Installscript MSInstaller. I use the appsearch function to find applicationhost.config. Then I try to modify it with fileGrep but it returns file not found.
In the attached screenshot FindAllFiles is returning filenotfound.
Any ideas??
In the attached screenshot FindAllFiles is returning filenotfound.
Any ideas??
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 28, 2011
03:47 PM
Found it from: http://forums.iis.net/t/1150832.aspx
This happens because VS2008 is a 32-bit binary and so when you try to open %windir%\system32\inetsrv with VS2008, the file-system redirection for 32-bit binaries on x64 OS kicks in and you actually end up opening %windir%\syswow64\inetsrv and there is no config directory or applicationhost.config file in there.
I added Disable(WOW64FSREDIRECTION);
before the code and
Enable(WOW64FSREDIRECTION); at the end.
This happens because VS2008 is a 32-bit binary and so when you try to open %windir%\system32\inetsrv with VS2008, the file-system redirection for 32-bit binaries on x64 OS kicks in and you actually end up opening %windir%\syswow64\inetsrv and there is no config directory or applicationhost.config file in there.
I added Disable(WOW64FSREDIRECTION);
before the code and
Enable(WOW64FSREDIRECTION); at the end.