Last post Aug 27, 2010 04:59 PM by sanjevspl
Aug 20, 2008 06:21 PM|zhngmm|LINK
I am not sure if here is a proper place to ask this question. I look for other forums, and don't feel this question can fit in any. If this is not a correct place to post, I appologize. Please let me know where I can get answer for this question. Thanks.
Here is my question.
I wrote a website, and not I am trying package it with a setup program (msi), so I created a "Web Setup Project" and specify outputs as the standard tutorial on this.
And then I'd add custom action to msi which modify Web.config file during msi installation. Output looks ok, but msi install the website under "C:\Inetpub\wwwroot" folder, and I don't have control on it. I followed an example (http://www.codeproject.com/KB/install/ChangeVDirWebSetupProject.aspx)
use orca.exe to remove WEBCA_EvaluateURLsMB, WEBCA_EvaluateURLs and
WEBCA_EvaluateURLsNoFail from corresponding tables in msi and provides TARGETDIR value while calling the msi file. And then I fall in a problem, either the custom action is not called any more or I get a error "Configuration
file cannot be created".
To be simple, what I want to do is during the msi installation, it can
1. be able to specify [TARGETDIR]
2. be able to modify web.config file
Any one have idea how to do it?
I have spend more than 3 days on searching Internet for this, and have no clue. Any idea will be helpful. Thanks a lot.
Aug 21, 2008 03:17 AM|dharnendra|LINK
Please refer the below code project article.
Aug 21, 2008 11:22 AM|zhngmm|LINK
THANK YOU VERY MUCH! That's exactly the missing piece of mine.
Sep 11, 2008 07:29 AM|udhay_c|LINK
I am also having the same issue, but I couldn't succeed..
I did everything as given in the codeproject URL. But everything in vain..
I have framework 2.0 and IIS 5.1.. Does this matter?
Can u guide me to set TARGETDIR property using Websetup.
Sep 12, 2008 12:31 AM|udhay_c|LINK
It worked for me following the codeproject URL.
The mistake I did was by using orca 2.1. I download ORCA 3.1 and made tools--database-- settings
and everything worked fine..
Aug 27, 2010 04:59 PM|sanjevspl|LINK
Seem like you solved the problem, i followed everline on code project link using orca 3.1 but the [TARGETDIR] reverts back to inetpub, Please help me.