Hi,
You should use "WScript" instead of "CScript", because the former generates windowed output, while the latter sends its output to a command window. Additionally, you must use a "Property Source" Custom Action instead of "Launch File or Open URL".
These are the steps you should follow:
1. In the Search page, use the New File Search toolbar button and name this search WSCRIPT. In the Name field enter "wscript.exe" (without quotes).
2. Right click the WSCRIPT item and select "Add Location -> Folder". In the Path field enter [SystemFolder] and in the Depth field enter 0. This will cause the WSCRIPT property to be set to the full path of "wscript.exe".
3. In the Custom Actions page right click the Install item and select "New Custom Action -> Property Source". Enter WSCRIPT in the Property Name field and set the Source Type to "Executable".
4. In the Command Line field enter:
Code: Select all
"[#setProperties.vbs]" /Server:[SERVER_ADDRESS] /AgentPort:[AGENT_PORT] /NotifyPort:[NOTIFY_PORT] /FetchPort:[FETCH_PORT] /PollingInterval:[POLLING_INTERVAL] /PollingOnly:[POLLING_ONLY]
The quotes are necessary because the path may contain spaces (such as "Program Files"). Also, use "#" instead of "!" to add a reference to a file included in the package.
5. Set "Deferred" as the Execution Option.
6. If necessary, set the Execution Condition to an appropriate value. For example you may want this Custom Action not to execute on Uninstall.
Hope this helps.
Regards,
Denis