Hi,
I want to write "Message: This version is already installed on your computer!" in log file, but I don't want to display a popup window to user in silent install. How to do this?
Please keep in mind that when the return value of the installation process is 0 (e.g. "MainEngineThread is returning 0") this means the installation succeeded. I've tested your installation scenario and it seems this behavior is caused by a limitation of our "Execute inline script code" predefined custom action type. The above custom action type will not return an error even when a VBS function is returning an error code, thus the installation will move on and finish successfully.In silent install, you have given following code, which is working fine. But when I checked in verbose log it showing "MainEngineThread is returning 0 (error code 0)"
Code: Select all
Function MyVBScriptCA()
MsgBox "This version is already installed on your computer!"
'return error
MyVBScriptCA = 3
Exit Function
End FunctionPlease keep in mind that the above error code (1638) is returned by the installation process only when you are trying to install a setup package having the same ProductVersion and ProductCode as an already installed setup, but a different PackageCode. For example, this may happen if you are building an installation package, install it, then open the project and alter the installation settings (e.g. add a new file) without changing the ProductVersion, rebuild it and try to install the new rebuilt setup again. Please take a look on our "Why do I receive the "Another version of this product is already installed" message?" faq which debates this error.but according to msi Standard error codes (if same version is found ) error code is "1638". Why this is happening ?
FOLLOW US
Get the latest news in Application Packaging