Display Windows OS Name in a string: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 24: | Line 24: | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: Joelito | Page author: [[User:Joelito|Joelito]] |
Revision as of 12:36, 23 April 2005
The Script
; This Function will display the Name of your OS installed. ; Created by Lobo Lunar Name "Windows OS Name" OutFile "OSName.exe" Function "GetWIN" ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" ProductName StrCmp $0 "" +1 +2 ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" ProductName FunctionEnd Function .onInit Call "GetWin" MessageBox MB_OK|MB_ICONINFORMATION $0 Quit FunctionEnd Section -Ghost ; Hide Me Sectionend
Page author: Joelito