- NSIS Discussion
- [Problem] Embed Installer won't execute.
Archive: [Problem] Embed Installer won't execute.
thaman667
4th September 2012 13:27 UTC
[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.
T.Slappy
4th September 2012 14:14 UTC
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
>
thaman667
4th September 2012 14:32 UTC
Thanks but I just removed the complete directory $TEMP and added the output path to the current installation dir. And it is working.
Y.
MSG
4th September 2012 14:34 UTC
You should not extract the installer to $TEMP. You should use $PLUGINSDIR instead.
thaman667
5th September 2012 08:27 UTC
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?
MSG
5th September 2012 09:14 UTC
Simply store a versionnumber in registry upon installation, and check that.
thaman667
5th September 2012 09:42 UTC
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.
thaman667
5th September 2012 10:19 UTC
Here's the script:
http://pastebin.com/pxmA7UCb
Here's the regedit:
http://www.upload.ee/image/2654160/regedit_help.jpg
MSG
5th September 2012 12:05 UTC
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
thaman667
5th September 2012 12:47 UTC
Originally posted by MSG
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
Huh, I don't get what you mean?
MSG
5th September 2012 15:32 UTC
You can use it to find the installed versionnumber.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.5
thaman667
6th September 2012 10:27 UTC
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.