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
- :
- Deleting Files Used Only for Installation
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 21, 2011
11:10 AM
Deleting Files Used Only for Installation
In my MSIs, I have an executable file that runs after the MSI files have been installed, and it's sole purpose is to do some work during the installation, but then is no longer needed.
What do I need to do to remove that .exe after it's done it's work? Would I need to create an InstallScript to remove it or is there some easier way?
Pardon my ignorance on this as I'm not an InstallShield expert. 😮
What do I need to do to remove that .exe after it's done it's work? Would I need to create an InstallScript to remove it or is there some easier way?
Pardon my ignorance on this as I'm not an InstallShield expert. 😮
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 21, 2011
04:52 PM
I have a similar scenario, and I include the exe as a support file (these should be cleaned up automatically at the end of install).
This works more easily if your project is Installscript-MSI ... then call the exe in your OnFirstUIAfter event (before showing the Finish dialog) - it sounded like you need some other files installed before running this temporary exe.
I can get a bit trickier with Basic MSI - if this is the case and you run into problems, I can go into more detail about this scenario.
This works more easily if your project is Installscript-MSI ... then call the exe in your OnFirstUIAfter event (before showing the Finish dialog) - it sounded like you need some other files installed before running this temporary exe.
I can get a bit trickier with Basic MSI - if this is the case and you run into problems, I can go into more detail about this scenario.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2011
01:06 AM
Hey it does work fine in Basic MSI as well.
Only thing to remember would be
If your custom action that triggers the exe in support files is set to Deferred, you'll have to use Custom Action Data to access public property SUPPORTDIR.
this is doable using InstallScript custom action.
Only thing to remember would be
If your custom action that triggers the exe in support files is set to Deferred, you'll have to use Custom Action Data to access public property SUPPORTDIR.
this is doable using InstallScript custom action.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2011
07:33 AM
Yes, I'm using a Basic MSI project. I just got the folder delete working with the help of this HelpNet article:
Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions
The script sample in the link above allowed me to retrieve the path to the folder where I installed the .exe. I then used the DeleteDir() function to delete the folder the .exe was installed in. Yeah me.
Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions
The script sample in the link above allowed me to retrieve the path to the folder where I installed the .exe. I then used the DeleteDir() function to delete the folder the .exe was installed in. Yeah me.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 06, 2011
07:53 AM
Is there any way to use a standard "launch an executable" custom action to launch an executable that has been placed into the SUPPORTDIR without using and InstallScript?
We have an executable and supporting files that need to be triggered during the install and once they are complete need to be removed. So I figured that I would look at the SUPPORTDIR to place these files so they are removed when the install is done, but if I can not call/execute them from a basic MSI without InstallScript then I may have to use a custom action just to delete these file at the end.
We have an executable and supporting files that need to be triggered during the install and once they are complete need to be removed. So I figured that I would look at the SUPPORTDIR to place these files so they are removed when the install is done, but if I can not call/execute them from a basic MSI without InstallScript then I may have to use a custom action just to delete these file at the end.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 08, 2011
08:49 AM
Have you tried including the files in the binary table? They can then be accessed by the MSI CA's, and since they aren't installed, they don't have to be removed.