|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 131
|
![]()
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?
Last edited by Anders; 16th March 2017 at 15:07. Reason: Changed title |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
Are you waiting correctly for the uninstaller before creating the symlinks?
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 131
|
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.
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
Use execwait and the special _?= parameter from the documentation.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 131
|
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
![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|