Any use ? community.flexerasoftware.com/archive/index.php?t-143660.html -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 09 January 2013 14:53 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Update progress bar from custom actions
Hi I am trying to update the progress bar from my custom action, this is what I have so far and I am so confused looking online about what is happeneing. extern "C" UINT __stdcall InstallDrivers(MSIHANDLE hInstall) { AssertSz(FALSE, "debug here"); HRESULT hr = S_OK; UINT er = ERROR_SUCCESS; LPWSTR szValueBuf = NULL; char CustomActionData[MAX_PATH]; const UINT iTickIncrement = 10000; const UINT iNumberItems = 10; const UINT iTotalTicks = iTickIncrement * iNumberItems; PMSIHANDLE hActionRec = MsiCreateRecord(10); PMSIHANDLE hProgressRec = MsiCreateRecord(3); hr = WcaInitialize(hInstall, "InstallDrivers"); ExitOnFailure(hr, "Failed to initialize"); WcaLog(LOGMSG_STANDARD, "Initialized."); hr = WcaGetProperty(L"CustomActionData",&szValueBuf); ExitOnFailure(hr, "failed to get CustomActionData"); wcstombs(CustomActionData, szValueBuf, 260); char *token = std::strtok(CustomActionData, ","); while (token != NULL) { if (strcmp(token, "Driver1") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Alpha Driver")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver2") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Modbus Master Driver")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver3") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Modbus Slave Driver")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver4") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Wits Input Driver")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver5") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Wits Output Driver")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver6") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Witsml Driver")); token = strtok (NULL, ","); } else if (strcmp(token, "Supplementary") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing EdgeX Supplementary")); token = strtok (NULL, ","); } else if (strcmp(token, " Driver7") ==0) { MsiRecordSetString(hActionRec, 1, TEXT("Installing Datascan 7000")); token = strtok (NULL, ","); } else { MsiRecordSetString(hActionRec, 1, TEXT("")); token = strtok (NULL, ","); } WcaProcessMessage(INSTALLMESSAGE_ACTIONSTART, hActionRec); Anyone help me with how I get it actually showing? Please ----------------------------------------------------------------------------- - Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users