????? ????? ?? ???? ???? ????? ??? Windows Installer ??????? ???????? ??? ?????? ????? ??

?????? ????????? ?????? ?????????
???? ???????: 974653 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

?????

???? Windows Installer ?????? ????? ????????? ???? ???? ???????? ??????? ????? ?????? Windows Installer ???? ????? ????? ????. ??? ????? ?? ???? ??? ??? ?????? "? ????? ?? ???? ???? ????? (GUID). ???? ??? ??????? ????? ???????? ???????? ???? ????? ????? ????? ?? ???? ???? ????? ??? Windows Installer ??????? ???????? ??? ?????? ????? ??.

??????? ????

??????? ????? ????? ????????? (API) ?? Visual C++

??????? ???? ?? ????? ??????? ??????? MsiGetProductInfoExW() ?? Visual C++ ????? ?? ???? ???? ????. ?????? ?????? ?????? ??? ???? ?????? GUID ????? ??. szVersion
TCHAR szVersion[20];
DWORD cchVersion = 20;
BOOL fInstalled = (ERROR_SUCCESS == MsiGetProductInfoEx (TEXT("{ProductCode}"), NULL, MSIINSTALLCONTEXT_MACHINE, INSTALLPROPERTY_VERSIONSTRING, szVersion, &cchVersion));
?? ??? ?????? ??? ????????? ???????? "? ?????? ????? ?????? fInstalled ???? TRUE ?? FALSE ???????? ??? ?? ??? ??? ????? ?????? ???? ?? ?????? ?? ??? ????.

??????? ????? ????? ????????? (API) ?? VBScript

??????? ???? ?? ????? ??????? ??????? ProductInfo() ??? ???? WindowsInstaller.Installer ?? ?????? Microsoft Visual Basic ????? ?? ???? ???? ????. ?????? ?????? ?????? ??? ???? ?????? GUID ????? ??.
 
Dim msi : Set msi = CreateObject("WindowsInstaller.Installer")
On Error Resume Next
Dim version : version = msi.ProductInfo("{ProductCode}", "VersionString")
Dim installed : installed = ( Err.Number = 0 )
?? ??? ?????? ??? ????????? ???????? "? ?????? ????? ??????? ???? 0 ?? 1 ???????? ??? ?? ??? ??? ????? ?????? ???? ?? ?????? ?? ??? ????.

?????? ????? ????? ProductCode ???? ??? ??????? ??? ??????? ?? ??? ??????? ??? ?????? ({}) ???? ?????? ??????. ?????? ??? ???? ?? ????????? ??? Windows Installer? ?? ?????? ???? Microsoft Windows Installer ??? MSDN ??????:
http://msdn.microsoft.com/en-us/library/aa367449(VS.85).aspx
????? ?? ????????? ??? ????? ?????? ??? ???? ????? ?? Windows Installer ????????? ????? ?? ?????? ???? Microsoft ??????? ??? ?????:
http://www.microsoft.com/downloads/details.aspx?familyid=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en
????? ?? ?????????? ?????? ????? ????? ??? Microsoft ??????: ?????? ??? ??? "?????" ???????? ??? ???????? ??????? ?? ??? "????? ???" ????? ????????? ??????? ?? ??? ??????? ????? ??? ?????? ??????:
  • ???? Windows 4.0

???????

???? ???????: 974653 - ????? ??? ??????: 28/?????/1430 - ??????: 1.1
????? ???
  • Microsoft Windows Installer 4.5
  • Microsoft Windows Installer 3.1
????? ??????: 
kbmt kbexpertiseinter kbsecurity kbsecvulnerability kbsurveynew KB974653 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????974653

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com