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
- :
- Need support files during maintenance mode
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
‎Jan 22, 2008
02:23 PM
Need support files during maintenance mode
During maintenance mode it appears that support files are not extracted from the cached MSI, at lease my custom actions cannot find the files in the support directory.
Is there a way to specify that these support files should be extracted during maintenance mode to SUPPORTDIR?
Thanks.
Dan
Is there a way to specify that these support files should be extracted during maintenance mode to SUPPORTDIR?
Thanks.
Dan
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2008
03:35 PM
What type of installation this is, and what type of Custom Actions you have used? Also print the input and arguments to the custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2008
03:46 PM
Thanks for the reply.
This is a basic MSI. I am using an InstallScript custom action.
The line I am using to search for the the support files is:
When I examine the %temp% directory during maintenance the files are not there.
This is a basic MSI. I am using an InstallScript custom action.
The line I am using to search for the the support files is:
MsiGetProperty(hMSI, "SUPPORTDIR", strSupportDir, nBuffSize);
When I examine the %temp% directory during maintenance the files are not there.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2008
04:43 PM
As per InstallScript Language documentation:
Note that the value of the InstallScript system variable SUPPORTDIR is not the same as the value of the Windows Installer property SUPPORTDIR.
In Basic MSI or InstallScript MSI projects, each InstallScript custom action initializes its own engine. Each engine does not know where the primary SUPPORTDIR is, and each engine does not extract its own private copy of the support files. For instructions on locating the extracted support files from a custom action, see Placing Files in the .msi Database and Extracting Them During Run Time.
I am not sure if this gives the answer, but can you use a MessageBox function to see what your code is returning?
Note that the value of the InstallScript system variable SUPPORTDIR is not the same as the value of the Windows Installer property SUPPORTDIR.
In Basic MSI or InstallScript MSI projects, each InstallScript custom action initializes its own engine. Each engine does not know where the primary SUPPORTDIR is, and each engine does not extract its own private copy of the support files. For instructions on locating the extracted support files from a custom action, see Placing Files in the .msi Database and Extracting Them During Run Time.
I am not sure if this gives the answer, but can you use a MessageBox function to see what your code is returning?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 23, 2008
07:36 AM
Again, thanks for the reply. You are exactly right, which is why I do not use the Installscript version of SUPPORTDIR and call MSIGetProperty to obtain the Windows Installer version of SUPPORTDIR.
The files are extracted to the expected location during a first install scenario. It is only during repair mode that the files are not extracted.
Looking at the MSI Log file the SUPPORTDIR is created I just got to figure out how to get the binaries to extract during repair mode 😉
The files are extracted to the expected location during a first install scenario. It is only during repair mode that the files are not extracted.
Looking at the MSI Log file the SUPPORTDIR is created I just got to figure out how to get the binaries to extract during repair mode 😉