Hi,
I have an executable file (created using Actual Installer) that creates a folder on the user's C: drive, then it runs an executable file (WinZip self-executing file) which unzips all of its files into the folder that was just created. After everything is unzipped, the original WinZip .exe file is located in the folder. That file is no longer necessary and is just taking up space. Is there a way to set up Actual Installer so it will delete that WinZip self-executing file after it runs? Perhaps running the WinZip self-executing file from a Temp folder which is then deleted?
Example: The user runs "SETUP.exe". It creates a folder on the C: drive, then it runs "FILES.exe" (WinZip self-executable). After the files are unzipped into the new folder, I'd like "FILES.exe" to be automatically deleted from the user's computer.
I looked through Help, but I'm new to system variables and registry. I'm not sure what to do. Any help is appreciated.
Thanks!
Automatically delete executable file
Re: Automatically delete executable file
Hi CraigO,
Go to the System\Commands page and add the following command:
Go to the System\Commands page and add the following command:
Code: Select all
Command: <SystemDir>\cmd.exe
Parameters: /C del /Q "<InstallDir>\file.exe"
Timing: After Installation
Re: Automatically delete executable file
Hi Leo,Leo wrote:Hi CraigO,
Go to the System\Commands page and add the following command:Code: Select all
Command: <SystemDir>\cmd.exe Parameters: /C del /Q "<InstallDir>\file.exe" Timing: After Installation
I added the command you show. I also checked the box next to "Wait until process finishes". When I ran my SETUP.exe file, the Winzip self-extractor file "FILES.exe" was deleted from the folder on the C: drive before it had a chance to extract its contents to the folder. Is there a way to tell Actual Installer to wait for the file "FILES.exe" to run before it gets deleted?
Thanks for your help.
Re: Automatically delete executable file
Please make sure that the option 'Timing' is set to 'After Installation'.
Re: Automatically delete executable file
Hi Leo,
Yes, I had Timing set to "After Installation". I also unchecked "Wait until process finishes". In this case, FILES.exe will run and extract the files to the folder, but FILES.exe will not get deleted. (see attached image for screen shot)
When "Wait until process finishes" is checked, "FILES.exe" gets deleted before it can run.
When "Wait until process finishes" is not checked, "FILES.exe" runs, but does not get deleted after it's finished extracting the files.
Some more info...the "FILES.exe" file that I have is set to launch in Dialogs > Finish tab. The "Launch application" box is checked and set to run File: <InsallDir>\FILES.exe. Should I be launching "FILES.exe" in System > Commands instead? Perhaps I'd have better control over what runs when? Just a thought.
Also, I'm running AI version 3.8.
Thanks!
Yes, I had Timing set to "After Installation". I also unchecked "Wait until process finishes". In this case, FILES.exe will run and extract the files to the folder, but FILES.exe will not get deleted. (see attached image for screen shot)
When "Wait until process finishes" is checked, "FILES.exe" gets deleted before it can run.
When "Wait until process finishes" is not checked, "FILES.exe" runs, but does not get deleted after it's finished extracting the files.
Some more info...the "FILES.exe" file that I have is set to launch in Dialogs > Finish tab. The "Launch application" box is checked and set to run File: <InsallDir>\FILES.exe. Should I be launching "FILES.exe" in System > Commands instead? Perhaps I'd have better control over what runs when? Just a thought.
Also, I'm running AI version 3.8.
Thanks!
- Attachments
-
- Clipboard01.jpg
- Screen shot
- (58.37 KiB) Not downloaded yet
Re: Automatically delete executable file
Yes, add this file on the System\Commands page before command to delete file.