Old 16th April 2005, 16:05   #1
Llynix
Junior Member
 
Join Date: Nov 2004
Posts: 32
Send a message via AIM to Llynix
Function in Section Uninstall isn't calling correctly.

I'm trying to call a RemoveFont function from section "Uninstall".

If I just leave it named the way it is.. it tells me I need to put an un. in front of it.

Call must be used with function names starting with "un." in the uninstall section.
Usage: Call function_name | [:label_name]
Error in script "C:\Documents and Settings\Llynix\Desktop\Installers\wwinstall\World Wind Full.nsi" on line 246 -- aborting creation process

If I put an un. in front of it, it does it's best to compile and then errors. Telling me I need to put an un. in front of it.

Error: resolving uninstall function "un.RemoveFONFont" in uninstall section "Uninstall" (0)
Note: uninstall functions must begin with "un.", and install functions must not

I'm a bit confused and after reading docs still haven't found the answer.

See attachments for files.
Attached Files
File Type: nsi world wind full.nsi (8.4 KB, 598 views)

Anthony Taylor (Llynix)
NASA World Wind Installer Maintainer
Llynix is offline   Reply With Quote
Old 16th April 2005, 16:06   #2
Llynix
Junior Member
 
Join Date: Nov 2004
Posts: 32
Send a message via AIM to Llynix
The library

And the library..
Attached Files
File Type: nsi library.nsi (8.1 KB, 588 views)

Anthony Taylor (Llynix)
NASA World Wind Installer Maintainer
Llynix is offline   Reply With Quote
Old 16th April 2005, 16:34   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You need to prefix the name of the function with "un." in its definition too (in library.nsi).

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 16th April 2005, 23:17   #4
Llynix
Junior Member
 
Join Date: Nov 2004
Posts: 32
Send a message via AIM to Llynix
I tried that.. when the function and the Call are both un'ized I get :

Error: resolving uninstall function "un.RemoveFONFont" in uninstall section "Uninstall" (0)

Note: uninstall functions must begin with "un.", and install functions must not

Error - aborting creation process

?

Anthony Taylor (Llynix)
NASA World Wind Installer Maintainer
Llynix is offline   Reply With Quote
Old 17th April 2005, 10:04   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Make sure you place the Function before the uninstall Section and not after it.

-Stu
Afrow UK is offline   Reply With Quote
Old 19th April 2005, 17:19   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Function and section order doesn't matter. Attach a complete example which is not working.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 2nd September 2009, 14:32   #7
ginglese
Junior Member
 
Join Date: Jul 2006
Posts: 42
Hi all,

I'm facing the same issue.
I have create a function called "un.retreivePostgresHomeDirectory" in my own .nsh (included in my main .nsi) and when I try to use it in the uninstaller section I have this error :

Error: resolving uninstall function "un.retreivePostgresHomeDirectory" in uninstall section "Uninstall" (0)
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process

I do not have the error if the function is declared in the .nsi
ginglese is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump