I recently faced the question on how to determine the version of an given blank Windows 7 DVD.
After some web search and I had tried several ways here’s how you do this.
Code that helps you code.
I recently faced the question on how to determine the version of an given blank Windows 7 DVD.
After some web search and I had tried several ways here’s how you do this.
C:\Users\%username%and delete it.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileListand delete it.
In cause of my latest project Simple Proxy Switch I had to face the challenge of detecting the setting of the current network the computer is connected to.
Now here’s my snippet how do I retrieve the current network setting:
// zero conf ip address IPAddress zeroConf = new IPAddress(0); // get current assigned addresses IPAddress[] hostAddresses = Dns.GetHostAddresses(Dns.GetHostName()); var networkData = NetworkInterface.GetAllNetworkInterfaces() // filter running network interfaces .Where(network => network.OperationalStatus == OperationalStatus.Up) // filter unknown interfaces .Where(network => network.NetworkInterfaceType != NetworkInterfaceType.Unknown) // filter loopback interfaces .Where(network => network.NetworkInterfaceType != NetworkInterfaceType.Loopback) // get the properties .Select(network => network.GetIPProperties()) // filter initialized gateways .Where(ipProps => ipProps.GatewayAddresses.All(gateway => gateway.Address != zeroConf)) // filter and get ip addresses .SelectMany(ipProps => ipProps.UnicastAddresses.Where(ucAddress => hostAddresses.Contains(ucAddress.Address))) .Where(ucAddress => hostAddresses.Contains(ucAddress.Address)) // simply use the first .FirstOrDefault();
Be the force with you!
%VSINSTALLDIR%\Common7\IDE\devenv.exeis treated to be executed as administrator also the VSLauncer.exe located in
%CommonProgramFiles%\microsoft shared\MSEnv\VSLauncher.exeYesterday I spent now 2 min with google and found a solution.
EnableLinkedConnectionslocated under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Systemand setting it’s DWORD value to ‘1’. Detailed information can be found here.
msiexec /a <product.msi> /qb TARGETDIR=%CD%Still after searching the web I still had no solution so tried to analyse failure with log file examination:
msiexec /a <product.msi> /qb TARGETDIR=%CD% /lv %CD%\Installer.logAfter reading a few lines of log the scales fell from my eyes. The source and the destination are the same and the Installer prohibit extracting into source directory directly.
msiexec /a <product.msi> /qb TARGETDIR=%CD%\Extractsolves the problem!