Archive: Dynamically set install page path


Dynamically set install page path
I'm updating an installer for a Paint.NET plugin that needs to be installed in the program's Program Files subdirectory. The installer currently reads this from the registry.

However, many users report that the installer tells them they don't have PDN installed, so presumably they don't have the key for some reason. Additionally, many users have multiple installations of the program. I've tried setting the install directory variable but this seems to be set at compile-time. Is it possible to prompt for an install path with a default that can be set dynamically?

Thanks in advance. ;)


I'm not 100% sure if I understand your question right
But you should try the command "InstallDir"
It sets the default Installation directory
or you can copy manually the path you want to the $INSTDIR


I'd like to have the installer prompt the user for a path but set a default from a registry key rather than a pre-defined path.

It seems InstallDir can't be set at runtime.


InstallDirRegKey. Also as thek has said, to set a different install directory at run time, just change the value of $INSTDIR before the directory page.

Stu


Thanks