Old 23rd February 2017, 07:42   #1
hoangpv
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.
hoangpv is offline   Reply With Quote
Old 23rd February 2017, 10:34   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,481
Look in the registry with InstallDirRegKey or search with FindFirstFile and set $Instdir in .onInit

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th February 2017, 07:33   #3
hoangpv
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
hoangpv is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump