Archive: NSIS as wrapper for another exe


NSIS as wrapper for another exe
Hi,

I've looked through the forums and haven't quite found the answer that I'm looking for. Basically, I want to deploy the existing SpyBot S&D installer package silently via my own installer (a wrapper, basically) and then run a couple of scripts (update signatures, scheduled task creation) after the initial installation.

The SpyBot installer has its own silent switches and I believe that I've found how to run that (nsExec?). What I'm trying to figure out is, based on the ModernUI Basic example, what do I actually need in the installer? I would think that the InstallDir is unnecessary since I'm simply launching another exe from the installer but I haven't found any good examples yet.


Any suggestions? Thanks....


Include the installer in yours with the File instruction.

E.g.
InitPluginsDir
File "/oname=$PLUGINSDIR\installer.exe" "installer.exe"
ExecWait '"$PLUGINSDIR\installer.exe" "parameters"'

-Stu


Thanks for the quick reply. Sorry, but I'm still quite the newbie w/ NSIS - what about things like InstallDir, InstallDirRegKey, etc? Are they necessary or can I omit them in my installer?

I just want the user to click Next and have the whole thing run without their intervention.


Thanks again...


OK, well, I figured it out - lots of flexibility with this installer - I like it!!


Thanks again...