This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Can I use the SdRMFileInUse in Windows XP?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2008
05:28 AM
Can I use the SdRMFileInUse in Windows XP?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2008
07:59 AM
I don't believe that the SdRMFilesInUse dialog works on Windows XP, since SdRMFilesInUse works with the Restart Manager, which was introduced for Windows Vista. On Windows XP systems, you'd want to use SdFilesInUse.
I hope that helps.
Debbie Landers
Macrovision Corporation
I hope that helps.
Debbie Landers
Macrovision Corporation
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 20, 2008
10:47 PM
Thanks DebbieL:
I have noticed that a SdFilesInUse dialog can be manually used in InstallScript to show the Files-in-use dialog
For the following syntax:
SdFilesInUse ( byval string szTitle, byval string szMsg, byval string szFilesInUse, byref LIST nvlistApps );
I must give a string list of applications that are locking files, but where to get the application list since I don't know which file will be locked?
I have noticed that a SdFilesInUse dialog can be manually used in InstallScript to show the Files-in-use dialog
For the following syntax:
SdFilesInUse ( byval string szTitle, byval string szMsg, byval string szFilesInUse, byref LIST nvlistApps );
I must give a string list of applications that are locking files, but where to get the application list since I don't know which file will be locked?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 21, 2008
05:27 PM
I think that you would need to identify the files that would cause problems if they were locked during your installation, and add if statements in your script that would check to see if they are locked; if so, add them to the list of files that would be passed to SdFilesInUse. The SdFilesInUse Example help topic has some sample script.
Debbie Landers
Macrovision Corporation
Debbie Landers
Macrovision Corporation
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2008
09:38 PM
I don't want to specify them manually for too many file types in my project. And I have seen the OnFileLocked event which can detect file in used.
But it only detect one file each time and how to add it into SdFilesInUse's nvlistApps to construct a full file-in-use list?
But it only detect one file each time and how to add it into SdFilesInUse's nvlistApps to construct a full file-in-use list?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
09:54 AM
Are you trying to call SdFilesInUse or SdRMFilesInUse directly? Normally this is only called through the events which correspond to callbacks from Windows Installer. It will have done the work to identify which files are in use, and expects feedback from the user.
If you are trying to call the function manually, then yes, you will have to prepare the file list; these dialogs do not find out the information, they merely display it.
If you are trying to call the function manually, then yes, you will have to prepare the file list; these dialogs do not find out the information, they merely display it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
03:01 AM
I know that
1. In Basic Msi project, InstallValidation action will launch the SdFilesInUse dialog automatically.
2. In InstallScript MSI project, OnFilesInUse event is available to launch SdFilesInUse automatically.
But what's for InstallScript project? It's seems no way but to add dialog manually.
1. In Basic Msi project, InstallValidation action will launch the SdFilesInUse dialog automatically.
2. In InstallScript MSI project, OnFilesInUse event is available to launch SdFilesInUse automatically.
But what's for InstallScript project? It's seems no way but to add dialog manually.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
05:43 PM
That is correct - InstallScript doesn't natively use this dialog; it handles in-use files differently from MSI. If you want to use the dialog, you will have to create your list before calling the dialog, and process the response accordingly.