Running OPNET 14.5 with Microsoft's Visual studio 2010
I leave here a script that I've just done to create all the enviroment variables that OPNET needs to run with Visual Studio 2010.
I found this topic where they explain how to configure Microsoft's Visual Studio 2008 to support OPNET and I modified the paths to match the MSV 2010 ones. I think it should run flawlessly but please leave comments telling whether it runs or not because I lost track of it during the debugging process....
Download script here (32 bits)
Here is the 64 bits version. It is completely untested. I think is safe to use but I'm not sure if it works. If you try it please leave feedback.
Be aware:
I take no responsibility of any damage that this script could cause to your system. Use it under your own responsibility.
You should check the code before running it!
And run it WITH ADMINISTRATIVE RIGHTS!
Hi, thank you But i cant download!!!
ResponderEliminarplease reupload, thanks again..
Done, i guess... I used google drive, you have to click on File>Download. Tell me if the script works!
EliminarAny luck?
EliminarSorry, should work on Windows 7 x32 or XP only?
ResponderEliminarI've got it working under windows 7 32bits, yes.
ResponderEliminarhi ,I tried the 64bit version and i could get it to work please help.
ResponderEliminarDude, your script works, I changed to lowercase uppercase, for example: C: \ WINDOWS to C: \ Windows, in places that were necessary, (according to my OS), then it worked, I tried it on Windows 7 x32 with Visual Studio 10, Sorry for my English, I only speak Spanish. Greetings and thanks from La Paz, Bolivia.
ResponderEliminarI'm glad it worked for you. Thanks for your comment.
EliminarSi lo hubiera sabido habría puesto el post en castellano también :)
Got it..Just run the command prompt as administrator privilege...then type cl..then you go...you must install the software as administrator too...
ResponderEliminarMicrosoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
and RUN the OPNET Modeler 14 as ADMINISTRATOR too... therefore, you can run it as usual in 64 bit OS..
Hi there , i have w7 64b with MVS2010 , i ran the 64b script but it's not working , it says string.h was not found when i try to run the module. Any ideas ?
ResponderEliminarThank you very much
Probably you'll have to modify the paths according to your own MVS paths. You can edit the file with the notepad for exemple.
EliminarGood luck.
Este comentario ha sido eliminado por el autor.
EliminarSorry , but can you help me please ? I tired to run on my PC instead of laptop and i have poroblems with setx command , why is that ?
Eliminarhi glownt
ResponderEliminarthanks for your 32bit version it helped me during my studies in university
i fixed the issue with the 64bit check it below
====batch==========================
echo off
cls
echo Script to add enviroment variables for Visual Studio 10 (script version 1.3)
echo ============================================================================
echo
echo Run this under your own responsability.
echo It's allways recommended to have a look at the script code before running it...
echo REMEMBER TO RUN IT WITH ADMINISTRATIVE RIGHTS!!!!!!!!! (otherwise it won't work)
pause
echo on
setx DevEnvDir "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;" /m
setx Framework35Version "v3.5;" /m
setx FrameworkDir "C:\WINDOWS\Microsoft.NET\Framework;" /m
setx FrameworkVersion "v2.0.50727;" /m
setx INCLUDE "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include; " /m
setx LIB "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib; " /m
setx LIBPATH "C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;" /m
setx VCINSTALLDIR "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC" /m
setx VS100COMNTOOLS "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\ " /m
setx VSINSTALLDIR "C:\Program Files (x86)\Microsoft Visual Studio 10.0 " /m
setx WindowsSdkDir "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A;" /m
set temporal=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin;
setx PATH "%temporal%" /m
echo off
echo Variables successfully created for Visual Studio 10.0 (64bits)
echo script by glownt edited by Mohamed nur
pause
==========end of batch ===============