Running Visual Studio 2010 Professional Beta 1 development tools on Windows XP

Started by Vortex, June 06, 2009, 10:15:56 AM

Previous topic - Next topic

Vortex

Download  Visual Studio 2010 Professional Beta 1 and install it on a technician computer. This machine can be another computer or a virtual machine. Copy the following files and folders to your development computer :

The folder named 1033 and it's content
atlprov.dll
bscmake.exe
c1.dll
c1xx.dll
c2.dll
cl.exe
cl.exe.config
cvtres.exe
dumpbin.exe
editbin.exe
lib.exe
link.exe
link.exe.config
ml.exe
mspdb100.dll
msvcm100.dll
msvcp100.dll
msvcr100.dll
nmake.exe
pgocvt.exe
pgodb100.dll
pgomgr.exe
pgort100.dll
pgosweep.exe
undname.exe
vcvars32.bat
xdcmake.exe
xdcmake.exe.config


Notice that it's important to place some critical DLLs to your development environment :

mspdb100.dll , msvcm100.dll , msvcp100.dll , msvcr100.dll

No need to install any framework. You need to copy the include files and import libraries from the technician computer to finalize the setup.

Small executable built with custom C start-up code ( 3584 bytes ) :

set PATH=D:\VS2010b\bin;%PATH%

SET INCLUDE=D:\VS2010b\include;D:\VS2010bSDK\Include

SET LIB=D:\VS2010b\lib;D:\VS2010bSDK\lib

cl /c /Oty2 /Zl /Gs /GS- /FoDemo.OBJ Demo.c
link /SUBSYSTEM:WINDOWS /NODEFAULTLIB Demo.obj crt0\crt0.lib kernel32.lib user32.lib gdi32.lib D:\masm32\lib\msvcrt.lib


Traditional build depending on MS CRT static library ( 31232 bytes )

set PATH=D:\VS2010b\bin;%PATH%

SET INCLUDE=D:\VS2010b\include;D:\VS2010bSDK\Include

SET LIB=D:\VS2010b\lib;D:\VS2010bSDK\lib

cl Demo.c kernel32.lib user32.lib gdi32.lib


Test environment : Windows XP SP 3 with the latest hotfixes, no any .NET framework installed

EDIT : I uploaded a new version of VS2010b1Test1.zip this time containing the crt0 folder. Thanks UtilMasm for your reporting.

[attachment deleted by admin]

d0d0

Thanks alot Vortex!  :U

By the way, have they added support for c99 to their compiler?

Thanks

UtillMasm

 :U
but...
D:\VS2010b\
D:\VS2010bSDK\
crt0\crt0.lib

what are they?
can you atach the following command file's result.
@echo off
echo Working...
dir d:\vs2010b\ /a-d/s/b>AllFiles.txt
dir d:\vs2010bsdk\ /a-d/s/b>>AllFiles.txt
dir d:\vs2010b1test1\ /a-d/s/b>>AllFiles.txt
echo Done, ready to exit.
pause

Vortex

Hi UtillMasm,

Sorry, my apologies. I forgot the crt0 library. Would please download again the sample?

Yes, I should give more information about the structure of installation folders :

VS2010b :

bin        ; binaries, development tools
include    ; standard include files
lib        ; VC run-time libraries


VS2010bSDK :

include ; VS 2010 SDK include files
lib     ; VS 2010 SDK libraries

mitchi

Excellent Vortex. By the way, the batch file of #2 has no linker line.

UtillMasm


mitchi

Oh I see so that's how it is!!  I was expecting something like /MT on the commandline, I didn't know it was default !

dedndave

i was trying to extract the files without a second machine
i created the 1.2 gb ISO image and extracted the files from that
there are several cab files, as well as extractable exe's
i am trying to find the right ones

Vortex

Hi dedndave,

This may not be the best solution but do you have another hard disc to create a safe test environment? You could copy the necessary files to your development system. What I mean is that you can install temporarily your OS to a second hard disc.

dedndave

actually, i do have another hard drive
but i was trying to do it this way so we could document it for others

i may wind up using the drive as a test-bed and figuring out the details as i go

GregL

Quote from: d0d0By the way, have they added support for c99 to their compiler?

No, Microsoft has been ignoring the C99 standard for many years now.  :tdown


drizz

@echo off
rem Mount "VS2010Beta1ENU_PRO.iso" to virtual drive
set ISODRIVE=G
mkdir bin
expand %ISODRIVE%:\cab16.cab -F:"FL_ml_exe_19621_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" ".\bin"
ren ".\bin\FL_ml_exe_19621_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" "ml.exe"
expand %ISODRIVE%:\cab32.cab -F:"F_REDIST_DLL_APPLOCAL_msvcr100_x86" ".\bin"
ren ".\bin\F_REDIST_DLL_APPLOCAL_msvcr100_x86" "msvcr100.dll"
expand %ISODRIVE%:\cab6.cab -F:"FL_link_exe_10395_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" ".\bin"
ren ".\bin\FL_link_exe_10395_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" "link.exe"
expand %ISODRIVE%:\cab10.cab -F:"FL_mspdbst_dll_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" ".\bin"
ren ".\bin\FL_mspdbst_dll_x86_ln.3643236F_FC70_11D3_A536_0090278A1BB8" "mspdb100.dll"

pause > NUL
I'll let you hax0rs figure out the rest :)
Which shouldn't be a problem if you have a good filemanager like tcmd that can browse/extract/search archives.
The truth cannot be learned ... it can only be recognized.

drizz

Oh my, ignore my last post, i completely forgot about a tool i use a LOT to extract msi archives.
It's called "Less MSIérables", the original homepage (http://blogs.pingpoet.com/overflow/archive/2005/06/02/2449.aspx) seems to be down atm, i'll attach the exe that i have, it's not the original because i had to recompile it to fix a little bug.
Open the "vs_setup.msi" file in it and select the files you want to extract.

Edit:
It seems it doesen't work with this msi, oh well, here is the download link with original content anyway
http://code.google.com/p/code4all/downloads/list
The truth cannot be learned ... it can only be recognized.

dedndave

program sounds good - not too sure i like the name - lol
a bit of a stretch
let me play with it - ty Drizz

yah - msi file format has changed a bit over time
but - i think there is an extract option to get a list of files in a cabinet without extracting
i can make a text list with batch then look through it

Vortex

A dialog box example built with ml.exe and link.exe V10

[attachment deleted by admin]