Thanks, Stefan! I think you are right. Thanks, Xin
-----Original Message----- From: Stefan Pavlik [mailto:[EMAIL PROTECTED] Sent: 2007年5月28日 16:42 To: Xin Liu (Intl Vendor) Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Set property value according to the return value of a custom action Hi,... You should use CustomAction in DLL and write the Property IS_VS_RUNNING directly from the Custom action. Check the WiX tutorial for details on how to write the DLL: http://www.tramontana.co.hu/wix/lesson3.php#3.3 I would not use the C# for custom action since it would require the .NET framework to be already installed on the machine. The sample in the tutorial is in C++. Regards Stefan Xin Liu (Intl Vendor) wrote: > 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 -- Stefan Pavlik | [EMAIL PROTECTED] Whitestein Technologies s.r.o. | www.whitestein.com Panenska 28 | 811 03 Bratislava | Slovak Republic Main +421 2 5443-5502 | Direct +421 2 5930-0735 ------------------------------------------------------------------------- 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