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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: uninstall action deletes new installer?
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
‎Jul 17, 2010
08:15 AM
uninstall action deletes new installer?
Hi,
I have the requirement, that the installer will automatically uninstall a previous version of the application.
One prerequisite is, that the install location is fixed and the user cannot change it.
I therefore added an uninstall action to the pre-installation steps, which executes the uninstaller at "$USER_INSTALL_DIR$$/$Uninstall".
In the install step I add an Uninstaller at the same location "$USER_INSTALL_DIR$$/$Uninstall".
When I now run the installer the first time, everything runs fine, and the Uninstall is created at "$USER_INSTALL_DIR$$/$Uninstall". So far so good.
No I am running a second installation. My expectation now is, that the Installer starts, the uninstaller is executed (because of the 'execute Uninstaller action' and then the installation progress goes on and runs through.
What is happening is the following:
1.) Installer starts
2.) uninstaller is triggered and succeds (but NO file are uninstalled --> OK, solved this. The folders are speefolders, so I need to set the flag 'delete recursively')
3.) Uninstall director is deleted (that is OK)
4.) installer proceeds and installs the new files
5.) uninstaller directory and files are created
6.) suddenly the uninstaller directory get's deleted (--> bang, and here are my problems)
So, the data which is installed in the second run is OK, but for some reason, by adding the 'execute uninstaller action' will delete the newly create uninstall folder and it will also not delete the existing data (solved by setting the flag 'delete recursively')
Any idea what I am doing wrong?
Any other reliable possibilites to uninstall the product when a new product is installed.
btw, we have no complex set of features or components. We have only the two standard components common and InstallAnywhere VM componente and ONE feature.
Any help appreciated
Froed
I have the requirement, that the installer will automatically uninstall a previous version of the application.
One prerequisite is, that the install location is fixed and the user cannot change it.
I therefore added an uninstall action to the pre-installation steps, which executes the uninstaller at "$USER_INSTALL_DIR$$/$Uninstall".
In the install step I add an Uninstaller at the same location "$USER_INSTALL_DIR$$/$Uninstall".
When I now run the installer the first time, everything runs fine, and the Uninstall is created at "$USER_INSTALL_DIR$$/$Uninstall". So far so good.
No I am running a second installation. My expectation now is, that the Installer starts, the uninstaller is executed (because of the 'execute Uninstaller action' and then the installation progress goes on and runs through.
What is happening is the following:
1.) Installer starts
2.) uninstaller is triggered and succeds (but NO file are uninstalled --> OK, solved this. The folders are speefolders, so I need to set the flag 'delete recursively')
3.) Uninstall director is deleted (that is OK)
4.) installer proceeds and installs the new files
5.) uninstaller directory and files are created
6.) suddenly the uninstaller directory get's deleted (--> bang, and here are my problems)
So, the data which is installed in the second run is OK, but for some reason, by adding the 'execute uninstaller action' will delete the newly create uninstall folder and it will also not delete the existing data (solved by setting the flag 'delete recursively')
Any idea what I am doing wrong?
Any other reliable possibilites to uninstall the product when a new product is installed.
btw, we have no complex set of features or components. We have only the two standard components common and InstallAnywhere VM componente and ONE feature.
Any help appreciated
Froed
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2010
04:15 PM
Instead of adding an Uninstaller action, I would use an Execute command in order to execute the respective Uninstaller.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2010
02:52 AM
Tried this too, but same result
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2010
04:01 AM
Try moving the Execute Action in the Pre-Install task.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2010
04:03 PM
it is already in the Pre-Installation task. but it does not solve the issue.
It looks for me, that there is somehow a 'filewatcher' or something else in the 'queue' which deletes the uninstall directory until the complete installer is finished. MEaning, the uninstaller (sub) process is not really finished until the complete installer is finished
It looks for me, that there is somehow a 'filewatcher' or something else in the 'queue' which deletes the uninstall directory until the complete installer is finished. MEaning, the uninstaller (sub) process is not really finished until the complete installer is finished
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2010
04:02 AM
Hallo,
my needs are exactly the same, to uninstall the existing product before its installation could begin. At the moment, discovering that the product and upgrade code are same, it pops up a dialog for upgrading the existing product. But that's not what i want 😞 it should uninstall here.
could you point me right direction please
thanks.
my needs are exactly the same, to uninstall the existing product before its installation could begin. At the moment, discovering that the product and upgrade code are same, it pops up a dialog for upgrading the existing product. But that's not what i want 😞 it should uninstall here.
could you point me right direction please
thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2010
05:20 AM
I have the same problem and it's critical for me 😞 May be someone already have found a solution to fix it?