Archive: Compiler


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.


Use a hidden section and unhide it in .onInit when the third party software is detected. See Sections.nsh.


Originally posted by MSG
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?

I don't understand your question. Do you want to embed the installer, or don't you?


Originally posted by MSG
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.

${If} ${FileExists} "$EXEDIR\VDFinstaller.exe"
;do stuff
${Else}
;do other stuff
${EndIf}


Originally posted by MSG
${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!