Skip to content
⌘ NSIS Forum Archive

set the default installation directory

3 posts

hoangpv#

set the default installation directory

Hi all,

I am using nsis to create installer for Adobe acrobat plugin. It works fine.
In the script. I set the default installation directory: InstallDir "$PROGRAMFILES\Adobe\Acrobat 11.0\Acrobat\plug_ins\"
users can install without the need to select the installation directory.
but for different acrobat versions, they have different installation directory.
InstallDir "$PROGRAMFILES\Adobe\Acrobat version\Acrobat\plug_ins\"
how can i create a InstallDir to all acrobat versions.

thanks in advance.
Anders#
Look in the registry with InstallDirRegKey or search with FindFirstFile and set $Instdir in .onInit
hoangpv#
Hi Anders,

thanks your reply!

I have used the set $Instdir in .onInit. It works fine.
reference link:

thanks