开发者

Web Setup Project - Repair to overwrite files

开发者 https://www.devze.com 2022-12-11 08:37 出处:网络
I have a web setup project that creates an MSI.After first installation, my web site has some config files that can be modify manually.

I have a web setup project that creates an MSI. After first installation, my web site has some config files that can be modify manually.

When triggering that MSI again, I am offered to repair the installation, when I select to do so, the installation runs, but the config files that were 开发者_StackOverflow中文版modified previously are no replaced with default config files contained in the MSI.

I am looking for a way to overwrite those files when a repair is done.

EDIT: The setup project is built using a Visual Studio Web Setup project.

Thanks.


Try setting the default config files each as the Key file in their own component.


What I finally did was to use a batch file to call my MSI. It is not great since we end up with two files for the installation. I could not find another way. I am still open to suggestion. Here is the batch file:

@echo off
msiexec /x "%1" /quiet >out.txt
if errorlevel 1 goto installNew

:installNew
msiexec /i "%1" >>out.txt

:end
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号