子夜(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;