I have problem with finding the version, by using below code i write IS custom action while running this code in first sprintfbox i got one negative value, reason i got in net for negative is
"< ISERR_SUCCESS The function failed to retrieve the installed version information; the registry key or value does not exist or the data is not a packed DWORD."
but Actual scenario of registry i send as attachment.
This is the code what i was used
nResult11=VerProductGetInstalledVersion ( svVersionInstalled );
if (nResult11 >= ISERR_SUCCESS) then
SprintfBox ( INFORMATION,"IF","%ld",nResult11);
elseif (nResult11 < ISERR_SUCCESS) then
SprintfBox ( INFORMATION,"ELSEIFld","%ld",svVersionInstalled);
SprintfBox ( INFORMATION,"ELSEIFs","%s",svVersionInstalled);
SprintfBox ( INFORMATION,"ELSE","%ld",nResult11);
Please send the proper suggestion for finding the product version of application, i know how to get from file , but i want from reg entry, please help me i am in little bit urgency...........Thanks for your great suggestions.
Edited by kirankumar, 02 April 2008 - 13:24.