Setup Factory 打包程序 --程序安装前判断本机是否安装.NET Framework和SQL Server

    xiaoxiao2024-11-29  6

    .NET Framework 4.0

    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\policy\\v4.0"); if (result == false) then Dialog.Message("提示", "请先安装.net4.0\r\n.net4.0下载地址"); Application.Exit();

    SQL Server

    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "software\\microsoft\\microsoft SQL Server"); if (result == false) then Dialog.Message("提示", "请先安装.SQL Server下载地址"); Application.Exit();

    转载请注明原文地址: https://ju.6miu.com/read-1294071.html
    最新回复(0)