{"QuestionId": 851677, "AnswerCount": 3, "Tags": "", "CreationDate": "2009-05-12T08:07:44.227", "AcceptedAnswerId": null, "Title": "How to check for installed package in WiX 3.0?", "Body": "

I'd like to check that Crystal Reports Basic for Visual Studio 2008 is installed as a condition for my own installation package.

\n\n

I found this in the bootstrapper description for this product (C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\CrystalReports10_5\\product.xml) :

\n\n
<InstallChecks>\n  <MsiProductCheck Property=\"CRVSInstalled\" Product=\"{AA467959-A1D6-4F45-90CD-11DC57733F32}\"/>\n  <MsiProductCheck Property=\"CRVSRunTimex86Installed\" Product=\"{CE26F10F-C80F-4377-908B-1B7882AE2CE3}\"/>\n  <MsiProductCheck Property=\"CRVSRunTimex64Installed\" Product=\"{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. \"/>\n</InstallChecks>\n
\n\n

Trying to mimic this behavior in WiX, I did the following :

\n\n
<Property Id=\"CRVSINSTALLED\">\n  <ComponentSearch Id=\"CRVSInstalledSearch\" Guid=\"{AA467959-A1D6-4F45-90CD-11DC57733F32}\" />\n</Property>\n<Property Id=\"CRVSRUNTIMEX86INSTALLED\">\n  <ComponentSearch Id=\"CRVSRunTimex86InstalledSearch\" Guid=\"{CE26F10F-C80F-4377-908B-1B7882AE2CE3}\" />\n</Property>\n<Property Id=\"CRVSRUNTIMEX64INSTALLED\">\n  <ComponentSearch Id=\"CRVSRunTimex64InstalledSearch\" Guid=\"{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}\" />\n</Property>\n<Condition Message=\"!(loc.CrystalReportsRequired)\">Installed OR CRVSINSTALLED OR CRVSRUNTIMEX86INSTALLED OR CRVSRUNTIMEX64INSTALLED</Condition>\n
\n\n

But it seems that ComponentSearch is looking for package components (files, directories) that have their own ids, rather than looking for the package itself.

\n\n

So how can I do this ?

\n", "Lable": "No"} {"QuestionId": 1289072, "AnswerCount": 2, "Tags": "<.net>", "CreationDate": "2009-08-17T16:41:06.807", "AcceptedAnswerId": null, "Title": "How to Consume SOAP 1.2 Web Service Created in WCF by a Java Client?", "Body": "

I'm developing a Web Service Project in which I have to implement a web service that should be interoperable on all platforms. So initially I used basicHttpBinding as it uses SOAP 1.1 but I want the features of WS-* like reliable messaging, security, exceptions. So I used wsHttpBinding which is a SOAP 1.2 standard.

\n\n

Now after deploying on my test server I used Netbeans IDE to generate a webservice client. So in return it called the wsimport tool in java to generate proxy classes. When I invoke any method it simply goes into non-working state like there is no activity for 5 mins. So I'm not able to figure out that whether Java client can consume a SOAP 1.2 web service created in WCF?

\n\n

I need to know if I need to use any other binding than wsHttpBinding for all the features and have interoperability as well.

\n\n

I don't get any error when i invoke the web method.I tried debugging it but to no help.i set break-point on the line which was invoking the method,when debugger reaches that line then nothing happens, IDE shows running status but there is no activity.If anyone can suggest a tool to monitor Http request to server.

\n", "Lable": "No"} {"QuestionId": 1409728, "AnswerCount": 3, "Tags": "<.net><.net-3.5><.net-3.0>", "CreationDate": "2009-09-11T08:35:04.610", "AcceptedAnswerId": "1409738", "Title": "User advantage for .NET 3.5 over .NET 3.0", "Body": "

I've seen many questions on SO about .NET 3.5 advantages, but these are more leaned towards language features and easier development. Are there any non-developer-wise advantages for using .NET 3.5? Bugs, fixes, advantages over time?

\n\n

Background:

\n\n
    \n
  1. Desktop application that works in conjuction with a device driver.
  2. \n
  3. We wanted to support as much configurations as possible, we settled for .NET 3.0. All of the functionality we really need is in .NET 3.0
  4. \n
  5. But I so want to use LINQ and all the other new framework features. These don't help the users one bit, though.
  6. \n
\n", "Lable": "No"} {"QuestionId": 1435766, "AnswerCount": 5, "Tags": "", "CreationDate": "2009-09-16T22:10:40.500", "AcceptedAnswerId": "1435782", "Title": "C Variable Scope Specific Question", "Body": "

Here is a particular scenario that I have been unclear about (in terms of scope) for a long time.

\n\n

consider the code

\n\n
#include <stdio.h>\n\n\ntypedef struct _t_t{\n    int x;\n    int y;\n} t_t;\n\ntypedef struct _s_t{\n    int a;\n    int b;\n    t_t t;\n}s_t;\n\nvoid test(s_t & s){\n    t_t x = {502, 100};\n    s.t = x;\n}\n\n\nint main(){\n    s_t s; \n    test(s);\n\n    printf(\"value is %d, %d\\n\", s.t.x, s.t.y);\n    return 0;\n}\n
\n\n

the output is

\n\n
value is 502, 100\n
\n\n

What is a bit confusing to me is the following. The declaration

\n\n
t_t x\n
\n\n

is declared in the scope of the function test. So from what I have read about C programming, it should be garbage out of this scope. Yet it returns a correct result. Is it because the \"=\" on the line\n s.t = x;\ncopies the values of x into s.t?

\n\n

edit---

\n\n

after some experimentation

\n\n
#include <stdio.h>\n\n\ntypedef struct _t_t{\n    int x;\n    int y;\n} t_t;\n\ntypedef struct _s_t{\n    int a;\n    int b;\n    t_t t;\n}s_t;\n\nvoid test(s_t & s){\n    t_t x = {502, 100};\n    t_t * pt = &(s.t);\n    pt = &x;\n}\n\n\nint main(){\n    s_t s; \n    test(s);\n\n    printf(\"value is %d, %d\\n\", s.t.x, s.t.y);\n    return 0;\n}\n
\n\n

actually outputs

\n\n
value is 134513915, 7446516\n
\n\n

as expected.

\n", "Lable": "No"} {"QuestionId": 1449472, "AnswerCount": 3, "Tags": "", "CreationDate": "2009-09-19T20:43:25.490", "AcceptedAnswerId": "1449590", "Title": "Select Box And Checkbox Replacement", "Body": "

I'm looking for a sensible way how to style select boxes, checkboxes and/or radiobuttons with CSS. I know that you can't do it with plain CSS because of how browsers' rendering engines work.

\n\n

But are there any javascript ways to style these HTML elements? And do they work across major browsers?

\n", "Lable": "No"} {"QuestionId": 1544974, "AnswerCount": 1, "Tags": "", "CreationDate": "2009-10-09T17:03:15.137", "AcceptedAnswerId": "1549067", "Title": "Rebol and unset (optional) parameter", "Body": "

I want to create a do-libs generic function to automatically load a bunch of libs listed in rebol header files. I want to make the parameter optional but in that later case it doesn't work why ?

\n\n
Rebol[\n  libs: [     \n    lib1/lib11.r\n    lib1/lib12.r\n    lib2/lib21.r\n  ]\n]\ndo-libs 'libs ; works\ndo-libs ; doesn't work\n
\n\n

with:

\n\n
do-libs: func[libs [word! unset!]][\n\n  if/else value? 'libs [\n    foreach lib system/script/header/:libs [\n      if/else file? lib [\n        do lib\n      ][    \n        do file: to-rebol-file mold lib\n      ]      \n    ]\n  ][\n    ;case with no parameter\n    do-libs 'libs\n  ]\n]\n
\n", "Lable": "No"}