This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Uninstal locked files
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 16, 2008
05:27 AM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 17, 2008
04:08 AM
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);
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);
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)