win,msi: broadcast WM_SETTINGCHANGE after install
authorMathias Küsel <mathiask@hotmail.de>
Tue, 27 Jan 2015 15:01:23 +0000 (16:01 +0100)
committerBert Belder <bertbelder@gmail.com>
Tue, 27 Jan 2015 15:18:26 +0000 (16:18 +0100)
commit668bde8ac0d16382cbc98c904d8b5f55fd9fd9f0
tree98a1d2c18349ea8f49a30367cd1b901528c30ef2
parent69ce0641dc6a84c90ffdd0906790cd945f1c3629
win,msi: broadcast WM_SETTINGCHANGE after install

In theory the msi should broadcast a 'WM_SETTINGCHANGE' message to all
windows after modifying the PATH environment variable. This ensures that
the new PATH is visible to other processes without restarting windows
(although it's still necessary to close and reopen active console
windows).

Unfortunately, the broadcast doesn't always happen, for unknown reasons.
That's why this patch adds a custom action that unconditionally
broadcasts a WM_SETTINGCHANGE message.

Bug: https://github.com/iojs/io.js/issues/603
PR: https://github.com/iojs/io.js/pull/613
Reviewed-by: Bert Belder <bertbelder@gmail.com>
.gitignore
tools/msvs/msi/custom_actions.c [new file with mode: 0644]
tools/msvs/msi/custom_actions.def [new file with mode: 0644]
tools/msvs/msi/custom_actions.vcxproj [new file with mode: 0644]
tools/msvs/msi/nodemsi.sln
tools/msvs/msi/nodemsi.wixproj
tools/msvs/msi/product.wxs