I am using InstallShield installscript project.
My problem is I want to set a registry key when the cancel button is pressed in the "Preparing to install" dialog.
I have placed the below code in the OnCanceling() event. but it deletes the registry key.
RegDBSetDefaultRoot( HKEY_LOCAL_MACHINE );
szKey = "Software\\Test\\Uniinst";
szName = "Cancel" ;
szValue = "1";
RegDBSetKeyValueEx ( szKey, szName, REGDB_NUMBER , szValue, -1 );
Please let me know what I am doing wrong???