how to set file installation condition through command line for a .net setup project?

Thanks

I found it, in the condition property of primary output set an arbitrary name, in my case i typed DENEME for one project, for the second one i typed DENEME2. in the command line set these variables to arbitrary values. the condition evaluates to existance of these variables so the value does not matter. I attach the project to this post, you can play around either setting these properties or removing them, if you just type the property without a value, windows installer will give an error.

msiexec.exe /i "C:\FileConditionSetup.msi" DENEME2=dummy DENEME=dummy
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.