Unattained Installation of Team Visual Studio 2012

Before we start our Silent Installation of Visual Studio 2012. We have to take care of few as mention below:
1.       IF SOURCE FOLDER CONTAINS SPACE(S) ANYWHERE IN THE ENTIRE PATH, INSTALLATION WILL FAIL.
2.       Create a copy of AdminDeployment.xml (to serve as backup in case any unwanted changes occur in original file)
3.        Change value of attribute NoWeb=”default” to NoWeb=”yes” in AdminDeployment.xml. See the highlighted section.
ORIGINAL:
<admindeploymentcustomizations dmindeployment="dmindeployment" http:="http:" schemas.microsoft.com="schemas.microsoft.com" wix="wix" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment

“>

   NoWeb=”default”/>
  
CHANGED:
<admindeploymentcustomizations dmindeployment="dmindeployment" http:="http:" schemas.microsoft.com="schemas.microsoft.com" wix="wix" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment

“>

   NoWeb=”yes”/>
  
3. Copy CHANGED AdminDeployment.xml into packages sub-folder of SOURCE FOLDER.
Now the below Script will do the magic to installed VS2012 in Silent, Unattained mode.
@echo off
echo ========================================================
set application=Visual Studio 2012 Premium
SET ERRORLEVEL=0
SET sourceLocation=D:\VS2012Premium\
SET setupFile=%sourceLocation%vs_premium.exe
SET adminFile=%sourceLocation%AdminDeployment.xml
SET logFileLocation=”D:\Logs\Installations\vs2012_premium.log”
echo Installing %application% ….
echo SourceLocation=%sourceLocation%
echo setupFile=%setupFile%
echo adminFile=%adminFile%
echo logLocation=%logFileLocation%
:check
IF EXIST “%setupFile%” goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end
:run
echo running installation file…..
“%setupFile%” /adminfile “%adminFile%” /quiet /norestart
:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit
~jawed

Unattained Installation of Team Foundation Server 2012

Here you go with the command to installed Team Foundation Server 2012 silently or Unattained.

Create bat file and name it’s as TFS2012.cmd file.  And paste the below code in TFS2012.cmd,
When you are done just double click the cmd for some time and you are done with the installation of tfs2012.
                @echo off
echo ========================================================
set application=Team Foundation Server 2012 x64
SET ERRORLEVEL=0
set sourceLocation=”D:\Team Foundation Server 2012\Team Foundation Server 2012 x64\tfs_server.exe”
set logFileLocation=”D:\Logs\Installations\TFS2012-X64.log”
echo Installing %application% ….
echo SourceLocation=%sourceLocation%
echo logLocation=%logFileLocation%
:check
IF EXIST %sourceLocation% goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end
:run
echo running installation file…..
%sourceLocation% /q /i /norestart /l*v %logFileLocation%
:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit
Thanks,
Md. Jawed

Javascript unit tests using QUnit

I would like to recommend you few links which would be helpful for you to go ahead.

To know more about QUNIT and create you first script suing Qunit you can follow below link:

http://net.tutsplus.com/tutorials/javascript-ajax/how-to-test-your-javascript-code-with-qunit/

To Integrate JavaScript Unit testing into your website and enables to run JavaScript unit tests from Visual studio you can look into below open source tool.

http://chutzpah.codeplex.com/

Hope this would help you!!

Thanks!!

Tracker Response files not found (Tracker.exe)

Few Days Back while building one of the project we were getting below error continuously.

On looking in to msdn we finally got the workaround solution for this issue.

Solution:

Edit the build definition (Team Explorer => solution => builds => (select your build definition) right click Edit Build Definition => Process (on left) => 3. Advanced => under MSBuild Arguments paste the following:

/p:TrackFileAccess=false

from http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/baf16a4b-c25d-4722-a844-6276344b0db2

Here are words from MSBuild Developer from Microsoft.

The trigger for the error is that the GenerateResource task must be run during the build in such a way that we embed FileTracker (a tool we have been using for up-to-date check) in the process itself — when targeting 4.0, when targeting 3.5 on a 32-bit machine, or when targeting 3.5 on a 64-bit machine when running 64-bit MSBuild.

To work around the error, you can either set TrackFileAccess=false, as has already been observed, or if you’re on a 64-bit machine and targeting 3.5 exclusively, the error should also go away if you start using 32-bit MSBuild instead.

TrackFileAccess=false works around the error by turning off the use of FileTracker; the downside is that that means the you will no longer be able to use FileTracker-based up-to-date check, so your VS 2010 C++ projects and your GenerateResource task invocations will now always build, even when there have been no changes — the latter generally causing a cascading rebuild for the managed compilers as well, since they consume the .resources files.

Thanks,
Sara Joiner
Developer, MSBuild

For more Info you can visit below links.
https://connect.microsoft.com/VisualStudio/feedback/details/508650/tracker-response-file-not-found

Feel free to provide your comments and suggestion.
Thanks!!
MD. Jawed

NetTcpPortSharing service: failed to start the service

Few Days back when I was running and build, it started throwing an exception as:

The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: failed to start the service because it is disabled.
An administrator can enable it by running ‘sc.exe config NetTcpPortSharing start= demand’..
—> System.InvalidOperationException: Cannot start service NetTcpPortSharing on computer ‘.’. —> System.ComponentModel.Win32Exception: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Solution
To enabled, run the following command in console windows as mention in the error log
sc.exe config NetTcpPortSharing start= demand

 


To disable it, run the following command in a console window.
sc.exe config NetTcpPortSharing start= disabled

And after that run you build once again. I’m sure it would not throw any error next time.

Thanks,
Md. Jawed