cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Gr3gorius
Level 2

Uninstal locked files

Hello!

I'm new to installshield 🙂
During uninstall is set the BATCH_INSTALL (BATCH_INSTALL=TRUE), and after the system restart the OnRebooted method is not executed. I verified, no entry is created in the RUNONCE key in the registry.
I saw this is an InstallShield 2009 forum, I am using InstallShield 8 and I didn't found any forum related to InstallShield 8. Sorry again.

Regard,
Adam
Labels (1)
0 Kudos
(1) Reply
Gr3gorius
Level 2

I just found a method to resolve my problem without continue the uninstall after the restart.
I used the MoveFileEx delayed.
Here is the code:

#define MOVEFILE_DELAY_UNTIL_REBOOT 0x4
prototype NUMBER Kernel32.MoveFileEx(BYREF STRING, POINTER,NUMBER);
....
nResult = MoveFileEx(szMsg,NULL,MOVEFILE_DELAY_UNTIL_REBOOT);
0 Kudos