Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 11th July 2001, 16:10   #1
nphelps
Junior Member
 
Join Date: Jun 2001
Location: Tulsa, Oklahoma
Posts: 4
I have used the silent switch on the install exe that NSI generates... does the same switch exist on the generated uninstaller? I'd love to be able to silently uninstall a previous version of the installed software when a user attempts to upgrade...
nphelps is offline   Reply With Quote
Old 11th July 2001, 20:42   #2
DuaneJeffers
Major Dude
 
DuaneJeffers's Avatar
 
Join Date: May 2001
Location: Winter Park, FL
Posts: 1,776
No. There is no way (that is said in the documentation) to do so. But what you can do is in newer versions that you install with NSIS is add the following code:

code:
Section "Newer Version"
SectionIn
SetOutPath $INSTDIR
Delete "$PROGRAMFILES\myprogram1\MyProgram0101.exe"
Delete "$PROGRAMFILES\myprogram1\uninst-myprogram.exe"
File MyProgram1010.exe


For example.

Or you could just run the uninstaller before installing a new version, but that would leave more responsibility on the installer. Or just overwrite with the new program by adding the tag:

code:
SetOverWrite ifnewer


Hope that helps,
Duane Jeffers
Developer; On-Demand Audio

Website

Yeah, that's pretty much it. :-\
DuaneJeffers is offline   Reply With Quote
Reply
Go Back   Winamp 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