Note that there are some explanatory texts on larger screens.

plurals
  1. POWIX - change dialog text label from background immediate custom action
    primarykey
    data
    text
    <p>I have defined custom action to scan lan network computers. This action is declared as immediate and triggered after user click dialog button:</p> <pre><code>&lt;CustomAction Id="actionGetNetworkComputers" BinaryKey="actionBinary" DllEntry="GetNetworkComputers" Execute="immediate" Return="check"/&gt; </code></pre> <p>Custiom action code:</p> <pre><code>public static ActionResult GetNetworkComputers(Session session) { ListNetworkComputers.NetworkBrowser nb = new ListNetworkComputers.NetworkBrowser(); Microsoft.Deployment.WindowsInstaller.View lView = session.Database.OpenView("DELETE FROM ComboBox WHERE ComboBox.Property='SERVER_LIST'"); lView.Execute(); lView = session.Database.OpenView("SELECT * FROM ComboBox"); lView.Execute(); int Index = 1; try { foreach (string s in nb.getNetworkComputers()) { Record lRecord = session.Database.CreateRecord(4); lRecord.SetString(1, "SERVER_LIST"); lRecord.SetInteger(2, Index); lRecord.SetString(3, s); lRecord.SetString(4, s); lView.Modify(ViewModifyMode.InsertTemporary, lRecord); ++Index; } } catch (Exception ex) { session.Log(ex.StackTrace); } lView.Close(); return ActionResult.Success; } </code></pre> <p>There are 2 main problems with this:</p> <p>Action is blocking, so installer window freezes until nb.getNetworkComputers reurns. If I declare action return as asyncWait, action is executed but retrieved values are not inserted to ComboBox. Also, I need some label indicating operation progress, for example: "Scanning network, please wait" and hide this label after scan ends.</p> <p>Is this possible with wix? Any tips?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload