How to hide the "Repair" option in the .NET installation package

If you use Virtual Studio to build your installation package, when you run this package secondly, it would show "Repair" option, just like below picture.




Here I will tell you how to hide the "Repair" option.

Step1: we need a tool to modify the installation.msi file. Microsoft provide a tool called "Orca", we can get it from Windows SDK Components for Windows Installer Developers. BTW, it's so huge, about 4GB. So here I recommend a nice tool called SuperOrca, just 2MB.


Step2: using SuperOrca to open the installation.msi. Adding two entries in the Property table. One is ARPNOREPAIR, the other is ARPNOMODIFY, their value both are 1.



Step3: Changing the default Uninstallation action to "Remove" option.



Step4: Open the RadioButton table, and then change the Y axis value of Repair. Changing it to a very big value, so that it would exceed the window form.
I try a lot of methods to remove the repair option, but they are all failure. Because the repair option is installation default option, if remove it the install program will product exception. Addition, I think changing the position is more safe.



Note:
You must finished all of the above steps before executing the installation package. Because after you run the installation package once, the register will log the relevant records. 


When you run this installation package secondly, the final result picture as:




This article is from http://blog.csdn.net/tjvictor By Victor Guo. If you want to forward it , please remark the article original Url. 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值