I have created an installscript project using InstallShield 2010. I gather info during the install process in the method "OnFirstUIBefore()". But when the actual install of the software is happening (i.e. when you see a progress bar and it is copying over installation files) I would like to do some actions based on the user input.
My 2 questions are:
1 - How do I hook into that actual part of the install process?
2 - If any issues arise, how would I then undo what I have done? Can I store somewhere what custom things I have done?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
How to hook into the install
Started by
pauldavidson
, Nov 29 2012 18:15
4 replies to this topic
Posted 30 November 2012 - 15:51
Well you don't typically hook into the actual installation portion like that.
Instead, you would add your custom actions to the OnFirstUIAfter() event, so you already know that the files themselves have installed successfully.
Instead, you would add your custom actions to the OnFirstUIAfter() event, so you already know that the files themselves have installed successfully.
Posted 30 November 2012 - 16:30
Ah ok, thanks.
So, in my custom action how would I throw an error that will do any rollback? So that all the files are removed, and the install is cancelled?
So, in my custom action how would I throw an error that will do any rollback? So that all the files are removed, and the install is cancelled?
Posted 01 December 2012 - 14:43
There are no custom actions and no rollback in InstallScript projects, these are MSI functioniality.
You can use Feature event handlers (see help topic for details) which get called before or after a specified feature is installed.
You can use Feature event handlers (see help topic for details) which get called before or after a specified feature is installed.
Stefan Krüger
InstallSite.org twitter facebook