I’m using InstallShield 2009 and have to launch an executable when I click the ‘Finish’ button of the installation wizard.
So, to do this, I used custom action and it’s working fine, but now, I have to make a verification before call this custom action. I have to verify if the .Net framework is installed, if true, don’t execute if isn’t installed execute.
Can anybody help?
Please let me know if anything isn’t clear.
Thanks.
You should be able to bundle the .NET redistributable with the installer, and execute it via an invocation of
LaunchApporLaunchApplication.As a comment on someone else’s answer, you can use the
RegDBKeyExistfunction to read the registry and see if .NET is already installed.For the registry keys, you might want to set this option:
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;This makes the registry search use the Wow64 registry redirection on 64-bit machines. That might be an issue.
Also, I think the default registry root is HKEY_CURRENT_USER. If you want to change it to, say, HKEY_LOCAL_MACHINE, you can do so by calling:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);