Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th September 2012, 09:56   #1
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Compiler

Hi,

I wan't to able to make the installer so that if It can't find the embedded installer you won't be able to select this from the components page. To do this I think the file must not be compiled but just put in the same folder as the compiled/extracted Setup.exe
Is this even possible?

P.S. Google doesn't give me anything regarding this subject.

Y.
thaman667 is offline   Reply With Quote
Old 6th September 2012, 10:50   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
Use a hidden section and unhide it in .onInit when the third party software is detected. See Sections.nsh.
MSG is offline   Reply With Quote
Old 6th September 2012, 11:03   #3
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
Originally Posted by MSG View Post
Use a hidden section and unhide it in .onInit when the third party software is detected. See Sections.nsh.
And how do I leave the installer out of the compiler?
thaman667 is offline   Reply With Quote
Old 6th September 2012, 15:43   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
I don't understand your question. Do you want to embed the installer, or don't you?
MSG is offline   Reply With Quote
Old 7th September 2012, 07:22   #5
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
Originally Posted by MSG View Post
I don't understand your question. Do you want to embed the installer, or don't you?
Basically what the "client" (not a real client just an internship project) asked is that he wants the compiled setup.exe called TimeTrack2 and the installer of the needed program called VDF seperatly in one folder. So that when the setup.exe asks for the VDF installer it first checks wheiter it's in the same folder.
thaman667 is offline   Reply With Quote
Old 7th September 2012, 08:50   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
${If} ${FileExists} "$EXEDIR\VDFinstaller.exe"
;do stuff
${Else}
;do other stuff
${EndIf}
MSG is offline   Reply With Quote
Old 7th September 2012, 09:16   #7
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
Originally Posted by MSG View Post
${If} ${FileExists} "$EXEDIR\VDFinstaller.exe"
;do stuff
${Else}
;do other stuff
${EndIf}
But the compiler still puts the Embed installer (VDFInstaller) in the Setup.exe

Edit: Okey I figured it out, let's try to get it to work

Thanks once again!
thaman667 is offline   Reply With Quote
Reply
Go Back   Winamp 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