PC Review


Reply
Thread Tools Rate Thread

Property INSTALLDIR available at uninstall from Add/Remove programs?

 
 
Jorge
Guest
Posts: n/a
 
      26th Aug 2004
Hi,

I'm using Wise for Windows Installer so please bear with me! (i'm a
newbie as well!)

I'm at the point where my application installs and uninstalls pretty
well(thank God!). There's just one more thing I want to check:

I want to tell the user to shut down the program before attempting to
uninstall it. I created a WiseScript script that checks whether the
file is "In-Use" and sets a MSI property "fileInUse" to true if it is.
Problem is I'm unable to read the INSTALLDIR property from the
WiseScript. I inserted the following MSI script code at the "Execute
Immediate" sequence, right after the 1st line (Call DLL From
Installation Function Startup (WiseStartup):

If REMOVE ~= "ALL" Then
Set Property fileInUse to false
Run WiseScript from Installation: c:\test\fileInUse.exe
if fileInUse = "true" then
Cancel Installation Please shut down the appServer!!
End
End

When i try to Uninstall, the code is executed as expected, but I am
unable to read the INSTALLDIR property at this point! If I insert a
"display message" action, I see that INSTALLDIR is blank!

Where should I put the code in order to have access to the INSTALLDIR
property? or what should I do?

thanks!
 
Reply With Quote
 
 
 
 
Phil Wilson
Guest
Posts: n/a
 
      26th Aug 2004
Just running a program like that can't set a property value. How did that
fileInUse property get set? How exactly do you detect that the program is
running? There might be an easier way. Typically you just run a custom
action and don't need to know INSTALLDIR etc.
--
Phil Wilson
[MVP Windows Installer]
http://www.amazon.com/exec/obidos/tg...326859-8978461

"Jorge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm using Wise for Windows Installer so please bear with me! (i'm a
> newbie as well!)
>
> I'm at the point where my application installs and uninstalls pretty
> well(thank God!). There's just one more thing I want to check:
>
> I want to tell the user to shut down the program before attempting to
> uninstall it. I created a WiseScript script that checks whether the
> file is "In-Use" and sets a MSI property "fileInUse" to true if it is.
> Problem is I'm unable to read the INSTALLDIR property from the
> WiseScript. I inserted the following MSI script code at the "Execute
> Immediate" sequence, right after the 1st line (Call DLL From
> Installation Function Startup (WiseStartup):
>
> If REMOVE ~= "ALL" Then
> Set Property fileInUse to false
> Run WiseScript from Installation: c:\test\fileInUse.exe
> if fileInUse = "true" then
> Cancel Installation Please shut down the appServer!!
> End
> End
>
> When i try to Uninstall, the code is executed as expected, but I am
> unable to read the INSTALLDIR property at this point! If I insert a
> "display message" action, I see that INSTALLDIR is blank!
>
> Where should I put the code in order to have access to the INSTALLDIR
> property? or what should I do?
>
> thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 1606. Could not access network location INSTALLDIR =?Utf-8?B?U2hhcm9u?= Windows XP Security 0 20th Apr 2007 11:36 PM
Smart Device CAB Project: how to change InstallDir value? tomj@softhome.net Microsoft Dot NET Compact Framework 3 7th Mar 2007 07:24 AM
Need uninstall of one package to first uninstall another (nested uninstall?) Bob K Microsoft Windows 2000 MSI 0 14th Dec 2005 07:14 PM
The controls on this property sheet are disabled because one or more other Network property sheets are already open. To use these controls, close all these property sheets and then reopen this one. =?Utf-8?B?Um9iZXJ0?= Microsoft Windows 2000 Networking 1 11th Apr 2004 12:22 AM
Visual installdir ? Sebastien IDOUX Microsoft VB .NET 0 23rd Oct 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:38 PM.