Step 1:
Login your Windows 7 as Administrator account. If u not with domain then activate your hidden local Administrator account using command prompt Run as Administrator.
net user administrator /active:yes
Step 2:
Create “SharePointFiles” folder in c drive then copy your SharePoint installer after extract installer in same path using command prompt
c:\SharePointFiles\SharePointSetup.exe /extract:c:\SharePointFiles
Step 3:
Using a text editor such as Notepad, open the installation configuration file, config.xml, located in the following path: c:\SharePointFiles\files\Setup\config.xml
Add this line inside the tag:
<Setting Id="AllowWindowsClientInstall" Value="True"/>
Then save the configuration file.
Step 4:
install prerequisites
c:\SharePointFiles\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=23806 Microsoft Sync Framework Windows Identity Foundation (Windows6.1-KB974405-x64.msu) SQL Server Native Client Chart Controls SQL Server Analysis Services - ADOMD.Net
Step 5:
Running the following command in a Command Prompt window
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;^ IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;^ IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;^ IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;^ IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;^ IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;^ IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;^ IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;^ IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;^ WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;^ WCF-NonHTTP-Activation
Step 6:
Click and install setup.exe (c:\SharePointFiles\Setup.exe)
Step 7:
Choose the installation you want
Standalone :choose your machine not with domain account
Server Farm :choose your machine added with domain account.