This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- check if the product is installing or uninstalling?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 23, 2008
03:26 PM
check if the product is installing or uninstalling?
I'm working on a product that has the install section and uninstall section that both use the same dialog. The only problem is that this dialog needs to behave slightly differently depending on if its uninstalling or installing. Is there a method I can run to check which state the system is in?
I was looking at the methods
getUninstallerStatus()
uninstallerLauncherExists()
and the classes
ProductInstallContext
ProductUninstallContext
InstallCheck
But these are all uncommented or confusingly commented in the API. Can I use one of these and if so how? Or will I have to create another dialog altogether?
I was looking at the methods
getUninstallerStatus()
uninstallerLauncherExists()
and the classes
ProductInstallContext
ProductUninstallContext
InstallCheck
But these are all uncommented or confusingly commented in the API. Can I use one of these and if so how? Or will I have to create another dialog altogether?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 20, 2008
11:10 AM
It would be nice if the Dialogs had an onInstalling or onUninstalling as the InstallScript class does inthe Events view - but no.
I'm not sure of the InstallShield method but I can give you a cheap way of doing it. You can use the 'Set Variable' wizard action in the sequence prior to showing the dialog in both Installation/Uninstallation Sequence.
Something like INSTALLING = true/false then in the dialog you can:
String INSTALLING - arg0.resolveString("$V(INSTALLING)");
if (INSTALLING.equalsIgnoreCase("true") ) {
// Installing product
} else {
//Un installing product
}
Regards,
Tom
I'm not sure of the InstallShield method but I can give you a cheap way of doing it. You can use the 'Set Variable' wizard action in the sequence prior to showing the dialog in both Installation/Uninstallation Sequence.
Something like INSTALLING = true/false then in the dialog you can:
String INSTALLING - arg0.resolveString("$V(INSTALLING)");
if (INSTALLING.equalsIgnoreCase("true") ) {
// Installing product
} else {
//Un installing product
}
Regards,
Tom
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)