.InstallState removed before Custom Action gets executed - 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!

Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

.InstallState removed before Custom Action gets executed

Hi together,

I have a little problem, i can't explain myself.
I have a custom action (for creating a code access security policy, equal). This custom action creates in the installation directory a file called SetSecurity.InstallState. I used this custom action about 10 times in AI Installer Projects - it just works. But this time something strange happens when i uninstall the setup package:
The .InstallState file gets deleted before the custom action is executed!
So... naturally then the hole uninstall process fails and a rollback is done....

thank you for your help in advance,
kind regards
laurin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: .InstallState removed before Custom Action gets executed

Hi Laurin,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file you are using and a verbose log of the uninstall to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: .InstallState removed before Custom Action gets executed

Hi Laurin,

I noticed that your install custom actions don't use conditions. Please try setting this condition for them:

Code: Select all

NOT Installed
This way they will run only during the first installation. I'm not sure if this will solve the problem. It seems that Windows Installer never touches the file. Most likely it's removed by one of the custom actions or by the application.

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

Return to “Common Problems”