2 * Implementation of the Microsoft Installer (msi.dll)
4 * Copyright 2005 Aric Stewart for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 * Actions dealing with files These are
29 * RemoveDuplicateFiles(TODO)
38 #include "wine/debug.h"
42 #include "msvcrt/fcntl.h"
47 #include "wine/unicode.h"
49 WINE_DEFAULT_DEBUG_CHANNEL(msi);
51 extern const WCHAR szInstallFiles[];
52 extern const WCHAR szDuplicateFiles[];
53 extern const WCHAR szMoveFiles[];
54 extern const WCHAR szPatchFiles[];
55 extern const WCHAR szRemoveDuplicateFiles[];
56 extern const WCHAR szRemoveFiles[];
58 static const WCHAR cszTempFolder[]= {'T','e','m','p','F','o','l','d','e','r',0};
68 WCHAR source[MAX_PATH];
71 static UINT msi_change_media( MSIPACKAGE *package, struct media_info *mi )
74 LPWSTR error, error_dialog;
75 UINT r = ERROR_SUCCESS;
77 static const WCHAR szUILevel[] = {'U','I','L','e','v','e','l',0};
78 static const WCHAR error_prop[] = {'E','r','r','o','r','D','i','a','l','o','g',0};
80 if ( (msi_get_property_int(package, szUILevel, 0) & INSTALLUILEVEL_MASK) == INSTALLUILEVEL_NONE && !gUIHandlerA )
83 error = generate_error_string( package, 1302, 1, mi->disk_prompt );
84 error_dialog = msi_dup_property( package, error_prop );
86 while ( r == ERROR_SUCCESS && GetFileAttributesW( mi->source ) == INVALID_FILE_ATTRIBUTES )
88 r = msi_spawn_error_dialog( package, error_dialog, error );
92 msg = strdupWtoA( error );
93 gUIHandlerA( gUIContext, MB_RETRYCANCEL | INSTALLMESSAGE_ERROR, msg );
99 msi_free( error_dialog );
105 * This is a helper function for handling embedded cabinet media
107 static UINT writeout_cabinet_stream(MSIPACKAGE *package, LPCWSTR stream_name,
117 rc = read_raw_stream_data(package->db,stream_name,&data,&size);
118 if (rc != ERROR_SUCCESS)
122 if (MSI_GetPropertyW(package, cszTempFolder, tmp, &write))
123 GetTempPathW(MAX_PATH,tmp);
125 GetTempFileNameW(tmp,stream_name,0,source);
127 track_tempfile(package, source);
128 the_file = CreateFileW(source, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
129 FILE_ATTRIBUTE_NORMAL, NULL);
131 if (the_file == INVALID_HANDLE_VALUE)
133 ERR("Unable to create file %s\n",debugstr_w(source));
134 rc = ERROR_FUNCTION_FAILED;
138 WriteFile(the_file,data,size,&write,NULL);
139 CloseHandle(the_file);
140 TRACE("wrote %i bytes to %s\n",write,debugstr_w(source));
147 /* Support functions for FDI functions */
151 struct media_info *mi;
154 static void * cabinet_alloc(ULONG cb)
156 return msi_alloc(cb);
159 static void cabinet_free(void *pv)
164 static INT_PTR cabinet_open(char *pszFile, int oflag, int pmode)
168 DWORD dwShareMode = 0;
169 DWORD dwCreateDisposition = OPEN_EXISTING;
170 switch (oflag & _O_ACCMODE)
173 dwAccess = GENERIC_READ;
174 dwShareMode = FILE_SHARE_READ | FILE_SHARE_DELETE;
177 dwAccess = GENERIC_WRITE;
178 dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
181 dwAccess = GENERIC_READ | GENERIC_WRITE;
182 dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
185 if ((oflag & (_O_CREAT | _O_EXCL)) == (_O_CREAT | _O_EXCL))
186 dwCreateDisposition = CREATE_NEW;
187 else if (oflag & _O_CREAT)
188 dwCreateDisposition = CREATE_ALWAYS;
189 handle = CreateFileA( pszFile, dwAccess, dwShareMode, NULL,
190 dwCreateDisposition, 0, NULL );
191 if (handle == INVALID_HANDLE_VALUE)
193 return (INT_PTR) handle;
196 static UINT cabinet_read(INT_PTR hf, void *pv, UINT cb)
198 HANDLE handle = (HANDLE) hf;
200 if (ReadFile(handle, pv, cb, &dwRead, NULL))
205 static UINT cabinet_write(INT_PTR hf, void *pv, UINT cb)
207 HANDLE handle = (HANDLE) hf;
209 if (WriteFile(handle, pv, cb, &dwWritten, NULL))
214 static int cabinet_close(INT_PTR hf)
216 HANDLE handle = (HANDLE) hf;
217 return CloseHandle(handle) ? 0 : -1;
220 static long cabinet_seek(INT_PTR hf, long dist, int seektype)
222 HANDLE handle = (HANDLE) hf;
223 /* flags are compatible and so are passed straight through */
224 return SetFilePointer(handle, dist, NULL, seektype);
227 static void msi_file_update_ui( MSIPACKAGE *package, MSIFILE *f, const WCHAR *action )
233 uirow = MSI_CreateRecord( 9 );
234 MSI_RecordSetStringW( uirow, 1, f->FileName );
235 uipath = strdupW( f->TargetPath );
236 p = strrchrW(uipath,'\\');
239 MSI_RecordSetStringW( uirow, 9, uipath);
240 MSI_RecordSetInteger( uirow, 6, f->FileSize );
241 ui_actiondata( package, action, uirow);
242 msiobj_release( &uirow->hdr );
244 ui_progress( package, 2, f->FileSize, 0, 0);
247 static UINT msi_media_get_disk_info( MSIPACKAGE *package, struct media_info *mi )
252 static const WCHAR query[] =
253 {'S','E','L','E','C','T',' ','*',' ', 'F','R','O','M',' ',
254 '`','M','e','d','i','a','`',' ','W','H','E','R','E',' ',
255 '`','D','i','s','k','I','d','`',' ','=',' ','%','i',0};
257 row = MSI_QueryGetRecord(package->db, query, mi->disk_id);
260 TRACE("Unable to query row\n");
261 return ERROR_FUNCTION_FAILED;
264 mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3));
265 mi->cabinet = strdupW(MSI_RecordGetString(row, 4));
267 ptr = strrchrW(mi->source, '\\') + 1;
268 lstrcpyW(ptr, mi->cabinet);
269 msiobj_release(&row->hdr);
271 return ERROR_SUCCESS;
274 static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
276 TRACE("(%d)\n", fdint);
280 case fdintPARTIAL_FILE:
282 CabData *data = (CabData *)pfdin->pv;
283 data->mi->is_continuous = FALSE;
286 case fdintNEXT_CABINET:
288 CabData *data = (CabData *)pfdin->pv;
289 struct media_info *mi = data->mi;
290 LPWSTR cab = strdupAtoW(pfdin->psz1);
293 msi_free(mi->disk_prompt);
296 mi->is_continuous = TRUE;
298 rc = msi_media_get_disk_info(data->package, mi);
299 if (rc != ERROR_SUCCESS)
301 ERR("Failed to get next cabinet information: %d\n", rc);
305 if (lstrcmpiW(mi->cabinet, cab))
308 ERR("Continuous cabinet does not match the next cabinet in the Media table\n");
314 TRACE("Searching for %s\n", debugstr_w(mi->source));
316 if (GetFileAttributesW(mi->source) == INVALID_FILE_ATTRIBUTES)
317 rc = msi_change_media(data->package, mi);
319 if (rc != ERROR_SUCCESS)
326 CabData *data = (CabData*) pfdin->pv;
332 file = strdupAtoW(pfdin->psz1);
333 f = get_loaded_file(data->package, file);
338 WARN("unknown file in cabinet (%s)\n",debugstr_a(pfdin->psz1));
342 if (f->state != msifs_missing && f->state != msifs_overwrite)
344 TRACE("Skipping extraction of %s\n",debugstr_a(pfdin->psz1));
348 msi_file_update_ui( data->package, f, szInstallFiles );
350 TRACE("extracting %s\n", debugstr_w(f->TargetPath) );
352 attrs = f->Attributes & (FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM);
353 if (!attrs) attrs = FILE_ATTRIBUTE_NORMAL;
355 handle = CreateFileW( f->TargetPath, GENERIC_READ | GENERIC_WRITE, 0,
356 NULL, CREATE_ALWAYS, attrs, NULL );
357 if ( handle == INVALID_HANDLE_VALUE )
359 if ( GetFileAttributesW( f->TargetPath ) != INVALID_FILE_ATTRIBUTES )
360 f->state = msifs_installed;
362 ERR("failed to create %s (error %d)\n",
363 debugstr_w( f->TargetPath ), GetLastError() );
368 f->state = msifs_installed;
369 return (INT_PTR) handle;
371 case fdintCLOSE_FILE_INFO:
375 HANDLE handle = (HANDLE) pfdin->hf;
377 if (!DosDateTimeToFileTime(pfdin->date, pfdin->time, &ft))
379 if (!LocalFileTimeToFileTime(&ft, &ftLocal))
381 if (!SetFileTime(handle, &ftLocal, 0, &ftLocal))
391 /***********************************************************************
392 * extract_cabinet_file
394 * Extract files from a cab file.
396 static BOOL extract_cabinet_file(MSIPACKAGE* package, struct media_info *mi)
398 LPSTR cabinet, cab_path = NULL;
405 TRACE("Extracting %s\n", debugstr_w(mi->source));
407 hfdi = FDICreate(cabinet_alloc, cabinet_free, cabinet_open, cabinet_read,
408 cabinet_write, cabinet_close, cabinet_seek, 0, &erf);
411 ERR("FDICreate failed\n");
415 ptr = strrchrW(mi->source, '\\') + 1;
416 cabinet = strdupWtoA(ptr);
420 cab_path = strdupWtoA(mi->source);
424 cab_path[ptr - mi->source] = '\0';
426 data.package = package;
429 ret = FDICopy(hfdi, cabinet, cab_path, 0, cabinet_notify, NULL, &data);
431 ERR("FDICopy failed\n");
439 mi->is_extracted = TRUE;
444 static VOID set_file_source(MSIPACKAGE* package, MSIFILE* file, LPCWSTR path)
446 if (!file->IsCompressed)
449 p = resolve_folder(package, file->Component->Directory, TRUE, FALSE, NULL);
450 path = build_directory_name(2, p, file->ShortName);
451 if (INVALID_FILE_ATTRIBUTES == GetFileAttributesW( path ))
454 path = build_directory_name(2, p, file->LongName);
456 file->SourcePath = path;
460 file->SourcePath = build_directory_name(2, path, file->File);
463 static void free_media_info( struct media_info *mi )
465 msi_free( mi->disk_prompt );
466 msi_free( mi->cabinet );
467 msi_free( mi->volume_label );
471 static UINT download_remote_cabinet(MSIPACKAGE *package, struct media_info *mi)
473 WCHAR temppath[MAX_PATH];
477 src = strdupW(package->BaseURL);
479 return ERROR_OUTOFMEMORY;
481 ptr = strrchrW(src, '/');
485 return ERROR_FUNCTION_FAILED;
489 ptr = strrchrW(mi->source, '\\');
493 src = msi_realloc(src, (lstrlenW(src) + lstrlenW(ptr)) * sizeof(WCHAR));
495 return ERROR_OUTOFMEMORY;
497 lstrcatW(src, ptr + 1);
500 cab = msi_download_file(src, temppath);
501 lstrcpyW(mi->source, cab);
504 return ERROR_SUCCESS;
507 static UINT load_media_info(MSIPACKAGE *package, MSIFILE *file, struct media_info *mi)
513 static const WCHAR query[] = {
514 'S','E','L','E','C','T',' ','*',' ', 'F','R','O','M',' ',
515 '`','M','e','d','i','a','`',' ','W','H','E','R','E',' ',
516 '`','L','a','s','t','S','e','q','u','e','n','c','e','`',' ','>','=',
517 ' ','%','i',' ','A','N','D',' ','`','D','i','s','k','I','d','`',' ','>','=',
518 ' ','%','i',' ','O','R','D','E','R',' ','B','Y',' ',
519 '`','D','i','s','k','I','d','`',0
522 row = MSI_QueryGetRecord(package->db, query, file->Sequence, mi->disk_id);
525 TRACE("Unable to query row\n");
526 return ERROR_FUNCTION_FAILED;
529 mi->disk_id = MSI_RecordGetInteger(row, 1);
530 mi->last_sequence = MSI_RecordGetInteger(row, 2);
531 msi_free(mi->disk_prompt);
532 mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3));
533 msi_free(mi->cabinet);
534 mi->cabinet = strdupW(MSI_RecordGetString(row, 4));
535 msi_free(mi->volume_label);
536 mi->volume_label = strdupW(MSI_RecordGetString(row, 5));
537 msiobj_release(&row->hdr);
539 source_dir = msi_dup_property(package, cszSourceDir);
541 if (mi->cabinet && mi->cabinet[0] == '#')
543 r = writeout_cabinet_stream(package, &mi->cabinet[1], mi->source);
544 if (r != ERROR_SUCCESS)
546 ERR("Failed to extract cabinet stream\n");
547 return ERROR_FUNCTION_FAILED;
552 lstrcpyW(mi->source, source_dir);
556 lstrcatW(mi->source, mi->cabinet);
559 MsiSourceListAddMediaDiskW(package->ProductCode, NULL,
560 MSIINSTALLCONTEXT_USERMANAGED, MSICODE_PRODUCT,
561 mi->disk_id, mi->volume_label, mi->disk_prompt);
563 MsiSourceListSetInfoW(package->ProductCode, NULL,
564 MSIINSTALLCONTEXT_USERMANAGED,
565 MSICODE_PRODUCT | MSISOURCETYPE_MEDIA,
566 INSTALLPROPERTY_LASTUSEDSOURCEW, mi->source);
568 msi_free(source_dir);
569 return ERROR_SUCCESS;
572 static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *mi)
574 UINT rc = ERROR_SUCCESS;
577 /* media info for continuous cabinet is already loaded */
578 if (mi->is_continuous)
579 return ERROR_SUCCESS;
581 rc = load_media_info(package, file, mi);
582 if (rc != ERROR_SUCCESS)
584 ERR("Unable to load media info\n");
585 return ERROR_FUNCTION_FAILED;
588 if (file->IsCompressed &&
589 GetFileAttributesW(mi->source) == INVALID_FILE_ATTRIBUTES)
591 if (package->BaseURL && UrlIsW(package->BaseURL, URLIS_URL))
593 rc = download_remote_cabinet(package, mi);
594 if (rc == ERROR_SUCCESS &&
595 GetFileAttributesW(mi->source) != INVALID_FILE_ATTRIBUTES)
602 rc = msi_change_media(package, mi);
608 static UINT get_file_target(MSIPACKAGE *package, LPCWSTR file_key,
611 LIST_FOR_EACH_ENTRY( *file, &package->files, MSIFILE, entry )
613 if (lstrcmpW( file_key, (*file)->File )==0)
615 if ((*file)->state >= msifs_overwrite)
616 return ERROR_SUCCESS;
618 return ERROR_FILE_NOT_FOUND;
622 return ERROR_FUNCTION_FAILED;
625 static void schedule_install_files(MSIPACKAGE *package)
629 LIST_FOR_EACH_ENTRY(file, &package->files, MSIFILE, entry)
631 if (!ACTION_VerifyComponentForAction(file->Component, INSTALLSTATE_LOCAL))
633 TRACE("File %s is not scheduled for install\n", debugstr_w(file->File));
635 ui_progress(package,2,file->FileSize,0,0);
636 file->state = msifs_skipped;
641 static UINT copy_install_file(MSIFILE *file)
646 TRACE("Copying %s to %s\n", debugstr_w(file->SourcePath),
647 debugstr_w(file->TargetPath));
649 ret = CopyFileW(file->SourcePath, file->TargetPath, FALSE);
652 file->state = msifs_installed;
653 return ERROR_SUCCESS;
656 gle = GetLastError();
657 if (gle == ERROR_ALREADY_EXISTS && file->state == msifs_overwrite)
659 TRACE("overwriting existing file\n");
662 else if (gle == ERROR_FILE_NOT_FOUND)
664 /* FIXME: this needs to be tested, I'm pretty sure it fails */
665 TRACE("Source file not found\n");
668 else if (!(file->Attributes & msidbFileAttributesVital))
670 TRACE("Ignoring error for nonvital\n");
678 * ACTION_InstallFiles()
680 * For efficiency, this is done in two passes:
681 * 1) Correct all the TargetPaths and determine what files are to be installed.
682 * 2) Extract Cabinets and copy files.
684 UINT ACTION_InstallFiles(MSIPACKAGE *package)
686 struct media_info *mi;
687 UINT rc = ERROR_SUCCESS;
691 /* increment progress bar each time action data is sent */
692 ui_progress(package,1,1,0,0);
694 /* handle the keys for the SourceList */
695 ptr = strrchrW(package->PackagePath,'\\');
699 MsiSourceListSetInfoW(package->ProductCode, NULL,
700 MSIINSTALLCONTEXT_USERMANAGED,
702 INSTALLPROPERTY_PACKAGENAMEW, ptr);
705 schedule_install_files(package);
708 * Despite MSDN specifying that the CreateFolders action
709 * should be called before InstallFiles, some installers don't
710 * do that, and they seem to work correctly. We need to create
711 * directories here to make sure that the files can be copied.
713 msi_create_component_directories( package );
715 mi = msi_alloc_zero( sizeof(struct media_info) );
717 LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry )
719 if (file->state != msifs_missing && !mi->is_continuous && file->state != msifs_overwrite)
722 if (file->Sequence > mi->last_sequence || mi->is_continuous ||
723 (file->IsCompressed && !mi->is_extracted))
725 rc = ready_media(package, file, mi);
726 if (rc != ERROR_SUCCESS)
728 ERR("Failed to ready media\n");
729 rc = ERROR_FUNCTION_FAILED;
733 if (file->IsCompressed && !extract_cabinet_file(package, mi))
735 ERR("Failed to extract cabinet: %s\n", debugstr_w(mi->cabinet));
736 rc = ERROR_FUNCTION_FAILED;
741 set_file_source(package, file, mi->source);
743 TRACE("file paths %s to %s\n",debugstr_w(file->SourcePath),
744 debugstr_w(file->TargetPath));
746 if (!file->IsCompressed)
748 rc = copy_install_file(file);
749 if (rc != ERROR_SUCCESS)
751 ERR("Failed to copy %s to %s (%d)\n", debugstr_w(file->SourcePath),
752 debugstr_w(file->TargetPath), rc);
753 rc = ERROR_INSTALL_FAILURE;
757 else if (file->state != msifs_installed)
759 ERR("compressed file wasn't extracted (%s)\n", debugstr_w(file->TargetPath));
760 rc = ERROR_INSTALL_FAILURE;
765 free_media_info( mi );
769 static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
771 MSIPACKAGE *package = (MSIPACKAGE*)param;
772 WCHAR dest_name[0x100];
773 LPWSTR dest_path, dest;
774 LPCWSTR file_key, component;
780 component = MSI_RecordGetString(row,2);
781 comp = get_loaded_component(package,component);
783 if (!ACTION_VerifyComponentForAction( comp, INSTALLSTATE_LOCAL ))
785 TRACE("Skipping copy due to disabled component %s\n",
786 debugstr_w(component));
788 /* the action taken was the same as the current install state */
789 comp->Action = comp->Installed;
791 return ERROR_SUCCESS;
794 comp->Action = INSTALLSTATE_LOCAL;
796 file_key = MSI_RecordGetString(row,3);
799 ERR("Unable to get file key\n");
800 return ERROR_FUNCTION_FAILED;
803 rc = get_file_target(package,file_key,&file);
805 if (rc != ERROR_SUCCESS)
807 ERR("Original file unknown %s\n",debugstr_w(file_key));
808 return ERROR_SUCCESS;
811 if (MSI_RecordIsNull(row,4))
812 strcpyW(dest_name,strrchrW(file->TargetPath,'\\')+1);
816 MSI_RecordGetStringW(row,4,dest_name,&sz);
817 reduce_to_longfilename(dest_name);
820 if (MSI_RecordIsNull(row,5))
823 dest_path = strdupW(file->TargetPath);
824 p = strrchrW(dest_path,'\\');
831 destkey = MSI_RecordGetString(row,5);
832 dest_path = resolve_folder(package, destkey, FALSE,FALSE,NULL);
836 dest_path = msi_dup_property( package, destkey );
839 FIXME("Unable to get destination folder, try AppSearch properties\n");
840 return ERROR_SUCCESS;
845 dest = build_directory_name(2, dest_path, dest_name);
847 TRACE("Duplicating file %s to %s\n",debugstr_w(file->TargetPath),
850 if (strcmpW(file->TargetPath,dest))
851 rc = !CopyFileW(file->TargetPath,dest,TRUE);
855 if (rc != ERROR_SUCCESS)
856 ERR("Failed to copy file %s -> %s, last error %d\n",
857 debugstr_w(file->TargetPath), debugstr_w(dest_path), GetLastError());
859 FIXME("We should track these duplicate files as well\n");
864 msi_file_update_ui(package, file, szDuplicateFiles);
866 return ERROR_SUCCESS;
869 UINT ACTION_DuplicateFiles(MSIPACKAGE *package)
873 static const WCHAR ExecSeqQuery[] =
874 {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
875 '`','D','u','p','l','i','c','a','t','e','F','i','l','e','`',0};
877 rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view);
878 if (rc != ERROR_SUCCESS)
879 return ERROR_SUCCESS;
881 rc = MSI_IterateRecords(view, NULL, ITERATE_DuplicateFiles, package);
882 msiobj_release(&view->hdr);
887 /* compares the version of a file read from the filesystem and
888 * the version specified in the File table
890 static int msi_compare_file_version( MSIFILE *file )
892 WCHAR version[MAX_PATH];
898 r = MsiGetFileVersionW( file->TargetPath, version, &size, NULL, NULL );
899 if ( r != ERROR_SUCCESS )
902 return lstrcmpW( version, file->Version );
905 UINT ACTION_RemoveFiles( MSIPACKAGE *package )
909 LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry )
914 if ( !file->Component )
916 if ( file->Component->Installed == INSTALLSTATE_LOCAL )
919 if ( file->state == msifs_installed )
920 ERR("removing installed file %s\n", debugstr_w(file->TargetPath));
922 if ( file->state != msifs_present )
925 /* only remove a file if the version to be installed
926 * is strictly newer than the old file
928 if ( msi_compare_file_version( file ) >= 0 )
931 TRACE("removing %s\n", debugstr_w(file->File) );
932 if ( !DeleteFileW( file->TargetPath ) )
933 ERR("failed to delete %s\n", debugstr_w(file->TargetPath) );
934 file->state = msifs_missing;
937 uirow = MSI_CreateRecord( 9 );
938 MSI_RecordSetStringW( uirow, 1, file->FileName );
939 uipath = strdupW( file->TargetPath );
940 p = strrchrW(uipath,'\\');
943 MSI_RecordSetStringW( uirow, 9, uipath);
944 ui_actiondata( package, szRemoveFiles, uirow);
945 msiobj_release( &uirow->hdr );
947 /* FIXME: call ui_progress here? */
950 return ERROR_SUCCESS;