web installer launch condition RRS feed

  • Question

  • Hi

    when installing a web service with msi I do not want override web.config file in case it exists. (Could be installed in an existing web site)
    in VS2010 I added web setup project.
    in "Launch Conditions/Search Target Machine" added File Search with FileName="Web.config",Folder=[TARGETDIR], Property="CONFIG_EXISTS"
    in "Web.config File Installation Properties" set Condition="Not CONFIG_EXISTS"

    Web.config is always copied into web service directory exists or not. If I set Condition="CONFIG_EXISTS" it is never copied. Property seems to be always = false.
    Can someone PLEASE tell me what I am missing.

    • Moved by Stanly Fan Tuesday, May 15, 2018 7:51 AM
    Thursday, May 10, 2018 11:56 PM

All replies

  • Hi lenab,

    According to your description, your issue is more related about Web app installer. And this forum is discussing and asking questions about the Windows Form and ClickOnce, it will be more appropriate to ask your question at ASP.NET Installation and Setup Forum.

    Thank you for your understanding.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, May 11, 2018 1:06 AM