Our installation requires a way to detect whether Visual Studio is currently 
running. If it is, installation will quit.
Since Wix v2 doesn't have a way to detect the running process, what I'm 
thinking is:

1.       Use C# to write a tool named CheckProcess.exe which will return 1 if 
Visual Studio is running.

2.       Invoke CheckProcess.exe in a Custom Action after "LanuchCondirion" and 
set the value of IS_VS_RUNNING according to the return value of 
CheckProcess.exe.

3.       If IS_VS_RUNNING, installer will pop up an error message and quit the 
installation.

The question is how to set the value of a property according to the return 
value of a Custom Action?

Thanks,
Xin
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to