本文介绍了Windows设置项目回滚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是Windows安装项目的新手,我正在尝试进行自定义操作,我在接受Cd密钥并将其与数据库中的记录进行核对。
我想要的是如果CD密钥无效,它应该给msg并停止进一步的安装过程。我在installer.cs文件中使用base.Rollback()但仍然没有回滚安装。我正确地获得了msg,即使rollback()被调用但它实际上没有回滚安装。
有人可以帮我解决吗?
提前感谢
Hi Everybody,
Am new to Windows setup project and am trying to put in custom action where in am accepting Cd key and checking it against record in DB.
What I want is if CD key is invalid it should give msg and stop the further installation process. Am using base.Rollback() in installer.cs file but still its not rolling back the installation. Am getting msg properly even the rollback() is getting called but its not actually rolling back the installation.
Can anybody help me out?
thanks in advance
推荐答案
这篇关于Windows设置项目回滚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!