发新话题
打印

[IS]读取sqllogin对话框中的用户名及密码

子夜(12405735) 15:50:38
这个是我读密码的并写入文件的函数!

子夜(12405735) 15:50:21
function MyFunction(hMSI)  
NUMBER nvFileHandle,nvSize;
STRING SQLPASSW,svName;
    // To Do:  Declare local variables.
begin   

OpenFileMode(FILE_MODE_APPEND);
OpenFile(nvFileHandle,INSTALLDIR,"Web.config");  
MsiGetProperty (hMSI, "IS_SQLSERVER_PASSWORD", svName, nvSize);
WriteLine(nvFileHandle,"jclhy");
WriteLine(nvFileHandle,svName);
CloseFile(nvFileHandle);
    // To Do:  Write script that will be executed when MyFunction is called.

end;

TOP

发新话题