How to add custom header by the msi. I wanna add custom header in IIS6.0 at the time of deployment. How to add custom header automatically? Thanx in advance
+1
A:
You can add custom header through adsutil
. see this How to add custom HTTP Headers to IIS from the command line.
In your MSI you will have to create a custom action
of type script.
ajay_whiz
2010-09-14 07:08:59
Can you please tell me how?
Sandy
2010-09-14 07:17:03
how are you creating MSI file?
ajay_whiz
2010-09-14 07:24:21
Once click deployment.
Sandy
2010-09-14 08:24:13
cscript adsutil.vbs set w3svc/1/ROOT/Test/css/HttpCustomHeaders "Cache-Control: max-age=36000"
Sandy
2010-09-14 08:37:35
when i use it an error appears The path requested could not be found. ErrNumber: -2147024893 (0x80070003) Error Trying To Get the Object: w3svc/1/ROOT/Test/css w3svc/1/ROOT/Test is the virtual directoryi want to apply my script to sub directory css Question i have is it possible to apply to sub directory
Sandy
2010-09-14 08:38:27
I got the point,Thanx Ajay....
Sandy
2010-09-14 09:21:03
@Sandy - if this answer helped you out then you should mark it as correct and optionally upvote.
Kev
2010-09-30 08:51:12
How will i do that??
Sandy
2010-09-30 09:57:32
click on the tick mark
ajay_whiz
2010-09-30 10:23:18
@Sandy Thanks :)
ajay_whiz
2010-10-01 08:02:13