Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Set Windows Installer Property" through Wise script

118 views
Skip to first unread message

Villy

unread,
Oct 8, 2004, 2:21:01 AM10/8/04
to
Hi,

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

Phil Wilson

unread,
Oct 8, 2004, 10:35:55 AM10/8/04
to
There are too many details about Wise-specific things here, so it might be
better to ask in a Wise forum. In general, the way to terminate an install
is a type 19 custom action conditioned on a property from a launch condition
or set by a custom action.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Villy" <vilass...@yahoo.co.in> wrote in message
news:ede74881.04100...@posting.google.com...

Villy

unread,
Oct 11, 2004, 3:09:24 AM10/11/04
to
Hi Phil,

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.

0 new messages