Old 12th July 2007, 07:16   #1
IgorM
Junior Member
 
Join Date: Jul 2007
Posts: 5
Getting previous installtion directory

Hello

How can I get previous installtion directory without using InstallDirRegKey option?

My suggestions are:
1) Create install.ini in first installation
2) Second installation
3) If file install.ini exists read it and get the string
1 - 3 have write !macro

4) Push install string to “Destination”

4 - How can I implement it? (Where I should insert my macro?)

Thanks,
Igor
IgorM is offline   Reply With Quote
Old 12th July 2007, 11:22   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
In .onInit will do.
Just ReadINIStr $INSTDIR ...

Stu
Afrow UK is offline   Reply With Quote
Old 12th July 2007, 14:00   #3
IgorM
Junior Member
 
Join Date: Jul 2007
Posts: 5
Thanks a lot. But I already found this suggestion by myself.
IgorM 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