Old 26th April 2012, 23:46   #1
Junior Member
Join Date: Apr 2012
Posts: 1
How to build the uninstaller

When I run my build using either EclipseNSIS or from the command line I'm not seeing that a new uninstall.exe is being built. How do I rebuild the uninstaller?

I've looked in the doc page, looked on the NSIS Wiki, read the FAQ and tried searching this forum but have found nothing even close to why I can't build the uninstall. In my code I do have a Section "Uninstall".
davedoc is offline   Reply With Quote
Old 27th April 2012, 05:39   #2
Major Dude
Join Date: Oct 2006
Posts: 1,892
The uninstaller is built at install time, not at compile time. Just call WriteUninstaller from one of your sections.

If you need a separate uninstall.exe at compiletime, you'll have to use !system to call makensis youruninstaller.nsi and then call the created installer which will render you an uninstall.exe which you can use in your actual installer. But in most cases you won't need this at all.
MSG is offline   Reply With Quote
Old 27th April 2012, 13:59   #3
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,765
Originally Posted by MSG View Post
The uninstaller is built at install time, not at compile time.
Not 100% true, it is a sort of hybrid between the two.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 30th April 2012, 08:07   #4
Major Dude
T.Slappy's Avatar
Join Date: Jan 2006
Location: Slovakia
Posts: 514
Send a message via ICQ to T.Slappy
I suppose UNinstaller is built automatically from "Uninstall" section in main script file.
But it is not written to disk - it is created in memory and stored inside installer .exe file.

During installation a "real" uninstall.exe is written to disk - but it perform exactly the same as mention in section "Uninstall".

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote
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