RunOnce Registry Key on Uninstall only (Vista) - 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!

mark at HP
Posts: 5
Joined: Tue Jun 20, 2006 4:57 pm

RunOnce Registry Key on Uninstall only (Vista)

Thanks to the different color of the sky in Redmond, M$ Winders Vista's elevation on Uninstall is preventing my .vbs scripts from setting an additional uninstall execution step into the RunOnce key on an uninstall.

I tried to set the registry key with the Condition (REMOVE="ALL"), but the key does not show up in the registry before the reboot.

What can I do to fix this?


Is it possible that this RunOnce item *is* being set properly, but is located in a different segment of the registry? This is apparently *another* "feature" of Vista according to M$DN.

mark at HP
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Mark,

On windows Vista it is required to set the "Execution Options" to "Deferred with no impersonation" in order to run a custom action in the system context.

If you access some properties in this custom action pass their values using the "Action Data" field.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mark at HP
Posts: 5
Joined: Tue Jun 20, 2006 4:57 pm

I understand the use of doing it that way, and the reasons for executing with the "No Impersonation" because of the way the security model works in Vista.

But I still don't understand why the registry key wasn't put into the RunOnce registry key when I run the uninstall. I would prefer to get away from the .vbs files whenever possible...and this is definitely one of them.

mark at HP
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Mark,

For investigation you can send a small test project and the script file reproducing this issue to support at advancedinstaller dot com.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”