I am using a Wise Script which detects the presence of application
running on destination pc and prompts user for take action. If user
says "NO" to terminate the application then my installer MSI should
abort its execution instead of continuing it. By clicking "Yes",
script should close the running application and continue its
execution.
I am using "Set Windows Installer Property" action in my wise script
to change the property value of MSI; "TERMINATE" from "0" to "1" after
user choses "No" in message box.
When I execute the MSI it first prompts whether I want to terminate
the application or not. When I chose "Yes"; script closes the running
application and continues its sequence. But when I chose "NO" and then
problem arise. It prompts me following message,
"The script action, Set Windows Installer Property, can only be used
in a script that is executed by Wise for Windows Installer"
I am using custom action(CA) "Execute Program from Installation". I am
placing this CA in "Normal User Interface" before "Launch Condition"
with "Immediate Execution". This CA executes my Wise Script
executable. I have also added "Terminate Installation" CA which
terminate installation by using property condition "TERMINATE = 1".
My basic aim is to abort the installation when user choses "NO" in
message box of executable. My MSI should come to know about the
termination of execution sequence. Can anybody shed some light to
solve my problem?
Thanks in advance.
Best regards,
Villy
"Villy" <vilass...@yahoo.co.in> wrote in message
news:ede74881.04100...@posting.google.com...
Thanks for your early response. I got the solution for this problem.
The message was poping up due to; I was trying to launch my Wise
Script through "Execute Program from Installation" custom action. It
was wrong a way of executing any Wise Script to get the full
functionality from it.
I was using "Set Windows Installer Property" action in my Wise Script
and only possible way to get this action running in any MSI to acheive
"Set Windows Installer Property" is run this Wise Script using "Run
Wise Script from Installation" custom action.
Thank you.
Best regards,
Villy.