Deployment variables

  • Thread starter Thread starter MarkMurphy
  • Start date Start date
M

MarkMurphy

When deploying a web project how would I parameterize the following
registry value entry?



[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MyApp]
"EventMessageFile"="C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322\\EventLogMessages.dll"

I need a variable like %CURDOTNETDIR%. I don't want to hardcode the
windows driectory and .NET version.

Thanks,

Mark
 
Hi Mark,

From your description, you're building an asp.net web application set up
project and is wondering how to get the .net framework's installation
directory on the target machine, yes?

As for the framework's installation folder, I tthink we can make use of the
System.Web.HttpRuntime.ClrInstallDirectory property which may return the
CLR install folder. Hope this will help. Thanks.


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Hi Mark,

Have you got the reply in my last message or have you got any further
ideas, if there're anything else we can help, please feel free to post
here. Thanks


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Hey there Steve,

Thanks for the info and for checking back. I ended up grabbing the
value for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\CustomAppLog\EventMessageFile
and setting same for my application. Hopefully I can assume the CLR
version contained in that string will change as appropriate.

-Mark
 
You're welcome ,Mark.

Also thannks again for choosing microsoft. Have a good day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top