摘要

项目有这样一个需求,在体验机上安装了一个软件,如果有用户卸载的时候,给与输入密码验证的提示,当然强制删除软件所在目录除外。那么这个有办法实现吗?

解决办法

[Winform]setupfactory制作安装包卸载输入密码进行验证

在卸载的时候,用户单击下一步的时候进行权限验证。

脚本

-- These actions are performed when the Next button is clicked.

-- advance to the next screen
result = Dialog.Input("卸载权限验证", "请输入卸载密码r:", "", MB_ICONQUESTION);
-- An if statement that compares two numbers
if (result=="123456") then
    Screen.Next();
else
   -- Do something else here
    result = Dialog.Message("Error", "Password is Error", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Application.Exit(0);
end

测试卸载

[Winform]setupfactory制作安装包卸载输入密码进行验证

相关文章:

  • 2021-06-16
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-12-24
猜你喜欢
  • 2021-09-20
  • 2021-07-17
  • 2022-12-23
  • 2022-01-01
  • 2022-03-08
  • 2022-12-23
相关资源
相似解决方案