Simon Brown
3rd June 2009 20:32 UTC
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. ;)
thek
4th June 2009 09:34 UTC
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
Simon Brown
4th June 2009 19:51 UTC
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.
Afrow UK
4th June 2009 19:53 UTC
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
Simon Brown
4th June 2009 20:18 UTC
Thanks