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
- :
- Re: Issue with ROLLBACK during abort
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
‎Feb 23, 2010
11:28 PM
Issue with ROLLBACK during abort
Hi,
I have an issue with ROLLBACK action on my installscript project.
During the installation flow after moving the data i need to make few registry changes to update a key. If this key doesn't exist i call abort.
I have used the keyword "abort" in the installscript.
Before calling "abort" an entry is made in Add/Remove panel. During "abort" action there is no ROLLBACK happening and the entry retains in Add/Remove panel and the folders/files aren't removed.
Found that OnAbort() handler exists in IS2010.
1. Can this be made use of to be called during invoking "abort" command?
2. How to call the ROLLBACK action to remove the folders/files and the entry from Add/Remove panel.
Would like to know if there are any other ways to handle the ROLLBACK action.
Thanks in advance.
Rohit
I have an issue with ROLLBACK action on my installscript project.
During the installation flow after moving the data i need to make few registry changes to update a key. If this key doesn't exist i call abort.
I have used the keyword "abort" in the installscript.
Before calling "abort" an entry is made in Add/Remove panel. During "abort" action there is no ROLLBACK happening and the entry retains in Add/Remove panel and the folders/files aren't removed.
Found that OnAbort() handler exists in IS2010.
1. Can this be made use of to be called during invoking "abort" command?
2. How to call the ROLLBACK action to remove the folders/files and the entry from Add/Remove panel.
Would like to know if there are any other ways to handle the ROLLBACK action.
Thanks in advance.
Rohit
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2010
01:21 AM
Installscript project will not have any ROLLBACK action. You need to manually delete all the changes done by the installer.
ROLLBACK feature is available with InstallScriptMSI and Basic MSI project type.
To avail this feature either change your project type.
ROLLBACK feature is available with InstallScriptMSI and Basic MSI project type.
To avail this feature either change your project type.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2010
01:56 PM
mrohit wrote:
Hi,
I have an issue with ROLLBACK action on my installscript project.
During the installation flow after moving the data i need to make few registry changes to update a key. If this key doesn't exist i call abort.
I have used the keyword "abort" in the installscript.
Before calling "abort" an entry is made in Add/Remove panel. During "abort" action there is no ROLLBACK happening and the entry retains in Add/Remove panel and the folders/files aren't removed.
Found that OnAbort() handler exists in IS2010.
1. Can this be made use of to be called during invoking "abort" command?
2. How to call the ROLLBACK action to remove the folders/files and the entry from Add/Remove panel.
Would like to know if there are any other ways to handle the ROLLBACK action.
Thanks in advance.
Rohit
If your worry/concern is only limited to Add/Remove entry cleanup then you could override OnAbort() event and add code to remove your GUID from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
HTH