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!

jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

VBScript Custom Actions on Uninstall under Vista

I have a vbscript that runs on uninstall (synch/check return code/Immediate/Allways Execute/REMOVE="ALL"). It removes a number of files and folders that were created by our application.

Runs fine on W2000/XP but under vista, some of the file operations (using standard vbs scripting/file system objects) fail silently. Probably because of permission errors.

It is my understanding that the vbs is run under the local system account but is there anyway to get it elevated to an admin account?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Use "Deferred with no impersonation" as execution option for the custom action.

Let me know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Worked like a charm!

Return to “Common Problems”