1

I would like to have an uninstaller with custom NS pages. How do I do that with NSIS?

3 Answers3

6
Function un.mypageCreate
;call nsDialogs or InstallOptions functions here
FunctionEnd

UninstPage custom un.mypageCreate
Anders
  • 97,548
  • 12
  • 110
  • 164
  • The function needs to be called "un.mypageCreate". See Rover's (more correct) answer. Otherwise the compiler won't be able to resolve the function. – Vern Jensen Jan 16 '13 at 21:51
5

Example:

UninstPage custom un.mypage

Function un.mypage
    ;func body here
FunctionEnd

"un." is required for uninstall functions.

Rover
  • 2,203
  • 3
  • 24
  • 44
0

The Function has to begin with un. (e.g. "un.myPageCreate") though I'm not sure that is the problem the error message is referring to.

Russell Gallop
  • 1,631
  • 2
  • 17
  • 34