Function .onInit
;!insertmacro MUI_INSTALLOPTIONS_EXTRACT "SystemPara.ini" Push $R0 Push $R1 ReadRegStr $R0 HKLM Software\Autodesk\Autocad\R16.0\Acad-201:804 ProductName StrCpy $R1 "AutoCAD 2004" StrCmp $R0 $R1 IsR2004 Pop $R0 Pop $R1 MessageBox MB_OK|MB_ICONSTOP "请先安装AutoCAD 2004!" Abort IsR2004: Pop $R0 Pop $R1 Return FunctionEnd |