Skip to content
⌘ NSIS Forum Archive

Including multiple installers inside a single installer.

7 posts

Galdric#

Including multiple installers inside a single installer.

Hi all,

I just want to check out somethig about getting an installer to run multiple msi installers, and wait for the msi files to finish.

As I understand it you need to use the line:

nsExec::Exec "whatever.msi"

in order to force the installer to launch the msi and wait for it to finish.

(Though I've also seen that using "start /wait msiexec /i msi_file.msi" is the way to go)

Are there any examples in the wiki about putting multiple installers in a single master installer?

- Galdric
Galdric#edited
Edit:

Nevermind, I figured out how to use it. Thanks for the help!.

On a related note, can I change the text on a page by passing in a variable? (I want the page to have a slightly different message each time it's displayed, depending on what variable gets passed in.) I can do the seperate pages but having a single page just seems neater to me :P

- Galdric
verakot#
Originally Posted by Galdric View Post
Edit:

Nevermind, I figured out how to use it. Thanks for the help!.

On a related note, can I change the text on a page by passing in a variable? (I want the page to have a slightly different message each time it's displayed, depending on what variable gets passed in.) I can do the seperate pages but having a single page just seems neater to me :P

- Galdric
Can you show how you did it? Thanks!
T.Slappy#
Originally Posted by verakot View Post
Can you show how you did it? Thanks!
This can be easily done:
    Var /Global SourcePath
    ${NSD_CreateText} 15u 50u 94% 13u "$SourcePath"
    Pop $TextDir 
Fill $SourcePath with your text, as Global variable it can be filled from any function.