I need to have some parameters in the installer and uninstaller. For this I'm using the following code:
which works fine as long as the GetParameters call is in a section from installing. When I move the last part into the uninstall secction I get: "Call must be used with function names starting with "un." in the uninstall section". I know that, but I don't know how to change it.
!include "FileFunc.nsh"
!insertmacro GetParameters
!insertmacro GetOptions
...
Var cmd_line
...
${GetParameters} $cmd_line
${GetOptions} $cmd_line "${MY_PARAM}" $0
IfErrors 0 found_my_param
...
I tried:
but I get: "Error in macro un.GetParametersCall on macroline 4"
!include "FileFunc.nsh"
!insertmacro un.GetParameters
...
Var cmd_line
...
${un.GetParameters} $cmd_line
...
So, can pls smbd change the code I posted at the beginning of this entry so that it can be places in the uninstall section?
Thx,
Viv