StopProcess not working on Vista and Win7 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

StopProcess not working on Vista and Win7

Hello,

I use AI 7.1.3 enterprise

I have added a custom action on Commit to kill a process with:
synchronous execution, do not wait for return
execute options: commit
always execute
I tried other settings as well.

This does work fine on XP, but not on Vista and Win7.

I am not sure when that custom action is executed, before the installation requests admin privileges or after that.
If it is execute with the user privileges then I understand that the process is not killed.
So how to get admin privileges to kill a task?

Thank you,
Chris
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: StopProcess not working on Vista and Win7

Hello,

You can try setting your process as "Commit with no impersonation" and see if that works. If it does not, you can send your project file to support at advancedinstaller dot com so we can further investigate the problem.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: StopProcess not working on Vista and Win7

"Commit with no impersonation" did not help. I'll send you the aip file.

Regards,
Chris
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: StopProcess not working on Vista and Win7

Hi,

The project seems to be configured correctly. Also, I tested the package you provided and the custom action runs without a problem (the tray process is closed).

If you are referring to the files in use dialog (a dialog which recommends to close the application), you can try moving the custom action under "InstallExecuteSequence" -> "CostInitialize". This way the process should be stopped before Windows Installer starts the uninstall.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”