is there a way in the burn.sln to detect if it is an upgrade or not? sample code I am using: // ** Is Bootstrapper EXE running? PROCESSENTRY32 entry; entry.dwSize = sizeof(PROCESSENTRY32); hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL); int iCount = 0;
// need to get the filename from the full path hr = StrAllocString(&sczFileNameVariable, PathFile(sczFilePathVariable), 0); if (Process32First(hSnapShot, &entry)) { while (Process32Next(hSnapShot, &entry)) { if (wcscmp(entry.szExeFile, sczFileNameVariable) == 0) { iCount++; } } } if (iCount > 2) { BootstrapperInstance = TRUE; sczVerifyBootstrapperInstanceRunningVariableSet = L"1"; BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "VerifyIfAnotherMSIRunning: Found multiple Bootstrapper EXE's: %ls running, can't have multiple EXE's running", (LPCWSTR)sczFileNameVariable); } thanks, Steve -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/burn-and-upgrades-tp7599417p7599423.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users