Old 23rd October 2014, 19:19   #1
zewari
Junior Member
 
Join Date: Mar 2014
Posts: 17
Adding dependency on another program

Hey folks, I'm not sure what the technically appropriate way to define this behavior is, so please bare with me. Some programs have a way of establishing a dependency with other programs such that if one attempts to uninstall the required program, a pop-up appears that would inform the user about the dependent programs that would not be able to function properly.

For example, assume program A requires program B to be installed. If the user attempts to uninstall B while A is still installed, a notice advises the user to either uninstall A first or at least lets them know that A will no longer work. If possible, I would like the uninstallation of B to force the uninstallation of A prior to B's removal. Is this doable, NSIS gurus?
zewari is offline   Reply With Quote
Old 23rd October 2014, 20:05   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
There is nothing in the system you can hook to detect this and it is probably not possible unless program B is under your control and you can change the way its uninstaller works.

See also: http://blogs.msdn.com/b/oldnewthing/.../10546017.aspx

IntOp $PostCount $PostCount + 1
Anders 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