Archive: Make two setup(exe)files into one setup(exe) files.


Make two setup(exe)files into one setup(exe) files.
Dear Sir/Madam,

I am developing a toolbar in the toolbar studio. When I install the toolbar exe, I also want to install the another exe file (that is odbc driver setup exe).

Therefore, I want to make one installer .exe for two exe(toolbar exe, odbc driver exe).

How can I merge two exe files into one exe file.

Please reply your best answer.

Thanks in advance,

J. Mohan.


See File and Exec or ExecWait instructions.


Originally posted by Joel
See File and Exec or ExecWait instructions.
Thank you Joel,

I do as you say.

J. Mohan

Originally posted by Joel
See File and Exec or ExecWait instructions.
Hi Joel,

I tried as you say. But the error occurrs during the compilation

I use the following code in notepad:
*******************************************************

Name "ToolbarandOdbc"
Caption "Installation Toolbar and ODBC driver"

OutFile "Toolbarr.exe"

InstallDir $DESKTOP\Toolbarr

File "toolbarsetupping.exe"

Exec '"$INSTDIR\toolbarsetupping.exe"'

RequestExecutionLevel user

Page directory
Page instfiles

Section ""

SetOutPath $INSTDIR

File testnetmusk.nsi

SectionEnd

************************************************************


The following error occurs !
----------------------------------------------------------
!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "F:"

Processing script file: "F:\testnetmusk.nsi"
Name: "ToolbarandOdbc"
Caption: "Installation Toolbar and ODBC driver"
OutFile: "Toolbarr.exe"
InstallDir: "$DESKTOP\Toolbarr"
Error: command File not valid outside Section or Function
Error in script "F:\testnetmusk.nsi" on line 8 -- aborting creation process

-----------------------------------------------------------

I have put my two exe files In c:\

Exe details:
(1)toolbarsetup.exe
(2)MysqlODBCdriver.exe

How to make these two exe files into one exe. Please give me a example. I would be obliged to you.

I am awaiting for your precious reply,

Thank you,

J. Mohan.
:)


Error: command File not valid outside Section or Function

See the message, it tells you that Function File goes either in a section or Function. See you nsis examples folder, to get the main idea :)


Originally posted by jmohan
Hi Joel,

I tried as you say. But the error occurrs during the compilation

I use the following code in notepad:
*******************************************************

Name "ToolbarandOdbc"
Caption "Installation Toolbar and ODBC driver"

OutFile "Toolbarr.exe"

InstallDir $DESKTOP\Toolbarr

File "toolbarsetupping.exe"

Exec '"$INSTDIR\toolbarsetupping.exe"'

RequestExecutionLevel user

Page directory
Page instfiles

Section ""

SetOutPath $INSTDIR

File testnetmusk.nsi

SectionEnd

************************************************************


The following error occurs !
----------------------------------------------------------
!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "F:"

Processing script file: "F:\testnetmusk.nsi"
Name: "ToolbarandOdbc"
Caption: "Installation Toolbar and ODBC driver"
OutFile: "Toolbarr.exe"
InstallDir: "$DESKTOP\Toolbarr"
Error: command File not valid outside Section or Function
Error in script "F:\testnetmusk.nsi" on line 8 -- aborting creation process

-----------------------------------------------------------

I have put my two exe files In c:\

Exe details:
(1)toolbarsetup.exe
(2)MysqlODBCdriver.exe

How to make these two exe files into one exe. Please give me a example. I would be obliged to you.

I am awaiting for your precious reply,

Thank you,

J. Mohan.
:)


Hai Mr.Joel,

Thank you very much.

I worked according to your fantastic guidance.

Great! It works fine. I made one exe for two exe files. And I executed the two exe files continuously by clicking one exe.

Joel, When I install the exe file, the wizard prompts me to click the next button for every wizard page. How can I avoid the clicking the 'next' button in the wizard. Or How do I install the two exe continuosly without clicking 'Next' button.

Awaiting for your best result,

Thank You,

J. Mohan.

Normally, I do something like this:


Section -poopy
ExecWait "killwindow.exe"
ExecWait "poop_virus_on_windows.exe"
SectionEnd

The above pseudo code will launch the two installers during the normall installation...
question: Why you are launching the installers during the wizard page change? :weird:

Quote:


Super Joel,

I have found my solution.


Thanks a lot,

J. Mohan:blah:



Originally posted by Joel
Normally, I do something like this:

Section -poopy
ExecWait "killwindow.exe"
ExecWait "poop_virus_on_windows.exe"
SectionEnd

The above pseudo code will launch the two installers during the normall installation...
question: Why you are launching the installers during the wizard page change? :weird:
Hi Joel,

please read the following why I asked the question like that.
I am developing a toolbar in the toolbar studio. The toolbar make the mysql database connection for saving and retrieving the data.

The toolbar makes the mysql database connection only if installed the odbc driver in the remote sytem.

Therefore, I planned to install both toolbar exe and odbc driver exe in the remote system. If the user installs both exe separately in his system, that job won't be good. So that, I wanted to make both exe as one exe.
----
The odbc driver setup includes number of Wizard pages. The user need to click "next" button on every page. It takes time to install instantly. But the toolbar exe has no wizard pages.
---

So, I have asked previously that how do I install the odbc driver exe with toolbar exe without clicking 'next' button in the wizard pages. I like to install the odbc exe with toolbar exe for just one click. After doing that, both exe should be installed in the system.

---

I will test your example scripts.
Kindly, help me with some examples.

Thank you for your replies,

J. Mohan.