Archive: [Problem] Embed Installer won't execute.


[Problem] Embed Installer won't execute.
  Hello,

I am having problems with making an installer that will install a certain application and for that application an another application is needed. It should execute either after finishing the installation or before that doens't really matter.

Here is the code.

http://pastebin.com/uUJUeYn4

I used google to try and find it out myself but it doesn't work.

Y.


Try:


Section "VDF" SECVDF

SetOutPath "$TEMP\" ; <<<<<< This was missing
File "
VDF2012-17.0.22.8.Client.exe"

DetailPrint "Starting the JRE installation"
ExecWait "$TEMPVDF2012-17.0.22.8.Client.exe"
SectionEnd
>

Thanks but I just removed the complete directory $TEMP and added the output path to the current installation dir. And it is working.

Y.


You should not extract the installer to $TEMP. You should use $PLUGINSDIR instead.


Stumbled upon to an another problem, is it possible to let NSIS check the version or check whether if this program is already installed for embedded installers?


Simply store a versionnumber in registry upon installation, and check that.


Originally posted by MSG
Simply store a versionnumber in registry upon installation, and check that.
No no, it should check whether a different program is already installed. I came across a few examples and those all worked with Java and dotnet but not with this "custom" program.

Here's the script:
http://pastebin.com/pxmA7UCb

Here's the regedit:
http://www.upload.ee/image/2654160/regedit_help.jpg


Use EnumRegKey on the Software/Date etc/Visual DataFlex key.


Originally posted by MSG
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
Huh, I don't get what you mean?

You can use it to find the installed versionnumber.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.5


Originally posted by MSG
You can use it to find the installed versionnumber.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.5
Problem solved thanks, can be closed.