Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
On 4/26/2010 7:18 PM, gapearce wrote: I think you need to check one more bit. The example you linked to previously doesn't check the suite name. It does: if (VER_SUITE_WH_SERVER == (ovix.wSuiteMask VER_SUITE_WH_SERVER)) { WcaSetIntProperty(LWIX_SUITE_WH_SERVER, 1); } -- sig://boB http://joyofsetup.com/ -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
Well it seems like that should work... I didn't see that in the example you linked to?...hmmm. And now we have this, too: http://www.winsupersite.com/server/whs_vail_preview.asp WHS Based on Win2008R2. So the version info is changing. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-PropertyRef-WIX-SUITE-WH-SERVER-tp4958608p4980408.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
On 4/25/2010 6:41 PM, gapearce wrote: Thanks for the hint, Bob. I ran the installer and produced a log, but I don't see anything obviously wrong in there. (But I'm a noob). I ran this on a WH Server, using V3.0.5419 of WiX, and it prevents me from installing. Which release of WHS? I tested the code back when I added it, and I believe that was in the WHS RTM timeframe. The CA uses the same code recommended by the SDK, so I'm not sure why it would stop working...Can you try it out? http://msdn.microsoft.com/en-us/library/ms724451%28VS.85%29.aspx -- sig://boB http://joyofsetup.com/ -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
I'm running WHS v5.2 build 3790.srv03_sp2_gdr.100216-1301 : Service Pack 2. I think you need to check one more bit. The example you linked to previously doesn't check the suite name. I jammed the folowing code into a dll, and I call that, and it works correctly between 2003 and WHS. bool declspec (all that jazz for an external DLL header) IsWindowsHomeServer() { /* IsWindowsHomeServer Returns whether or not we're running on Windows Home Server. Determining that requires we check the suite name - this will distinguish it from Windows 2003, which has the same major and minor versions. */ bool bIsWindowsHomeServer = false; OSVERSIONINFOEX osvi; DWORDLONG dwlConditionMask = 0; // Initialize the OSVERSIONINFOEX structure. ZeroMemory(osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); osvi.dwMajorVersion = 5; osvi.dwMinorVersion = 2; osvi.wSuiteMask = VER_SUITE_WH_SERVER; // Initialize the condition mask. VER_SET_CONDITION( dwlConditionMask, VER_MAJORVERSION, VER_AND ); VER_SET_CONDITION( dwlConditionMask, VER_MINORVERSION, VER_AND ); VER_SET_CONDITION( dwlConditionMask, VER_SUITENAME, VER_AND ); // Perform the test. BOOL result = VerifyVersionInfo(osvi, VER_MAJORVERSION | VER_MINORVERSION | VER_SUITENAME, dwlConditionMask ); if (result) { bIsWindowsHomeServer = true; } else { DWORD error = GetLastError(); if (error == ERROR_OLD_WIN_VERSION) { // LOG_DEBUG(IsWindowsHomeServer - not running on Windows Home Server.\n); } else { // LOG_DEBUG(IsWindowsHomeServer - VerifyVersionInfo failed (error %ld).\n, error); } } return (bIsWindowsHomeServer); } Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-PropertyRef-WIX-SUITE-WH-SERVER-tp4958608p4965687.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
Check a verbose log for the WixQueryOsInfo custom action. On 4/22/2010 6:34 PM, gapearce wrote: Bump? -- sig://boB http://joyofsetup.com/ -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
Thanks for the hint, Bob. I ran the installer and produced a log, but I don't see anything obviously wrong in there. (But I'm a noob). I ran this on a WH Server, using V3.0.5419 of WiX, and it prevents me from installing. Maybe you could take a quick look? I'd appreciate it... I included this log file: http://n2.nabble.com/forum/FileDownload.jtp?type=nid=4960181name=logname.log logname.log Here's the relevant snip: MSI (c) (80:D4) [18:17:43:044]: Doing action: WixQueryOsInfo MSI (c) (80:D4) [18:17:43:044]: Note: 1: 2205 2: 3: ActionText Action 18:17:43: WixQueryOsInfo. Action start 18:17:43: WixQueryOsInfo. MSI (c) (80:1C) [18:17:43:059]: Invoking remote custom action. DLL: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\MSI13.tmp, Entrypoint: WixQueryOsInfo MSI (c) (80:6C) [18:17:43:075]: Cloaking enabled. MSI (c) (80:6C) [18:17:43:075]: Attempting to enable all disabled priveleges before calling Install on Server MSI (c) (80:6C) [18:17:43:075]: Connected to service for CA interface. Action ended 18:17:43: WixQueryOsInfo. Return value 1. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-PropertyRef-WIX-SUITE-WH-SERVER-tp4958608p4960181.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] PropertyRef WIX_SUITE_WH_SERVER
Bump? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/PropertyRef-WIX-SUITE-WH-SERVER-tp4933515p4947530.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users