Old 4th September 2012, 12:27   #1
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
[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.
thaman667 is offline   Reply With Quote
Old 4th September 2012, 13:14   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 531
Send a message via ICQ to T.Slappy
Try:

PHP Code:
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 

Cool looking installer with custom design: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned.sk
Develop NSIS projects in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 4th September 2012, 13:32   #3
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
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 is offline   Reply With Quote
Old 4th September 2012, 13:34   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
You should not extract the installer to $TEMP. You should use $PLUGINSDIR instead.
MSG is offline   Reply With Quote
Old 5th September 2012, 07:27   #5
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
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 is offline   Reply With Quote
Old 5th September 2012, 08:14   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Simply store a versionnumber in registry upon installation, and check that.
MSG is offline   Reply With Quote
Old 5th September 2012, 08:42   #7
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
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 is offline   Reply With Quote
Old 5th September 2012, 09:19   #8
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Here's the script:
http://pastebin.com/pxmA7UCb

Here's the regedit:
thaman667 is offline   Reply With Quote
Old 5th September 2012, 11:05   #9
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
MSG is offline   Reply With Quote
Old 5th September 2012, 11:47   #10
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
Originally Posted by MSG View Post
Use EnumRegKey on the Software/Date etc/Visual DataFlex key.
Huh, I don't get what you mean?
thaman667 is offline   Reply With Quote
Old 5th September 2012, 14:32   #11
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
You can use it to find the installed versionnumber.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.5
MSG is offline   Reply With Quote
Old 6th September 2012, 09:27   #12
thaman667
Junior Member
 
Join Date: Sep 2012
Posts: 22
Quote:
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.
thaman667 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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