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