Old 19th January 2010, 16:09   #1
lmoreau
Junior Member
 
Join Date: Jan 2010
Posts: 3
Installer in an installer

Hello,

I have a strange problem using NSIS.
I have created an installer with NSIS, the generated exe is called A.EXE
I have created another installer with NSIS, B.EXE, which includes A.EXE.
B.EXE, when installing, execute A.EXE (using ExecWait A.EXE /S)

This installation works fine.

The problem came when I try to uninstall. When I uninstall B.EXE, the uninstall of A.EXE is called (using ExecWait unistall.exe in A Directory).
80% of times, it works fine, and the rest of times, there are some files that remains into the A directory...
And sometimes, when I have this problem, I reboot the computer and the remaining files are deleted ...

Does anyone have an idea of what appends ?

Thanks,
Luc.
lmoreau is offline   Reply With Quote
Old 19th January 2010, 16:49   #2
Zinthose
Senior Member
 
Join Date: May 2009
Posts: 152
My money's on File Focks. When the install leaves the files again, try and delete the files manually and see if windows tries to stop you.

I recommend getting a file unlocker to identify what is locking the files.
Zinthose is offline   Reply With Quote
Old 20th January 2010, 09:25   #3
lmoreau
Junior Member
 
Join Date: Jan 2010
Posts: 3
I have not reproduced the problem since yesterday :-(

But I wonder about the uninstall.exe : Does it end when uninstallation is really finished, or does uninstall.exe launch other processes to perform files deletion, ... ?

I ask this question because the process uninstall.exe ends in a very short time (seems like an asynchronous process)

Thanks,
Luc.
lmoreau is offline   Reply With Quote
Old 20th January 2010, 12:19   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
uninstall.exe creates a copy of itself into the temp folder and executes that, so that it will be able to delete itself from $instdir. Usually called au_.exe or something of the sort, iirc.
MSG is offline   Reply With Quote
Old 20th January 2010, 12:35   #5
lmoreau
Junior Member
 
Join Date: Jan 2010
Posts: 3
Ok. I understand now...

Thank you for your help.

Luc.
lmoreau 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