|
|
#1 |
|
Junior Member
Join Date: Mar 2010
Posts: 2
|
Can this be done with NSIS?
Okay, only have a simple job for NSIS, can it be done with it?
I want a single CAB file, to be installed to a directory if it's running under XP, and into another if it's Vista/7. No, I don't want the CAB file to be unzipped, just to be put into a specific directory. If somebody could lend me a hand with that, or provide a link, I would be grateful ![]() Thanks in advance. |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Very easy. Look at winver.nsh (together with logiclib.nsh):
${If} ${IsNT} ${AndIf} ${IsAtMostWinXP} etc ${ElseIf} ${IsAtLeastWinVista} etc2 ${EndIf} or something similar. Edit: If you want to learn using NSIS, start with NSIS\Examples\Example1.nsi and example2.nsi, and use the command reference to find out what commands do: http://nsis.sourceforge.net/Docs/Chapter4.html |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2010
Posts: 2
|
Thank you, I'll try to figure it out with that in mind
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Use SetOutPath inside that if/elseif.
Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|