Does anyone know how to make InstallAware do a rollback of a database when the user clicks 'Cancel'? Unlike InstallShield I'm not seeing any way to specify when individual scripts run.
Related Questions in INSTALLATION
- Bundle Multiple Xamarin apps in one pkg installer
- install a R package from directory
- Can I automate auto-app installation on my Android device?
- Stop the installshield installation if a file is not found in vb.net
- GVM: Issue when installing GVM in Ubuntu 14.04
- Not able to format namenode in hadoop-2.6.0 multi node installation
- How to install SFML in ubuntu?
- how to install packages from pypi to anaconda?
- What is PREFIX IN make PREFIX=$HOME/usr/local/OpenBLAS?
- WiX installer - change the install path
Related Questions in INSTALLATION-PACKAGE
- Adding to an installation project in visual studio installation of WinPcap
- igraph install error. select.error 10038.
- Python line_profiler not finding module
- Deploy SSIS Package with SQL Server Authentication
- Trouble finding an installed version of PyAutoGui
- Getting Error message while installng seaborn using pip
- npm install -g karma does not install executable
- how do get lxml installed successfully on OSx?
- Aptana 3 Standalone zip file
- Unable to install tidyr in R version 3.1.1
Related Questions in INSTALLAWARE
- InstallAware, Add a big SQL script problem
- Is there a way to automatically update the readme in installaware 9?
- InstallAware 9: How can I put selected files into a folder without others being put in automatically?
- I have to open windows fonts folder after install my application by installaware
- Use an installer to add .NET User Control to Visual Studio Toolbox
- InstallAware problem with Delphi 2010
- Building Installation Disk for My Delphi 2010 Application
- delphi setup - error cannot start setup corrupt or password protected
- Inconsistent MSI behavior
- Delphi and InstallAware - Changing Root Folder when using Shortcut
Related Questions in DATABASE-INSTALLATION
- DB Installation Issue: Binary files folder (bin) is missing in downloaded zip for MongoDB (Windows 64-bit)
- MongoDB one server problems/pittfalls
- Oracle 11g configuration with Enterprise manager on windows 2008 standard R2
- DB2 Client Installation Error
- Oracle - Instant Client
- Installing Oracle 11g 64 bit on Rhel 6
- Pics included to make my Q more clear.How to write correct command line arguments for installing SQL Server 2008 R2?
- Can I install Oracle XE or any free version on Ubuntu 18.04?
- mongod command for using mongodb-community version in Macos Mojave gives error
- InstallAware database rollback
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I don't think InstallAware would be able to rollback a database transaction. I didn't see any intrinsic support for SQL Server rollbacks in their MS SQL Server command. You would need to code your own rollback script, if that is possible.
There is usually a section in the MSICode that has an IF block if the user cancels the installation during the initial dialogs. It looks something like this
This occurs before the Windows Installer engine actually performs the installation. If you have not executed your database scripts, then no action is required. If you have applied database scripts before this point, you will need to supply a rollback script (if possible) and execute it in that block, but before Terminate Installation.
If you cancel the installation while install, you'll have another shot of rolling back your changes. When the user presses the cancel button while the installation process is running (i.e. after the user has made any selections), the InstallAware variable SUCCESS will be set to CANCEL. You can check for that condition and execute your rollback script. There is usually a block of code that does various things based on the value of SUCCESS, you can add your code there.
You could always make your SQL script the last command executed by InstallAware as part of the installation. That would eliminate the need to handle the cancellation.