In Inno Setup it's very easy. For example, with this code, I can get a string from the Registry and put it in variable "DefaultDirName"
Code: Select all
DefaultDirName={reg:HKLM\SOFTWARE\MyCompany\MySpecialPath,MyAppDir|{pf}\MyAppName}Application folder = [HKLM\SOFTWARE\MyCompany\MySpecialPath] OR IF SpecialPath ISN'T EXIST = [[ProgramFilesFolder]\[ProductName]]
And also I need a error message with stop the installation, if another key in registry ins't exist.
Like this: IF [HKLM\ABC\RegistryValue]<>'123' SHOW Message "Sorry, Installation not possible! Please open www.moreinformations123.com for details!"
(How) is this possible with AI Professional?
FOLLOW US
Get the latest news in Application Packaging