views:

51

answers:

1

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
Can you please tell me how?
Sandy
how are you creating MSI file?
ajay_whiz
Once click deployment.
Sandy
cscript adsutil.vbs set w3svc/1/ROOT/Test/css/HttpCustomHeaders "Cache-Control: max-age=36000"
Sandy
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
I got the point,Thanx Ajay....
Sandy
@Sandy - if this answer helped you out then you should mark it as correct and optionally upvote.
Kev
How will i do that??
Sandy
click on the tick mark
ajay_whiz
@Sandy Thanks :)
ajay_whiz