Always creates registry entry at HKCU to run after reboot - 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!

mabs
Posts: 27
Joined: Tue May 08, 2012 10:04 am

Always creates registry entry at HKCU to run after reboot

Hello.

With AI version 9.1 I see the installation process always creates a Windows registry entry at HKCU\Software\Microsot\Windows\CurrentVersion\Run with the product code as key and a command line to execute when the computer reboots. The registry entry is created always in all Windows versions I tested: from Windows XP to Windows 7. This does the installation UI is showed another time after rebooting the computer.

I studied the log file, and I don't understand why this is necessary, because I do not see what this "execution after-reboot" does: it doesn't copy or register any file! But the users view the installation is not complete, and I don't know why, and this is my problem: I cannot explain why this occurs.

In the log file, I see the second execution creates a AI_RESUME=1 property, but the AFTERREBOOT property doesn't appears.

Anything more: In some computers, after this "second execution", the registry entry is deleted. But in others they don't do this, forcing the user to "reinstall" the application each time it reboots...

Can you explain me this behaviour?

With AI version 8.9 this doesn't occurs.

My application is configured with the "run as administrator" to install, because it register some ActiveX and COM componentes and Windows Fonts, and also copies files to %CommonProgramFiles%.

Thanks a lot!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Always creates registry entry at HKCU to run after reboo

Hello,

I'm sure why this is happening, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate? It would also help to include a link where we can download the built installer from.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jorobhall
Posts: 2
Joined: Tue May 01, 2012 6:59 pm

Re: Always creates registry entry at HKCU to run after reboo

I am having the same issue.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Always creates registry entry at HKCU to run after reboo

Hi,

We had a similar related issue but later investigation proved it's not related.

Please keep in mind this is the designed prerequisite behavior. That registry key is always added and its purpose is to resume the installation after reboot. However, this entry is deleted at the end of the installation if no resource triggers a reboot.

If any reboot still occurs after a complete installation, please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mabs
Posts: 27
Joined: Tue May 08, 2012 10:04 am

Re: Always creates registry entry at HKCU to run after reboo

Hello.

I will ask my chief for authorization to send us these files.

Regards.

Return to “Common Problems”