Archive: Silent Mode Installation question


Silent Mode Installation question
I'm trying to create an installation that has the option of installing in silent mode if the user specifies a paramater on the command line. (the paramter is: /L=[path and file name here])

If I detect the parameter, then I set the install to go into into silent mode using a "SetSilent silent" command in .OnInit.

This works great, exept that the code in my sections never runs.

As a test, I place the command "SilentInstall silent" before my sections and found using this, the install was silent AND the code executed perfectly from each section. (Unfortunatley, this also means that my install is ALWAYs silent, which is not exactly what I wanted.)

What might I be missing in the original function inside .onInit?


I just tested using SilentInstall silent and SetSilent silent, but both work without problems (a MessageBox still appears from my Section either way.)

Are you using the latest version of NSIS?

-Stu


I did some more digging and found that I had a few uninstall sections that I had initially created, but then decided not to use them.

Once I removed them, Silent mode started working as it should.

Perhaps sometime when I get a have more time, I'll try to find out why I was having the problems.

(Things that make you go "hmmm...")