Windows设置项目回滚 [英] Windows set up project rollback

查看:97
本文介绍了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

推荐答案

首先,不要在Visual Studio中使用安装项目。它已在VS2012中删除,当您稍后将项目升级到新的Visual Studio时,它会告诉您不再支持项目类型,您将失去这项工作。



使用第三方设置创建实用程序,例如InstallSheild LE,InnoSetup,Advanced Installer,WiX,...
First, do not use the Setup project in Visual Studio. It''s been removed in VS2012 and when you upgrade the project to a new Visual Studio later, it''ll tell you the project type is no longer supported and you''ll have lost this work.

Use a 3rd party setup creation utility, such as InstallSheild LE, InnoSetup, Advanced Installer, WiX, ...


这篇关于Windows设置项目回滚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆