When launching my app, installer kicks in 3 times! - Advanced Installer Community
Castit
Posts: 4
Joined: Thu Mar 12, 2015 4:26 pm

When launching my app, installer kicks in 3 times!

I have built an installer for my application. All was going well but when I did an install in a new sandbox I realized I had not included some files that go in the windows\system directory. So I add these, two need to be registered.

Now when I start my application by clicking on the EXE the installer starts up and says it needs to configure windows.

First Dialog is:
The setup must update files or services that cannot be updated while the system is running. If you choose to continue, a reboot will be required to complete the setup
I click [OK] then I get the:
User Account Control
I click Yes, Then I get a big red warning:
Do you want to allow the following program to update software on this computer.
I click [Yes] and it does some stuff, then the cycle repeats.

Where is this coming from and how does windows even know to start an installer when I start my application?

I have even indulged the program and let it reboot, but everytime I start my application the sequence repeats.

I have installed my application for years with another installer and never seen this.

Ideas? Help?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: When launching my app, installer kicks in 3 times!

Hello,
The setup must update files or services that cannot be updated while the system is running. If you choose to continue, a reboot will be required to complete the setup
In order to avoid this prompt, you can detect the process which holds the files in use and stop the related process. This can be done trough a Detect Process and Stop Process predefined custom actions. For details, please check the How do I detect or stop a process? article.

If a service needs to be updated, then you can easily use a similar approach, using the Detect Service predefined custom action you can detect if the service is started as explain here How do I detect a service?. Then, using the Stop Service predefined custom action you can stop the related service.

When changes are going to be made to your computer that require administrator-level permission, UAC notifies you. So, this is why you get the UAC prompt.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Castit
Posts: 4
Joined: Thu Mar 12, 2015 4:26 pm

Re: When launching my app, installer kicks in 3 times!

I will check those links out but I have never had to do that in the past when installing the same application and set of files.

The initial install goes fine, no error messages or warnings. Once the install is done and all dialogs closed, then I click on the icon to start my application. That is when I start getting the sequence of dialogs that updating is required.

Even if I click through all the dialogs and reboot the PC, the next time I start my application the sequence starts all over again. It seems like clicking the OK and Yes along with the reboot did nothing.

I am not updating a service and all I did was add some OCX and DLL files to c:\windows\*system*

How do I even find out what is happening. The log files found in c:\users\<user>\AppData\... are about 1 MB, a nice short novel without the plot, what am I looking for in them to try and figure this out?

Return to “Common Problems”