Skip to content
⌘ NSIS Forum Archive

[Problem] Embed Installer won't execute.

12 posts

thaman667#

[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.



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

Y.
T.Slappy#
Try:

Section "VDF" SECVDF
  SetOutPath "$TEMP\" ; <<<<<< This was missing
  File "VDF2012-17.0.22.8.Client.exe"
  DetailPrint "Starting the JRE installation"
  ExecWait "$TEMP\VDF2012-17.0.22.8.Client.exe"
SectionEnd 
thaman667#
Thanks but I just removed the complete directory $TEMP and added the output path to the current installation dir. And it is working.

Y.
thaman667#
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?
thaman667#
Originally Posted by MSG View Post
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.
thaman667#
Originally Posted by MSG View Post
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
Huh, I don't get what you mean?
MSG#
You can use it to find the installed versionnumber.

thaman667#
Originally Posted by MSG View Post
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.