PDA

View Full Version : Problem in Uninstallation



naveen15nov
04-10-2009, 02:09 AM
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 :o . 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

vishnupv
04-10-2009, 07:09 AM
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.

palanisamy
05-04-2010, 07:51 AM
According to vishnu point of view is incorrect.

For DeleteKeyActions custom action set condition as REMOVE=ALL