Temporary files deleted prematurely. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

devonit
Posts: 1
Joined: Thu Jul 14, 2011 5:40 pm

Temporary files deleted prematurely.

Hi, I'm very new to this, so I apologize for my novice question-- I'm sure it's answered somewhere in the user guide, but I am on a strict deadline and have been unable to make enough sense of what I need to be doing here still.

I have a VERY simple task: create an MSI that:
1.) Takes a .CAB file and a simple .EXE (1-line batch file, compiled to an executable)
2.) Installs them (copies them) to a temporary directory
3.) Runs the executable, which points to the cabinet file by file name alone (both should be in the same temp dir)
4.) Removes both files AFTER the executable runs its course to COMPLETION (it takes several minutes)

So far I have been able to import the two files as temporary items and create a custom(?) action to launch the executable. In fact, the process begins appropriately, but there are two problems:
1.) The temporary files are removed before the executable can complete its task
2.) The installer's progress bar does not, in any way, acknowledge the executable's status

If anyone can help me out on this, I'd REALLY appreciate it! Thanks!
- Daniel
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Temporary files deleted prematurely.

Hi Daniel,
The temporary files are removed before the executable can complete its task
Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?
The installer's progress bar does not, in any way, acknowledge the executable's status
This is the normal behavior. The installer has no way of knowing how the custom action is progressing. If you want to update the progress based on your custom action operations, you can try this approach: http://msdn.microsoft.com/en-us/library ... S.85).aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”