Flexera Software Community  

Go Back   Flexera Software Community > Products > InstallShield SDM
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-10-2009, 03:09 AM
naveen15nov naveen15nov is offline
New User (0 Posts)
 
Join Date: Apr 2009
Posts: 2
Question Problem in Uninstallation

Hi Guys
I am new to install shield, i just started working on it.
I was trying to learn it by my own, but facing some difficulty in uninstalling the product.
I want to make a simple project which only make keys and Value Name in the registry and when i remove that, it will automatically delete the Value Name not the Key. But i am unable to do that . Now i will explain more about the project ->
I made a Basic MSI Project ( i am not sure whether it is right choice or not).
In InstallScript i made 2 functions -> RegisterKeys and DeleteKeys
I made 2 Custom Actions -> RegisterKeysAction and DeleteKeyActions
i set the Install Exec Sequence of RegisterKeysAction to "After Installvalidate"
and of DeleteKeyActions to "After RemoveRegistryValues".
But when ever i am installing or uninstalling that, both my functions are running first DeleteKeyActions and then RegisterKeysAction. I want to run deleteKeyActions only when uninstallation.

Please help me in to resolve that issue.

Regards
Naveen
Reply With Quote
  #2  
Old 04-10-2009, 08:09 AM
vishnupv vishnupv is offline
New User (0 Posts)
 
Join Date: Apr 2009
Posts: 2
To control your functions, you have to code them in installscript events.
These events are not available in a "Basic MSI" project. You should either choose Installscript or Installscript MSI project before you start working.

There you can invoke these functions on particular uninstall event(OnUninstall()).

Regards,
Vishnu.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2009 Flexera Software Inc. All rights reserved.