|
|
#1 |
|
Junior Member
Join Date: Apr 2009
Posts: 15
|
Automatic Uninstall if Uninstall has 2 possible names
Simple question, hoping for a simple solution
Here goes, durring my mod's inception there have been mulitple install scripts I've used, hasn't been an issue until recently. Where through my lack of forsight there are now two possible names for the uninstaller.exe the installer will create. Now when the mod updates to a new version, it must clean out all the old files and so runs the uninstaller: code: Or code: My question is, is there anyway to check for which uninstall exe exists (there are only two possible names), and run whichever one it finds. In pseudocode something like this: code: Is such pseudocode possible, and if so how do I write it? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
standard NSIS
IfFileExists <file path> goto_if_true goto_if_false or using LogicLib: ${If} ${FileExists} <file path 1> ; run path 1 ${ElseIf} ${FileEists} <file path 2> ; run path 2 ${EndIf} |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|