NATIVE_UNINSTALL Equals REBOOT but not rebooting

Got a problem you cannot solve? Try here.
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

NATIVE_UNINSTALL Equals REBOOT but not rebooting

Postby tofutim » Wed Sep 23, 2015 4:52 pm

Now that I have the uninstall triggering, I have another problem. I do not want the uninstall to reboot, but NATIVE_UNINSTALL Equals REBOOT when I use the updater. This doesn't happen when I run the new installer by itself, but when it runs it using the updater it seems to always trigger the REBOOT.

Is there a way to use the updater without NATIVE_UNINSTALL = REBOOT?
What causes this?

tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: NATIVE_UNINSTALL Equals REBOOT but not rebooting

Postby tofutim » Wed Sep 23, 2015 4:56 pm

I wonder if it is safe to comment out the REBOOT. Besides left over files, will it mess up something when I actually reboot?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NATIVE_UNINSTALL Equals REBOOT but not rebooting

Postby FrancescoT » Thu Sep 24, 2015 1:51 pm

Dear Tofutim,

I am not quite sure to have a full picture of your problem, but anyway, the REBOOT condition is directly returned by the Native Installer Engine.
This can happens due several causes, as for example; files marked for deletion upon a reboot or service uninstall that may be delayed until the next reboot of the system.

You may also ignore such condition, but at the same time, it would be better to display a message-box where to choose if to apply the reboot immediately.

For what concerns the fact that the "new installer" seems to return a REBOOT condition and only when called from your updater, this effectively sounds strange.

Did you try "for test purpose", to execute your "new installer" from a different process? ... just to see if it still returns the same reboot condition.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: NATIVE_UNINSTALL Equals REBOOT but not rebooting

Postby tofutim » Thu Sep 24, 2015 1:58 pm

Looks like the problem is a DLL in use. I know that I can find the tasks stuck to it using tasklist /m but how do I get this information into my script? It seems that I am only getting the -1 at the end of the tasklist command. I would like to check and then wait a second.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NATIVE_UNINSTALL Equals REBOOT but not rebooting

Postby FrancescoT » Thu Sep 24, 2015 2:16 pm

Dear Tofutim,

a safer way to check if a file is open/used, it's to try to open it.
Unfortunately, you should create a small application or a dll to execute a WINAPI as "fopen".

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 134 guests