-----Original Message-----
>From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
>Sent: Jan 30, 2013 12:41 PM
>To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
>Subject: Re: [Wireshark-dev] Having issues with wireshark dissector installation
>
>On 30 January 2013 17:10, Arshad <heyarshad@xxxxxxxxx> wrote:
>
>> Hello,
>>
>> I am a newbie to programming. I am having issues with compiling the a
>> basic dissector that I created as per the developer guide. I have the code
>> but I am not able to compile it. I tried the steps to build it, but having
>> issues with compiling it. I tried from WIndows to compile it and followed
>> the step by step guide:
>> http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html But I
>> am getting error installing the SDK and it shows installation failed.
>>
>> "A problem occurred while installing selected Windows SDK components.
>>
>> Installation of the "Microsoft Windows SDK for Windows 7" product has
>> reported the following error: Please refer to
>> Samples\Setup\HTML\ConfigDetails.htm document for further information."
>>
>> Can I get some help in fixing it.
>>
>>
>I'm guessing you are using VS 2010 Express. If so, you only need the SDK
>for 64 bit versions of wireshark. Unless you really need a 64 bit version,
>don't install the SDK.
For what it's worth, I use VS 2010 Express and have it set up for either 64- or 32-bit compilation. To make it simple, I use the following batch file:
@echo off
if "%1" == "" goto x86
if /i %1 == x86 goto x86
if /i %1 == x64 goto x64
goto usage
:usage
echo Error in script usage. The correct usage is:
echo %0 [option]
echo where [option] is: x86 ^| x64
echo:
echo For example:
echo %0 x86
goto :eof
:x64
set WIRESHARK_TARGET_PLATFORM=win64
call "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64
goto :eof
:x86
set WIRESHARK_TARGET_PLATFORM=win32
call "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x86
goto :eof
Ed