|
|
#1 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
Ok, here the idea. You can see the picture bellow. First 3 items are irrelevant. The Graphs item is the issue. It should extract graph files for the applications MyTheatre, ProgDVB and Skyview. So, when I select ProgDVB and BlazeVideo codec for example, when I click on the Install button bellow, I should be asked for the ProgDVB plugins folder so the installation can extract graph files there. If I choose both ProgDVB and MyTheatre for example, I should be asked for plugins folder for both the ProgDVB AND MyTheatre.
Just to mention, the first 3 items go to my $INSTDIR, i.e. C:\Program Files\My codec pack\. So this goes here, a for the graphs items I need to choose the location. How to do this?
|
|
|
|
|
|
#2 |
|
Major Dude
|
add a userpage with all needed directory requests, and enable/disable them depending on the selection.
you can do this in the SHOW function of the custom page. see modernui readme and installoptions readme for details about creating custom pages with modern ui. hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
OK, i'll try to make this right. Thanks m8!
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
OK, here's the thing. I don't know where to start with questions.
1. On the picture bellow you can see that when I select some random way installation folder (C:\1) it adds the Nabukodonosor's DVB pack on it. And i don't want that. Here is my part of the script for that thing: code: How to avoid this addon? 2.On the first picture, I want to install first 3 items in the exactly specified folder (C:\Program Files\Nabukodonosor's DVB Pack). But when I select the installation folder for my graph files (2nd picture), my first 3 item ALSO ectract in the selected folder. And I don't want that either. So, my scipt for that right now is like this: code: So, I assume I need to change that $INSTDIR into absolute address like C:\Program Files\Nabukodonosor's DVB Pack? Is that right? Is there any other way? 3. Can you explain me the enable/disable thing you've mentioned? I can't figure that out.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
Anyone?
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Add a backslash to InstallDir. Read about InstallDir in the documentation for more information.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
I've solved that. Thanks for the solution. I've also solved 2nd problem. What about the 3rd question?
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
One more thing. For example I know that $PROGRAMFILES is C:\Program files. But how to specify only C:\? I want to extract something in f.a. C:\folder1, but what if someone doesn't have C:\ but D:\ or even E:\??? I've solved a similar problem with C:\Program files\some folder with changing it to $PROGRAMFILES\some folder. How to do this with C:\some folder? WHats the equivalent for root folder?
|
|
|
|
|
|
#9 |
|
Major Dude
|
nothing.
use this one: Var /GLOBAL ROOT StrCpy $ROOT $PROGRAMFILES 0 3 $ROOT is now C:\ or D:\ or whatever ... btw: thanx that you take care of this case! most software companies don't. some even hardcode "C:\Program Files" and destroy e.g. german file structures ("C:\Programme" by default) with such behaviours. hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
Can you PLEASE explain to me how to do that thing in your first message? The thing with 3 directory selection. I'm stuck with that!
|
|
|
|
|
|
#11 |
|
Major Dude
|
!define MUI_PAGE_CUSTOMFUNCTION_PRE "function1"
!insertmacro MUI_PAGE_DIRECTORY !define MUI_PAGE_CUSTOMFUNCTION_PRE "function2" !insertmacro MUI_PAGE_DIRECTORY !define MUI_PAGE_CUSTOMFUNCTION_PRE "function3" !insertmacro MUI_PAGE_DIRECTORY
hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
OK, i'll try this. Thanks.
|
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
That didn't help me. I'm 5 days in all this, so a need more help. :-( I tried with this article:
http://nsis.sourceforge.net/Two_inst..._one_installer but it's for two installations and I need for 3. Also it has one section that's bad for my project: ## Also if no sections are selected, warn the user! I've tried to delete that section, but then I got error after error. Can someone please adapt this code for 3 installation and without this last thing? Or at least explain to me how to do it step by step. There's no other way for me. All the other work is over, only this thing to finish and it's all over. Please guys! |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
OK, i've pulled it off, with the script above, just modified it. BUT, there is a problem. It extracts the Skyview graphs (see the 1st picture) in all 3 folders. I've must mistaken somewhere in the loop. Here's the script (only relevant part):
code: I can't see the problem. It's all greek to me.
|
|
|
|
|
|
#15 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You should use the LogicLib for loops, it's simpler.
I don't see where it extract Skyview in that script. Attach the entire script or at least include the extraction code. Please attach large scripts next time. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#16 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
OK, here's the entire script.
|
|
|
|
|
|
#17 |
|
Junior Member
Join Date: Jan 2006
Posts: 16
|
Done it! yeah!!
I didn't include the deselect script for the third item: code: |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|