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: Unwanted Behaivor
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
‎Feb 17, 2014
09:45 AM
Unwanted Behaivor
I use a basic MSI installer to put down a program that reads some information from a text file. The installer also puts down the text file. To test this program on the client machine, I renamed the text file. When I ran the program that uses the file, instead of it displaying an error message as I intended, it tries to run the installer. I looked and see that I am caching the installer in the local app folder, so I removed it and tried again, but the installer ran again, but this time reported that it could not find resources. My program then ran and displayed the intended error mesage. I also plan on removing that option and rebuilding.
I do not want the program to run the installer if it is missing components. how do I prevent this?
I do not want the program to run the installer if it is missing components. how do I prevent this?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 17, 2014
07:24 PM
Go to the Component view
Expand the component
Click on Files
Right click on the file in the window on the right
Click on 'Clear Key File'
Do this for the desired components.
Expand the component
Click on Files
Right click on the file in the window on the right
Click on 'Clear Key File'
Do this for the desired components.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2014
06:23 AM
Not sure this is correct - I thought a component had to have at least one key file. In my case the exe is the only file
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2014
06:32 AM
Component rules dictate that DLL files, OCX files, EXE files, CHM files, etc should be set as key files. This is so that file resiliency takes place on startup of the application and you can guarantee a healthy application if any files are damaged or missing. It is one of the cores of MSI.
Removing a EXE from a key file will most likely break validation if that is a requirement for your company. Text files however, do not need to be key files. If you have a component that has all text files and no exe, dll, ocx, or chm file, then it will use the installation path for the component as the key.
Removing a EXE from a key file will most likely break validation if that is a requirement for your company. Text files however, do not need to be key files. If you have a component that has all text files and no exe, dll, ocx, or chm file, then it will use the installation path for the component as the key.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2014
06:45 AM
DLee65 wrote:
Component rules dictate that DLL files, OCX files, EXE files, CHM files, etc should be set as key files. This is so that file resiliency takes place on startup of the application and you can guarantee a healthy application if any files are damaged or missing. It is one of the cores of MSI.
Removing a EXE from a key file will most likely break validation if that is a requirement for your company. Text files however, do not need to be key files. If you have a component that has all text files and no exe, dll, ocx, or chm file, then it will use the installation path for the component as the key.
This is what I thought, but it doesn't answer my original question. The component has one file - the executable. I has to be set as key. When the exe is run and it cant find the text file it needs to read, it launches the installer. I have sufficient code to cover this situation - I don't need it to try and fix itself.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2014
10:37 AM
Check your event viewer. It should list what component is being triggered when the repair is executed. Also enable logging in the registry and the temp directory will contain a MSI log file I would expect. Perhaps it is not what you are expecting.
I am in agreement with you, if the EXE is present and healthy, then it should not care if the associated text files are present or not present. It should only be concerned for its key file.
I don't know if this will help you better debug the situation or not.
I am in agreement with you, if the EXE is present and healthy, then it should not care if the associated text files are present or not present. It should only be concerned for its key file.
I don't know if this will help you better debug the situation or not.