|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Feb 2017
Posts: 2
|
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. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,698
|
Look in the registry with InstallDirRegKey or search with FindFirstFile and set $Instdir in .onInit
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2017
Posts: 2
|
Hi Anders,
thanks your reply! I have used the set $Instdir in .onInit. It works fine. reference link: thanks |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|