Your custom action declaration does not have "Execute" attribute defined, which means that this is immediate custom action. Immediate custom actions are always impersonated on the server (look for more information here: http://blogs.msdn.com/heaths/archive/2007/07/12/immediate-custom-actions-always-impersonate.aspx).
Also, will <CopyFile> and <DuplicateFiles> action do what you want to do in your custom action? Regards, Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of RW Sent: Monday, February 04, 2008 10:31 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Vista security Hi, I'm having some small issues with security on Vista. I am running a Custom Action before installation to backup any files that already exist, so they are not lost in the installation. I am using VBS, despite some people's dislike for it, as I know of no better way. <!-- Backup Files --> <Binary Id='Backup.vbs' src='VBS\Backup.vbs'/> <CustomAction Id='BackupFilesOnInstall' BinaryKey='Backup.vbs' VBScriptCall='Backup' Return='check' Impersonate='no' /> The script is set as no impersonate to try and run as the system level, so it has security to do the actions it needs - backup files. Using Orca, the Type is 2054, which as 0x800 is set, should be running as the system AFAIK. In the MSI log, I get this: MSI (s) (44:C8) [13:06:27:351]: Hello, I'm your 32bit Impersonated custom action server. MSI (s) (44:6C) [13:06:29:845]: Product: TestProd 1.2.1.5 -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action BackupFilesOnInstall script error -2146828218, Microsoft VBScript runtime error: Permission denied Line 37, Column 41, Line 37 is this: if not (fso.FolderExists(Folder)) then fso.CreateFolder Folder I.e., creating a backup folder. I have verified that Folder is correct by MsgBox'ing it (it is like c:\\program files\\myapp\\backup). So... any ideas why the script cannot create a backup folder? A big thank you for any suggestions :) RW ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users