Hello Deepak,
Honestly, in this case, I believe it should be better if you followed the solution I've given in the thread linked above.
Here are the steps:
- add a messagebox custom action, without sequence (so we can schedule it from a dialog control)

- MsgBox.png (89.76 KiB) Viewed 5778 times
- in
"Dialogs" page, on
"FolderDlg" dialog, add the custom action as an event under the
"Published Events"

- ExecuteAction.png (84.94 KiB) Viewed 5778 times
Basically, the logic is as it follows:
- if path contains spaces ==> spawn the messagebox
- go to the next dialog only if the "OK" button was not pressed (the property associated with it is empty)
- set the property to empty
Let's consider your path is as it follows:
The setup will see it contains space and it will spawn the messagebox. When the OK button is pressed, the BTN_PRESSED property is set. Since this property is not empty, it will not proceed to the next dialog. Then the property is set to empty.
When the user presses "Next" once again after removing the space characters from the path, the setup will check and see that APPDIR does not contain any more space characters and, since the BTN_PRESSED was set to empty manually by us, it will proceed to the next dialog.
Hope this helps!
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging