Jump to content


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.
Photo

Remove Key OnAbort


1 reply to this topic

phsg

phsg
  • Members
  • 4 posts

Posted 10 April 2002 - 20:43

Hello!!!    
   
My installation to alter the keys path and classpath with the function RegDBSetKeyValueEx. But in case I cancel the installation or remove the software, the key and removed.    
To solve the problem partially, first, before altering the key I create a backup and I alter the key. To uninstall my software I create other backup in the function OnMoving, later I alter the key in the function OnEnd.    
Until oh everything well, but for the case of they cancel the installation, I recover my first backup and in the function OnAbort I alter the key.    
My current problem and that in the end of the cancellation, already with the recuperated key, the key and excluded. I don't want her to be excluded.    
 
I wait for return the more abbreviation the possible! I am desperate!  
   
Thank you!    
Pedro Henrique

Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

Posted 11 April 2002 - 23:15

You need to Disable(LOGGING); before your special registry calls, and then Enable(LOGGING); after the calls to the registry functions.

InstallShield is undoing your work when the cancel/abort handler is removing changes made to the registry.