Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Waiting for uninstaller (http://forums.winamp.com/showthread.php?t=400355)

kalverson 13th March 2017 11:46

Waiting for uninstaller
 
I have an application which is rebranded and will run under a new path. However, the database still has some of the old paths stored (in customers data). The simple solution is to run a batch file that creates symbolic links to point the old path to the new path. This works fine when done manually after an install has completed. I have found that trying to create the symbolic links at the end of an install sometimes results in the silent uninstall also done near the end - taking out just installed files in the new path. Is there a way to schedule a batch process that will run after the install and silent uninstall of old application is completed such that there won't be any overlap?

Anders 13th March 2017 12:14

Are you waiting correctly for the uninstaller before creating the symlinks?

kalverson 13th March 2017 13:41

I used ExecDos synchronous but I think the process is launched anyways and returned to the installer before it completes the remove of all folders and files. Possibly using Exec instead might work.

Anders 13th March 2017 18:06

Use execwait and the special _?= parameter from the documentation.

kalverson 16th March 2017 14:32

Thank you so very much Anders. The execwait and _?= parameter did work to complete the uninstall before they symbolic links were created. It all works as it should now. Your a life saver :)


All times are GMT. The time now is 17:38.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.