Hi,
This can be done by scheduling a
Error Message Custom Action under "InstallUISequence -> AppSearch" and set the "Message Text" to something like this:
The "Execution Condition" should look like this:
Keeping the SHIFT key pressed, drag-and-drop the custom action in tree control, under "InstallExecuteSequence -> AppSearch". This will create a copy of the action in the InstallExecuteSequence. Please make sure that the "Execution Condition" is the same as in the first Custom Action.
In order to prevent user modifications from Control Panel you can check the "Disable Modify" and "Disable Repair" options from the
Product Details page. Please note that if you run the package with BasicUI the message will not be displayed.
However, to view the message even with BasicUI you can replace the
Error Message Custom Action with a VB Script
File attached to installation Custom Action scheduled under "InstallUISequence -> AppSearch". The VB Script you may use can look like this:
Code: Select all
Function Test()
MsgBox("Product already installed!")
Test=1602
End Function
The "Function Name" must be set to
and the "Execution Condition" should be the same as above.
Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/