I am creating an installation package and user should be able to install it on a specific location only.
In order to do so I read some registry values in the [Code]
section to determine the installation path.
Having the installation path I need to force Inno Setup to set the installation folder to a specific location at run-time.
Is this possible in Inno Setup? Which section of script should be used if so?
Thanks.
DisableDirPage
directive to prevent an user from modifying it.[Setup]
DefaultDirName={code:GetDefaultDirName}
DisableDirPage=Yes
[Code]
function GetDefaultDirName(Param: string): string;
begin
Result := ...;
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With