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
- :
- Visual Studio Install Projects are a pain
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 16, 2010
11:40 AM
Remove file table
I have an installer that is 99% mergemodules.
I need to delete some user files and files that were installed with the mergemodules during a major upgrade. The major upgrade does not remove these files because they are changed and written to by the user.
Problem is, since I use merge modules there are no directories or components to reference in the RemoveFile table
I.E. The application ends up with the following structure
Bin
| user file created when application run
| file installed by msm but changed by user
|
--- Subfolder
user file created when application run
file installed by msm but changed by user
I need to delete both "user file created when application run" files and both
"file installed by msm but changed by user" files.
Any ideas how to do this??
I need to delete some user files and files that were installed with the mergemodules during a major upgrade. The major upgrade does not remove these files because they are changed and written to by the user.
Problem is, since I use merge modules there are no directories or components to reference in the RemoveFile table
I.E. The application ends up with the following structure
Bin
| user file created when application run
| file installed by msm but changed by user
|
--- Subfolder
user file created when application run
file installed by msm but changed by user
I need to delete both "user file created when application run" files and both
"file installed by msm but changed by user" files.
Any ideas how to do this??
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2010
03:42 PM
Author the necessary entries in the RemoveFile table of the merge module to delete the files. It has all the necessary components and directory entries. This way all the logic of the merge module is encapsulated in it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2010
03:56 PM
I am not the author of the mergemodules. Also, the merge modules are created in Visual Studio and I am told they do not have the capability to add to the Remove File table.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
01:25 PM
It looks like you will need to use the direct editor then. Open the merge modules in one instance of InstallShield, and then manually add the necessary entries to the RemoveFile table in a second instance. You will be able to lookup the component names and directory information. Make sure to use qualified names of the following form ..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
01:34 PM
Thanks,
I ultimately openend up the msi for the installer and pulled the information from that. I come up with something like this: _590BF1C765FE4BE99BF0861D3670C1C1.6E7F533199C84EA586971915C0968E72 for the directory and C__18F64ABE7BBD4316A996AB9703D4A5BD.6E7F533199C84EA586971915C0968E72 for the directory component.
I put the first as the dir property and the second as the component. Correct?
However, it seems to want to do a repair once the major upgrade completes. Haven't figured out why. Any suggestions?
I ultimately openend up the msi for the installer and pulled the information from that. I come up with something like this: _590BF1C765FE4BE99BF0861D3670C1C1.6E7F533199C84EA586971915C0968E72 for the directory and C__18F64ABE7BBD4316A996AB9703D4A5BD.6E7F533199C84EA586971915C0968E72 for the directory component.
I put the first as the dir property and the second as the component. Correct?
However, it seems to want to do a repair once the major upgrade completes. Haven't figured out why. Any suggestions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
02:18 PM
That looks correct, but make sure you are using the correct value for InstallMode. At this point you probably need to do some logged installs and uninstalls to determine why things are happening.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2010
02:21 PM
I am using InstallMode 2 for on remove. I will do some logging to see what is happening.
Thanks for the help on this
Thanks for the help on this