this C++ custom action can check drive type. use a C++ custom action and display a error message if drive is not valid.
//char AppPath[_MAX_PATH]; char appName[_MAX_PATH]; char appDir[_MAX_PATH]; char appDrive[_MAX_PATH]; _splitpath_s( cPath, appDrive, _MAX_PATH, appDir, _MAX_PATH, appName, _MAX_PATH, NULL, 0 ); UINT drivetype = GetDriveType(appDrive); if(drivetype == DRIVE_FIXED) { MsiSetProperty (hInstall, "DRIVEALLOWED", "1"); } else { MsiSetProperty (hInstall, "DRIVEALLOWED", "0"); } Andy.Kruger wrote: > Anybody??? > > ----- > Andy > MSI Developer > Schneider Electric > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users