This is tricky, you have to do following steps,
- Set Remove Previous Installation as True
- Set Detect new version as True
- Your C# program's version must increase with every deployment
- You should change version of your installer to one higher version and it will ask you to change product code, select YES.
- Do not change your upgrade code, let it be same.
If you do not do 3rd step correctly, installer will still install and keep the old file, your file version of every file must be new if you have changed your content.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…