NSIS - Silent Autoupdate Application

I have an NSIS installation kit for my .net C # application.

Is there a way to disable a standalone application, given that I have already downloaded the new update (new version of the NSIS application) to the local computer?

Thanks!:)

+6
nsis auto-update
source share
3 answers

(If you need to define the command line / Autoupdate = yes)

!include FileFunc.nsh !insertmacro GetParameters !insertmacro GetOptions Var CMD_ARGS Var CMD_RES Function .onInit # #installer stuff. # StrCpy $CMD_ARGS "" StrCpy $CMD_RES "no" ${GetParameters} $CMD_ARGS ClearErrors ${GetOptions} $CMD_ARGS /Autoupdate= $CMD_RES StrCmp $CMD_RES "yes" is_update is_not_update is_update: #Execute all your update code(run your update app, etc) MessageBox MB_OK|MB_ICONEXCLAMATION "IS UPDATE" goto end_auto_update_check is_not_update: #Execute all your non-update code. MessageBox MB_OK|MB_ICONEXCLAMATION "IS NOT UPDATE" end_auto_update_check: FunctionEnd 
+2
source share

You can run the installer silently and install from above if this is what you mean:

foo.exe /S /D=C:\Program Files\Foo

0
source share

You do not need to pass / S to the command line if you configured the script package to indicate silent installations.

Take a look at the silent.nsi example at NSIS silent.nsi

0
source share

All Articles